From rmottola at opencsw.org Wed Jun 10 16:09:59 2020 From: rmottola at opencsw.org (Riccardo Mottola) Date: Wed, 10 Jun 2020 16:09:59 +0200 Subject: patching ncurses for solaris 9 Message-ID: Hi all, you might have noticed I have updated ncurses to latest. Fine and cool... however on solaris it compiles, but does not work. The issue is I think "easy": I need to patch a file... I think just a header include is missing but it is "generated" configure:22605: /opt/csw/bin/gcc-4.6 -c -O2 -pipe -fno-omit-frame-pointer -mcpu=v8 -I/opt/cs w/include -D_FILE_OFFSET_BITS=64? -D__EXTENSIONS__ -I/opt/csw/include -D__EXTENSIONS__ -I/opt /csw/include/ncurses -I/opt/csw/include conftest.c >&5 In file included from configure:22594:0: /opt/csw/include/ncurses/ncurses.h:185:1: error: unknown type name 'uint32_t' /opt/csw/include/ncurses/ncurses.h:186:1: error: unknown type name 'uint32_t' I think it is just a matter of adding inttypes.h if memory serves me. However interesting is this generated header, it contains: #if 1 && defined(_LP64) typedef unsigned chtype; typedef unsigned mmask_t; #else typedef uint32_t chtype; typedef uint32_t mmask_t; #endif so there is incredibly a "test" but only for _LP64... "1" is for sure result of some test, but I cannot find the logic or template of ncurses.h Can some kind hacker help me? Thank you. Riccardo From rmottola at opencsw.org Sat Jun 20 16:02:04 2020 From: rmottola at opencsw.org (Riccardo Mottola) Date: Sat, 20 Jun 2020 16:02:04 +0200 Subject: rebuilding gcc 4.8 on solaris 9 Message-ID: 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 From dam at opencsw.org Sun Jun 21 18:26:50 2020 From: dam at opencsw.org (Dagobert Michelsen) Date: Sun, 21 Jun 2020 18:26:50 +0200 Subject: rebuilding gcc 4.8 on solaris 9 In-Reply-To: References: Message-ID: Hi Riccardo, Am 20.06.2020 um 16:02 schrieb Riccardo Mottola via maintainers : > 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... This is probably due to sparcv8plus vs. sparcv8 but this is only guesswork from me. Getting gcc to compile is actually pretty hard. Best regards ? Dago -- "You don't become great by trying to be great, you become great by wanting to do something, and then doing it so hard that you become great in the process." - xkcd #896