rebuilding gcc 4.8 on solaris 9
Riccardo Mottola
rmottola at opencsw.org
Sat Jun 20 16:02:04 CEST 2020
Hi!
I am attempting to rebuild gcc 4.8.4 on solaris 9 (we have a branch for
that) with the goal to get it to 4.8.5 then...
We need something better than 4.6, I don't know how far solaris 9 can be
taken, but I hope solaris 10 can then take gcc 6.5 which is a pretty
good compiler.
"other projects" (e.g. MacPorts) show that many packages now require
newer compilers, since we only have gcc, we need that.
Some tweak to the dependencies got me going, but build then breaks for me:
libtool: link:
/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/./gcc/xgcc
-shared-libgcc
-B/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/./gcc
-nostdinc++
-L/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/sparc-sun-solaris2.9/libstdc++-v3/src
-L/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/sparc-sun-solaris2.9/libstdc++-v3/src/.libs
-B/opt/csw/sparc-sun-solaris2.9/bin/
-B/opt/csw/sparc-sun-solaris2.9/lib/ -isystem
/opt/csw/sparc-sun-solaris2.9/include -isystem
/opt/csw/sparc-sun-solaris2.9/sys-include -shared -nostdlib
/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/./gcc/crti.o
/usr/ccs/lib/values-Xa.o
/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/./gcc/crtbegin.o
.libs/compatibility.o .libs/compatibility-debug_list.o
.libs/compatibility-debug_list-2.o .libs/compatibility-c++0x.o
.libs/compatibility-atomic-c++0x.o .libs/compatibility-thread-c++0x.o
.libs/compatibility-chrono.o -Wl,-z -Wl,allextract
../libsupc++/.libs/libsupc++convenience.a
../src/c++98/.libs/libc++98convenience.a
../src/c++11/.libs/libc++11convenience.a -Wl,-z -Wl,defaultextract
-L/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/sparc-sun-solaris2.9/libstdc++-v3/src
-L/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/sparc-sun-solaris2.9/libstdc++-v3/src/.libs
-lm
-L/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/./gcc
-L/opt/csw/sparc-sun-solaris2.9/bin -L/opt/csw/sparc-sun-solaris2.9/lib
-L/usr/ccs/lib -lgcc_s -lc
/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/./gcc/crtend.o
/home/rmottola/opencsw/gcc4/branches/gcc-4.8.x/work/solaris9-sparc/build-isa-sparcv8plus/objdir/./gcc/crtn.o
-Wl,-M -Wl,libstdc++-symbols.ver-sun -Wl,-h -Wl,libstdc++.so.6 -o
.libs/libstdc++.so.6.0.19
ld: fatal: relocation error: R_SPARC_32: file .libs/compatibility.o:
symbol __gxx_personality_v0: offset 0xe0397 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
.libs/compatibility-chrono.o: symbol __gxx_personality_v0: offset
0xe05eb is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libsupc++/.libs/libsupc++convenience.a(atexit_thread.o): symbol
__gxx_personality_v0: offset 0xe06a7 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libsupc++/.libs/libsupc++convenience.a(eh_alloc.o): symbol
__gxx_personality_v0: offset 0xe0b2f is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libsupc++/.libs/libsupc++convenience.a(eh_globals.o): symbol
__gxx_personality_v0: offset 0xe0e67 is non-aligned
Does this trigger a bell to you?
Riccardo
More information about the maintainers
mailing list