pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR41601 devel/glib2 fails to compile on Solaris 10
Oh funny, that was my PR from 2009 :)
I recently had exactly the same problem ... again: Solaris 11.3 and
GCC 9.2. The solution was to upgrade Solaris to the latest release of
11.3 (or 11.4) - and rebuild GCC! The feature test is completely gone
from Solaris' include files, and glib2 just builds fine.
One more thing: Be sure to use the GNU assembler when building GCC
(i.e. configure with "--with-gnu-as --with-as=/usr/bin/gas"). After
successfully building glib2, you will probably encounter some packages
with inline assembler that Oracle's "as" could not understand.
On Sat, Oct 19, 2019 at 11:36 AM Sad Clouds <cryintothebluesky%gmail.com@localhost> wrote:
>
> I'm hitting the same bug on Solaris 11.3 and pkgsrc-2019Q3
>
> I wonder if the bug needs to be reopened. Does anyone know what causes
> this failure? Is this related to -std=gnu89 or some other macro defined
> somewhere?
>
> [1/573] Compiling C object 'glib/libcharset/6e4c96c@@charset@sta/localcharset.c.o'.
> FAILED: glib/libcharset/6e4c96c@@charset@sta/localcharset.c.o
> gcc -Iglib/libcharset/6e4c96c@@charset@sta -Iglib/libcharset -I../glib/libcharset -I. -I../ -I/opt/pkg/include -I/usr/include -I/opt/pkg/include/python3.7 -fdiagnostics-color=always -pipe -std=gnu89 -D_GNU_SOURCE -fno-strict-aliasing -Wall -Wduplicated-branches -Wimplicit-fallthrough -Wmisleading-indentation -Wstrict-prototypes -Wunused -Wno-bad-function-cast -Wno-cast-function-type -Wno-pedantic -Werror=declaration-after-statement -Werror=format=2 -Werror=implicit-function-declaration -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith -O2 -D_FORTIFY_SOURCE=2 -fPIC '-DGLIB_CHARSETALIAS_DIR="lib"' -fvisibility=hidden -MD -MQ 'glib/libcharset/6e4c96c@@charset@sta/localcharset.c.o' -MF 'glib/libcharset/6e4c96c@@charset@sta/localcharset.c.o.d' -o 'glib/libcharset/6e4c96c@@charset@sta/localcharset.c.o' -c ../glib/libcharset/localcharset.c
> In file included from /opt/gcc-9.2.0-sparc64/lib/gcc/sparc64-sun-solaris2.11/9.2.0/include-fixed/stdio.h:24,
> from ../glib/libcharset/localcharset.c:28:
> /opt/gcc-9.2.0-sparc64/lib/gcc/sparc64-sun-solaris2.11/9.2.0/include-fixed/sys/feature_tests.h:363:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
> 363 | #error "Compiler or options invalid for pre-UNIX 03 X/Open applications \
> | ^~~~~
> ninja: build stopped: subcommand failed.
> *** Error code 1
>
> Stop.
> bmake[4]: stopped in /opt/pkgbuild/pkgsrc/devel/glib2
> *** Error code 1
--
Joern Clausen
https://www.oe-files.de/photography/
Home |
Main Index |
Thread Index |
Old Index