[Bug 242693] [PowerPC] sysutils/libcdio fails to build on FreeBSD 12.1-RELEASE-p1 32 bit: libapr-1.so: pragma GCC diagnostic not allowed inside functions

[email protected]
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242693

            Bug ID: 242693
           Summary: [PowerPC] sysutils/libcdio fails to build on FreeBSD
                    12.1-RELEASE-p1 32 bit: libapr-1.so: pragma GCC
                    diagnostic not allowed inside functions
           Product: Ports & Packages
           Version: Latest
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
                CC: [email protected]
             Flags: maintainer-feedback?([email protected])
          Assignee: [email protected]

Problem found when building sysutils/libcdio on FreeBSD 12.1-RELEASE-p1 powerpc
32 bit, running on Apple Powerbook 17". 
(sysutils/libcdio is a requirement to build xfce4)


# cd ../../sysutils/libcdio
# make -DBATCH install clean
===>  Building for libcdio-2.1.0
gmake[1]: Entering directory '/usr/ports/sysutils/libcdio/work/libcdio-2.1.0'
gmake  all-recursive
.....
.....
gmake[4]: Leaving directory
'/usr/ports/sysutils/libcdio/work/libcdio-2.1.0/lib/driver'
Making all in iso9660
gmake[4]: Entering directory
'/usr/ports/sysutils/libcdio/work/libcdio-2.1.0/lib/iso9660'
depbase=`echo iso9660.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../..
 -I../../lib/driver -I../../include -I../../include/ -DLIBICONV_PLUG -isystem
/usr/local/include  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong
-isystem /usr/local/include -fno-strict-aliasing   -Wall -Wbad-function-cast
-Wcast-align -Wchar-subscripts -Wdeclaration-after-statement
-Wdisabled-optimization -Wendif-labels -Winline -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wno-sign-compare -Wpointer-arith
-Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -MT iso9660.lo
-MD -MP -MF $depbase.Tpo -c -o iso9660.lo iso9660.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/driver
-I../../include -I../../include/ -DLIBICONV_PLUG -isystem /usr/local/include
-O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts
-Wdeclaration-after-statement -Wdisabled-optimization -Wendif-labels -Winline
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-sign-compare
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings
-MT iso9660.lo -MD -MP -MF .deps/iso9660.Tpo -c iso9660.c  -fPIC -DPIC -o
.libs/iso9660.o
iso9660.c: In function 'iso9660_set_ltime_with_timezone':
iso9660.c:376: error: #pragma GCC diagnostic not allowed inside functions
gmake[4]: *** [Makefile:605: iso9660.lo] Error 1
gmake[4]: Leaving directory
'/usr/ports/sysutils/libcdio/work/libcdio-2.1.0/lib/iso9660'
gmake[3]: *** [Makefile:423: all-recursive] Error 1
gmake[3]: Leaving directory
'/usr/ports/sysutils/libcdio/work/libcdio-2.1.0/lib'
gmake[2]: *** [Makefile:577: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/sysutils/libcdio/work/libcdio-2.1.0'
gmake[1]: *** [Makefile:474: all] Error 2
gmake[1]: Leaving directory '/usr/ports/sysutils/libcdio/work/libcdio-2.1.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/libcdio

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.