From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.sonicle.com (mail.sonicle.com [109.168.117.71]) by sourceware.org (Postfix) with ESMTPS id 38FF2385AE43 for ; Tue, 5 Jul 2022 17:44:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 38FF2385AE43 Received: from www (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.sonicle.com (Postfix) with ESMTPS id BAFDF8BBD6A; Tue, 5 Jul 2022 19:44:18 +0200 (CEST) Received: from www (www [192.168.222.200]) by www with SMTP (SubEthaSMTP 3.1.7) id L58GNJ0U; Tue, 05 Jul 2022 19:44:18 +0200 (CEST) Date: Tue, 5 Jul 2022 19:44:18 +0200 (CEST) From: Gabriele Bulfon To: joel@rtems.org Cc: GCC Message-ID: <477323975.7130.1657043058699@www> In-Reply-To: References: <1210252696.3932.1655720006494@www> <784163289.4050.1655724206563@www> <232958024.4354.1655741351366@www> Subject: Re: Build of any gcc breaks on my sparc / illumos env MIME-Version: 1.0 Forwarded-From: X-Rspamd-Queue-Id: BAFDF8BBD6A X-Rspamd-Server: www X-Spamd-Result: default: False [1.40 / 20.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,multipart/alternative,text/plain]; DKIM_SIGNED(0.00)[sonicle.com:s=dkim]; RCPT_COUNT_TWO(0.00)[2]; CTYPE_MIXED_BOGUS(1.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_NOT_FQDN(0.50)[] X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2022 17:44:24 -0000 Hi, took me sometime to get back to this. The "-v" options is not available on Solaris ld. I tried other debug options but nothing special was in the output, just tha= t long list of relocation errors. What I see is that ld is complaining during link to produce ".so", about th= e single ".o" files, as if they are built wrong containing non-aligned offs= ets. So I looked for a single ".o" how it was built and here is how it is built: =C2=A0 /data/sources/sonicle/xstream-userland-gate/components/developer/gcc-6/buil= d/sparcv7/./gcc/xgcc -shared-libgcc -B/data/sources/sonicle/xstream-userlan= d-gate/components/developer/gcc-6/build/sparcv7/./gcc -nostdinc++ -L/data/s= ources/sonicle/xstream-userland-gate/components/developer/gcc-6/build/sparc= v7/sparc-sun-solaris2.11/libstdc++-v3/src -L/data/sources/sonicle/xstream-u= serland-gate/components/developer/gcc-6/build/sparcv7/sparc-sun-solaris2.11= /libstdc++-v3/src/.libs -L/data/sources/sonicle/xstream-userland-gate/compo= nents/developer/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/libs= upc++/.libs -B/usr/gcc/6/sparc-sun-solaris2.11/bin/ -B/usr/gcc/6/sparc-sun-= solaris2.11/lib/ -isystem /usr/gcc/6/sparc-sun-solaris2.11/include -isystem= /usr/gcc/6/sparc-sun-solaris2.11/sys-include -I/data/sources/sonicle/xstre= am-userland-gate/components/developer/gcc-6/gcc-6.5.0/libstdc++-v3/../libgc= c -I/data/sources/sonicle/xstream-userland-gate/components/developer/gcc-6/= build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/include/sparc-sun-solaris2= .11 -I/data/sources/sonicle/xstream-userland-gate/components/developer/gcc-= 6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/include -I/data/sources/= sonicle/xstream-userland-gate/components/developer/gcc-6/gcc-6.5.0/libstdc+= +-v3/libsupc++ -std=3Dgnu++11 -D_GLIBCXX_SHARED -fno-implicit-templates -Wa= ll -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=3D= once -ffunction-sections -fdata-sections -frandom-seed=3Dwstring-io-inst.lo= -g -O2 -c /data/sources/sonicle/xstream-userland-gate/components/developer= /gcc-6/gcc-6.5.0/libstdc++-v3/src/c++11/wstring-io-inst.cc =C2=A0-fPIC -DPI= C -D_GLIBCXX_SHARED -o wstring-io-inst.o =C2=A0 So I'm thinking the problem is on the temporary built xgcc that is producin= g a wrong ".o". =C2=A0 Any more ideas? =C2=A0 Gabriele =C2=A0 =C2=A0 Sonicle S.r.l.=C2=A0:=C2=A0http://www.sonicle.com Music:=C2=A0http://www.gabrielebulfon.com eXoplanets=C2=A0:=C2=A0https://gabrielebulfon.bandcamp.com/album/exoplanets =C2=A0 =C2=A0 Da: Joel Sherrill A: Gabriele Bulfon Cc: GCC Data: 21 giugno 2022 13.44.22 CEST Oggetto: Re: Build of any gcc breaks on my sparc / illumos env Well we got gcc's verbose but in the we need ld's. Should be something like= -Wl,-v=C2=A0 If someone actually knew offhand which linker script template of used in th= is cases it would help. I don't and always have to dig. =C2=A0 --joel On Mon, Jun 20, 2022, 12:09 PM Gabriele Bulfon wrote: Thanks! This is what I get adding "-v", and to me it's not telling anything= interesting, maybe you can see more than I can? Reading specs from /data/sources/sonicle/old-xstream-userland-gate/componen= ts/gcc-6/build/sparcv7/./gcc/specs COLLECT_GCC=3D/data/sources/sonicle/old-xstream-userland-gate/components/gc= c-6/build/sparcv7/./gcc/xgcc COLLECT_LTO_WRAPPER=3D/data/sources/sonicle/old-xstream-userland-gate/compo= nents/gcc-6/build/sparcv7/./gcc/lto-wrapper Target: sparc-sun-solaris2.11 Configured with: /data/sources/sonicle/xstream-userland-gate/components/gcc= -6/gcc-6.5.0/configure --prefix=3D/usr/gcc/6 --mandir=3D/usr/gcc/6/share/ma= n --bindir=3D/usr/gcc/6/bin --libdir=3D/usr/gcc/ 6/lib --sbindir=3D/usr/gcc/6/sbin --infodir=3D/usr/share/info --sysconfdir= =3D/etc --without-gnu-as --with-as=3D/usr/bin/as --build=3Dsparc-sun-solari= s2.11 --sbindir=3D/usr/gcc/6/bin --libdir=3D/usr/gcc/6/ lib --libexecdir=3D/usr/gcc/6/lib --host sparc-sun-solaris2.11 --build spar= c-sun-solaris2.11 --target sparc-sun-solaris2.11 --with-pkgversion=3D'XStre= amOS 6.5.0-XS-2' --with-bugurl=3Dhttps://bugs. xstreamos.org --enable-plugins --enable-objc-gc --enable-initfini-array --e= nable-languages=3Dc,c++,fortran,lto,objc --without-gnu-ld --with-ld=3D/usr/= bin/ld --with-build-time-tools=3D/usr/gnu/spar c-sun-solaris2.11/bin --disable-libitm --without-gnu-as --with-as=3D/usr/bi= n/as LDFLAGS=3D-R/usr/gcc/6/lib Thread model: posix gcc version 6.5.0 (XStreamOS 6.5.0-XS-2) COMPILER_PATH=3D/data/sources/sonicle/old-xstream-userland-gate/components/= gcc-6/build/sparcv7/./gcc/:/usr/ccs/bin/ LIBRARY_PATH=3D/data/sources/sonicle/old-xstream-userland-gate/components/g= cc-6/build/sparcv7/./gcc/:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS=3D'-v' '-shared-libgcc' '-B' '/data/sources/sonicle/old= -xstream-userland-gate/components/gcc-6/build/sparcv7/./gcc' '-nostdinc++' = '-L/data/sources/sonicle/old-xstream-userl and-gate/components/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/= src' '-L/data/sources/sonicle/old-xstream-userland-gate/components/gcc-6/bu= ild/sparcv7/sparc-sun-solaris2.11/libstd c++-v3/src/.libs' '-L/data/sources/sonicle/old-xstream-userland-gate/compon= ents/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/libsupc++/.libs= ' '-B' '/usr/gcc/6/sparc-sun-solaris2.11 /bin/' '-B' '/usr/gcc/6/sparc-sun-solaris2.11/lib/' '-isystem' '/usr/gcc/6/= sparc-sun-solaris2.11/include' '-isystem' '/usr/gcc/6/sparc-sun-solaris2.11= /sys-include' '-shared' '-nostdlib' '-L/ data/sources/sonicle/old-xstream-userland-gate/components/gcc-6/build/sparc= v7/sparc-sun-solaris2.11/libstdc++-v3/libsupc++/.libs' '-L/data/sources/son= icle/old-xstream-userland-gate/component s/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/src' '-L/data/sour= ces/sonicle/old-xstream-userland-gate/components/gcc-6/build/sparcv7/sparc-= sun-solaris2.11/libstdc++-v3/src/.libs' '-L/data/sources/sonicle/old-xstream-userland-gate/components/gcc-6/build/s= parcv7/./gcc' '-o' '.libs/libstdc++.so.6.0.22' '-mcpu=3Dv9' =C2=A0/data/sources/sonicle/old-xstream-userland-gate/components/gcc-6/buil= d/sparcv7/./gcc/collect2 -V -G -dy -z text -M /data/sources/sonicle/old-xst= ream-userland-gate/components/gcc-6/build/spa rcv7/./gcc/libgcc-unwind.map -Y P,/usr/gcc/6/lib:/lib:/usr/lib -R /usr/gcc/= 6/lib -L /usr/gcc/6/lib -Qy -o .libs/libstdc++.so.6.0.22 -L/data/sources/so= nicle/old-xstream-userland-gate/componen ts/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/src -L/data/sourc= es/sonicle/old-xstream-userland-gate/components/gcc-6/build/sparcv7/sparc-s= un-solaris2.11/libstdc++-v3/src/.libs -L /data/sources/sonicle/old-xstream-userland-gate/components/gcc-6/build/spar= cv7/sparc-sun-solaris2.11/libstdc++-v3/libsupc++/.libs -L/data/sources/soni= cle/old-xstream-userland-gate/components /gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/libsupc++/.libs -L/= data/sources/sonicle/old-xstream-userland-gate/components/gcc-6/build/sparc= v7/sparc-sun-solaris2.11/libstdc++-v3/sr c -L/data/sources/sonicle/old-xstream-userland-gate/components/gcc-6/build/= sparcv7/sparc-sun-solaris2.11/libstdc++-v3/src/.libs -L/data/sources/sonicl= e/old-xstream-userland-gate/components/g cc-6/build/sparcv7/./gcc -L/data/sources/sonicle/old-xstream-userland-gate/= components/gcc-6/build/sparcv7/./gcc /usr/lib/crti.o /usr/lib/values-Xa.o /= data/sources/sonicle/old-xstream-userlan d-gate/components/gcc-6/build/sparcv7/./gcc/crtbeginS.o .libs/compatibility= .o .libs/compatibility-debug_list.o .libs/compatibility-debug_list-2.o .lib= s/compatibility-c++0x.o .libs/compatibil ity-atomic-c++0x.o .libs/compatibility-thread-c++0x.o .libs/compatibility-c= hrono.o .libs/compatibility-condvar.o -z allextract ../libsupc++/.libs/libs= upc++convenience.a ../src/c++98/.libs/li bc++98convenience.a ../src/c++11/.libs/libc++11convenience.a -z defaultextr= act -lm -lgcc_s -lc -lgcc_s -lc /data/sources/sonicle/old-xstream-userland-= gate/components/gcc-6/build/sparcv7/./gc c/crtendS.o /usr/lib/crtn.o -M libstdc++-symbols.ver-sun -h libstdc++.so.6 ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1756 (illu= mos) ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility.o: sy= mbol .gcc_except_table (section): offset 0xffffffff7518de91 is non-aligned ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility.o: sy= mbol .gcc_except_table (section): offset 0xffffffff7518deb1 is non-aligned ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility-atomi= c-c++0x.o: symbol .gcc_except_table (section): offset 0xffffffff7518df39 is= non-aligned ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility-atomi= c-c++0x.o: symbol .gcc_except_table (section): offset 0xffffffff7518df59 is= non-aligned ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility-threa= d-c++0x.o: symbol .gcc_except_table (section): offset 0xffffffff7518dfb5 is= non-aligned ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility-threa= d-c++0x.o: symbol .gcc_except_table (section): offset 0xffffffff7518dff5 is= non-aligned =C2=A0 =C2=A0 Sonicle S.r.l.=C2=A0:=C2=A0http://www.sonicle.com Music:=C2=A0http://www.gabrielebulfon.com eXoplanets=C2=A0:=C2=A0https://gabrielebulfon.bandcamp.com/album/exoplanets =C2=A0 =C2=A0 Da: Joel Sherrill A: Gabriele Bulfon Cc: GCC Data: 20 giugno 2022 15.21.06 CEST Oggetto: Re: Build of any gcc breaks on my sparc / illumos env On Mon, Jun 20, 2022, 7:23 AM Gabriele Bulfon wrote: Who may be responsible for this alignment? The same Makefile has been used in other distros, and the same 4.7 that I'm= using was built on another previous system without problems, but now produ= ces this error itself on the new system. I bet this is something about the env on the new system, but I don't know w= hat piece is responsible for this alignment. =C2=A0 This would come from binutils. Did you upgrade those also? =C2=A0 I think if you use a -v on the linking gcc invocation, it should show the l= inker.xommand and script used. Just follow that info to locate the linker s= cript and then look just before the unaligned section. =C2=A0 --joel =C2=A0 Any clue? Gabriele =C2=A0 =C2=A0 Sonicle S.r.l.=C2=A0:=C2=A0http://www.sonicle.com Music:=C2=A0http://www.gabrielebulfon.com eXoplanets=C2=A0:=C2=A0https://gabrielebulfon.bandcamp.com/album/exoplanets =C2=A0 =C2=A0 Da: Joel Sherrill A: Gabriele Bulfon Cc: GCC Data: 20 giugno 2022 13.04.17 CEST Oggetto: Re: Build of any gcc breaks on my sparc / illumos env On Mon, Jun 20, 2022, 5:14 AM Gabriele Bulfon via Gcc wro= te: Hi, =C2=A0 I'm the maintainer of the XStreamOS/illumos distro, mainly x86 but we also = have a sparc version. I'm currently trying to upgrade a T4 system running XStreamOS/sparc as of i= llumos 2019. This system contains a gcc 4.7 that I used to build all the various userlan= d components, built on a previous XStreamOS basic system through a gcc 3. I don't know what changed in the env of the T4 system, with respect to the = previous where I built gcc 4.7. On this system I cannot build any of gcc 5,6,7,8,9,10. The build always breaks here: =C2=A0 libtool: link: =C2=A0/data/sources/sonicle/xstream-userland-gate/components= /gcc-6/build/sparcv7/./gcc/xgcc -shared-libgcc -B/data/sources/sonicle/xstr= eam-userland-gate/components/gcc-6/build/sparcv7/./gcc -nostdinc++ -L/data/= sources/sonicle/xstream-userland-gate/components/gcc-6/build/sparcv7/sparc-= sun-solaris2.11/libstdc++-v3/src -L/data/sources/sonicle/xstream-userland-g= ate/components/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/src/.= libs -L/data/sources/sonicle/xstream-userland-gate/components/gcc-6/build/s= parcv7/sparc-sun-solaris2.11/libstdc++-v3/libsupc++/.libs -B/usr/gcc/6/spar= c-sun-solaris2.11/bin/ -B/usr/gcc/6/sparc-sun-solaris2.11/lib/ -isystem /us= r/gcc/6/sparc-sun-solaris2.11/include -isystem /usr/gcc/6/sparc-sun-solaris= 2.11/sys-include =C2=A0 =C2=A0-shared -nostdlib =C2=A0/usr/lib/crti.o /usr/= lib/values-Xa.o /data/sources/sonicle/xstream-userland-gate/components/gcc-= 6/build/sparcv7/./gcc/crtbeginS.o =C2=A0.libs/compatibility.o .libs/compati= bility-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 .libs/compatibility-condvar.o =C2=A0-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 =C2=A0-L/data/sources/sonicle/xstream-userland-gate/componen= ts/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/libsupc++/.libs -= L/data/sources/sonicle/xstream-userland-gate/components/gcc-6/build/sparcv7= /sparc-sun-solaris2.11/libstdc++-v3/src -L/data/sources/sonicle/xstream-use= rland-gate/components/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v= 3/src/.libs -lm -L/data/sources/sonicle/xstream-userland-gate/components/gc= c-6/build/sparcv7/./gcc -lgcc_s -lc -lgcc_s -lc /data/sources/sonicle/xstre= am-userland-gate/components/gcc-6/build/sparcv7/./gcc/crtendS.o /usr/lib/cr= tn.o =C2=A0-Wl,-M -Wl,libstdc++-symbols.ver-sun =C2=A0 -Wl,-h -Wl,libstdc++= .so.6 -o .libs/libstdc++.so.6.0.22 ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility.o: sy= mbol .gcc_except_table (section): offset 0xffffffff74d8ddf1 is non-aligned ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility.o: sy= mbol .gcc_except_table (section): offset 0xffffffff74d8de11 is non-aligned ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility-atomi= c-c++0x.o: symbol .gcc_except_table (section): offset 0xffffffff74d8de99 is= non-aligned ld: fatal: relocation error: R_SPARC_DISP32: file .libs/compatibility-atomi= c-c++0x.o: symbol .gcc_except_table (section): offset 0xffffffff74d8deb9 is= non-aligned ... =C2=A0 Any chance the linker script is missing an align directive ahead of this se= ction? Or it is insufficient? Or (unlikely) broken?=C2=A0 =C2=A0 --joel =C2=A0 =C2=A0 As an example, the ".libs/compatibility.o" file is built like this: =C2=A0 libtool: compile: =C2=A0/data/sources/sonicle/xstream-userland-gate/compone= nts/gcc-6/build/sparcv7/./gcc/xgcc -shared-libgcc -B/data/sources/sonicle/x= stream-userland-gate/components/gcc-6/build/sparcv7/./gcc -nostdinc++ -L/da= ta/sources/sonicle/xstream-userland-gate/components/gcc-6/build/sparcv7/spa= rc-sun-solaris2.11/libstdc++-v3/src -L/data/sources/sonicle/xstream-userlan= d-gate/components/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/sr= c/.libs -L/data/sources/sonicle/xstream-userland-gate/components/gcc-6/buil= d/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/libsupc++/.libs -B/usr/gcc/6/s= parc-sun-solaris2.11/bin/ -B/usr/gcc/6/sparc-sun-solaris2.11/lib/ -isystem = /usr/gcc/6/sparc-sun-solaris2.11/include -isystem /usr/gcc/6/sparc-sun-sola= ris2.11/sys-include -I/data/sources/sonicle/xstream-userland-gate/component= s/gcc-6/build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/include/sparc-sun-= solaris2.11 -I/data/sources/sonicle/xstream-userland-gate/components/gcc-6/= build/sparcv7/sparc-sun-solaris2.11/libstdc++-v3/include -I/data/sources/so= nicle/xstream-userland-gate/components/gcc-6/gcc-6.5.0/libstdc++-v3/libsupc= ++ -std=3Dgnu++98 -fPIC -DPIC -fno-implicit-templates -Wall -Wextra -Wwrite= -strings -Wcast-qual -Wabi -fdiagnostics-show-location=3Donce -ffunction-se= ctions -fdata-sections -frandom-seed=3Dcompatibility.lo -g -O2 -c /data/sou= rces/sonicle/xstream-userland-gate/components/gcc-6/gcc-6.5.0/libstdc++-v3/= src/c++98/compatibility.cc =C2=A0-fPIC -DPIC -D_GLIBCXX_SHARED -o .libs/com= patibility.o =C2=A0 I cannot find what is causing this non-aligned problem. This is how configure is invoked: /data/sources/sonicle/xstream-userland-gate/components/gcc-6/gcc-6.5.0/conf= igure --prefix=3D/usr/gcc/6 --mandir=3D/usr/gcc/6/share/man --bindir=3D/usr= /gcc/6/bin --libdir=3D/usr/gcc/6/lib --sbindir=3D/usr/gcc/6/sbin --infodir= =3D/usr/share/info --sysconfdir=3D/etc --without-gnu-as --with-as=3D/usr/bi= n/as --build=3Dsparc-sun-solaris2.11 =C2=A0--sbindir=3D/usr/gcc/6/bin --lib= dir=3D/usr/gcc/6/lib --libexecdir=3D/usr/gcc/6/lib --host sparc-sun-solaris= 2.11 --build sparc-sun-solaris2.11 --target sparc-sun-solaris2.11 --with-pk= gversion=3D"XStreamOS 6.5.0-XS-2" --with-bugurl=3D"https://bugs.xstreamos.o= rg" --enable-plugins --enable-objc-gc --enable-initfini-array --enable-lang= uages=3Dc,c++,fortran,lto,objc --without-gnu-ld --with-ld=3D/usr/bin/ld --w= ith-build-time-tools=3D/usr/gnu/sparc-sun-solaris2.11/bin --disable-libitm = --without-gnu-as --with-as=3D/usr/bin/as LDFLAGS=3D"-R/usr/gcc/6/lib" =C2=A0 As you can see, I use both illumos as and ld, but I also tried using gnu as= with the same result. I also tried using gnu ld (which is not recommended on a sparc build, AFAIK= ), but that brought in different problems earlier. =C2=A0 Anyone can help? =C2=A0 Thanks! Gabriele =C2=A0 =C2=A0 =C2=A0 Sonicle S.r.l.=C2=A0:=C2=A0http://www.sonicle.com Music:=C2=A0http://www.gabrielebulfon.com eXoplanets=C2=A0:=C2=A0https://gabrielebulfon.bandcamp.com/album/exoplanets =C2=A0