From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6267 Path: news.gmane.org!not-for-mail From: stephen Turner Newsgroups: gmane.linux.lib.musl.general Subject: libgcc errors Date: Tue, 7 Oct 2014 14:54:33 -0400 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01538648e04ea00504d9ba89 X-Trace: ger.gmane.org 1412708092 9119 80.91.229.3 (7 Oct 2014 18:54:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 18:54:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6280-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 07 20:54:47 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XbZuI-0006mE-G8 for gllmg-musl@plane.gmane.org; Tue, 07 Oct 2014 20:54:46 +0200 Original-Received: (qmail 11494 invoked by uid 550); 7 Oct 2014 18:54:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11478 invoked from network); 7 Oct 2014 18:54:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=h18YCQpLJQhzGPiR+zQ4G7VIgJHYAzv7oQ6FIdg+AMc=; b=GFw5kimjzylAWdnwf8YKKq8mn2aZRyrfFSyKc7Ba9t50v7Y0RLdzxzfik/SYpnbUK2 BRXb3her8nE8FNzID/pmuNBNWhcjw1CcKpSj3AiCT2L7onv9M4hqQJoQ4dEaKesADEL0 D1JoS+yYq+ioc2SBLJPNPeLezoxVe3jLgsCHXzlP7+y82Lpxt0Cr8Rgako9vVgP/Nzrt hONDzwDZX9CsxH9LRK+yxizDpAVcDNEsAfbh02MmfYAO0kjUHmjJGsjlckixl3RWW6z3 UiUX2yN6A/Ea7yHXTdr9i49rMTUtKtW69KGDV+wJymu+Sc5KoOhtnixhH82L5jrGr+OO M4pg== X-Received: by 10.52.162.74 with SMTP id xy10mr4244896vdb.51.1412708073228; Tue, 07 Oct 2014 11:54:33 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:6267 Archived-At: --089e01538648e04ea00504d9ba89 Content-Type: text/plain; charset=UTF-8 Previously i emailed about an issue i was having with no response. I rebuilt the cross toolchain with the latest versions and switched from 3.X to 2.6 kernel headers to try to work around the issue but still get the same error compiling libgcc of which now it points to a config.log. I pulled that log and here is the part leading up to the error, if you want the rest or anything else please let me know. Im trying to find out why after using the musl patch and specifying --target or --host=i686-linux-musl I recieve this issue compiling libgcc, This only happens if i specify the host or target as musl. I appreciate any help you can provide. It was created by GNU C Runtime Library configure 1.0, which was generated by GNU Autoconf 2.64. Invocation command line was $ /root/code/gcc/libgcc/configure --cache-file=./config.cache --with-cross-host=i686-pc-linux-gnu --prefix=/root/targetfs --disable-bootstrap --disable-multilib --disable-shared --disable-nls --disable-mudflap --disable-libmudflap --disable-libssp --disable-libgomp --with-newlib --without-headers --with-sysroot=/root/targetfs/ --enable-languages=c,lto --program-transform-name=s&^&i686-linux-musl-& --disable-option-checking --with-target-subdir=i686-linux-musl --build=i686-pc-linux-gnu --host=i686-linux-musl --target=i686-linux-musl --srcdir=../../../gcc/libgcc ## --------- ## ## Platform. ## ## --------- ## hostname = debian uname -m = i686 uname -r = 3.2.0-4-686-pae uname -s = Linux uname -v = #1 SMP Debian 3.2.60-1+deb7u3 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1980: creating cache ./config.cache configure:2163: checking build system type configure:2177: result: i686-pc-linux-gnu configure:2197: checking host system type configure:2210: result: i686-pc-linux-musl configure:2307: checking for --enable-version-specific-runtime-libs configure:2320: result: no configure:2368: checking for a BSD-compatible install configure:2436: result: /usr/bin/install -c configure:2452: checking for gawk configure:2479: result: mawk configure:2579: checking for i686-linux-musl-ar configure:2606: result: i686-linux-musl-ar configure:2671: checking for i686-linux-musl-lipo configure:2698: result: i686-linux-musl-lipo configure:2763: checking for i686-linux-musl-nm configure:2790: result: /root/code/gcc-build/./gcc/nm configure:2855: checking for i686-linux-musl-ranlib configure:2882: result: i686-linux-musl-ranlib configure:2947: checking for i686-linux-musl-strip configure:2974: result: i686-linux-musl-strip configure:3036: checking whether ln -s works configure:3040: result: yes configure:3057: checking for i686-linux-musl-gcc configure:3084: result: /root/code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-musl/sys-include configure:3353: checking for C compiler version configure:3362: /root/code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-musl/sys-include --version >&5 xgcc (GCC) 4.9.0 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3373: $? = 0 configure:3362: /root/code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-musl/sys-include -v >&5 Reading specs from /root/code/gcc-build/./gcc/specs COLLECT_GCC=/root/code/gcc-build/./gcc/xgcc COLLECT_LTO_WRAPPER=/root/code/gcc-build/./gcc/lto-wrapper Target: i686-linux-musl Configured with: ../gcc/configure --prefix=/root/targetfs --enable-languages=c --disable-bootstrap --disable-multilib --disable-shared --disable-nls --disable-mudflap --disable-libmudflap --disable-libssp --disable-libgomp --with-newlib --without-headers --target=i686-linux-musl --with-sysroot=/root/targetfs/ Thread model: posix gcc version 4.9.0 (GCC) configure:3373: $? = 0 configure:3362: /root/code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-musl/sys-include -V >&5 xgcc: error: unrecognized command line option '-V' xgcc: fatal error: no input files compilation terminated. configure:3373: $? = 1 configure:3362: /root/code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-musl/sys-include -qversion >&5 xgcc: error: unrecognized command line option '-qversion' xgcc: fatal error: no input files compilation terminated. configure:3373: $? = 1 configure:3389: /root/code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-musl/sys-include -o conftest -g -O2 conftest.c >&5 /root/code/gcc-build/./gcc/as: 106: exec: --32: not found configure:3392: $? = 1 configure:3580: checking for suffix of object files configure:3602: /root/code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-musl/sys-include -c -g -O2 conftest.c >&5 /root/code/gcc-build/./gcc/as: 106: exec: --32: not found configure:3606: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3620: error: in `/root/code/gcc-build/i686-linux-musl/libgcc': configure:3623: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. --089e01538648e04ea00504d9ba89 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Previously i emailed about an issue i was having with no r= esponse. I rebuilt the cross toolchain with the latest versions and switche= d from 3.X to 2.6 kernel headers to try to work around the issue but still = get the same error compiling libgcc of which now it points to a config.log.= =C2=A0 I pulled that log and here is the part leading up to the error, if y= ou want the rest or anything else please let me know.=C2=A0

<= div>Im trying to find out why after using the musl patch and specifying --t= arget or --host=3Di686-linux-musl I recieve this issue compiling libgcc, = =C2=A0This only happens if i specify the host or target as musl.
=
I appreciate any help you can provide.



It was created by GNU C Runtime Libr= ary configure 1.0, which was
generated by GNU Autoconf 2.64.=C2= =A0 Invocation command line was

=C2=A0 $ /root/cod= e/gcc/libgcc/configure --cache-file=3D./config.cache --with-cross-host=3Di6= 86-pc-linux-gnu --prefix=3D/root/targetfs --disable-bootstrap --disable-mul= tilib --disable-shared --disable-nls --disable-mudflap --disable-libmudflap= --disable-libssp --disable-libgomp --with-newlib --without-headers --with-= sysroot=3D/root/targetfs/ --enable-languages=3Dc,lto --program-transform-na= me=3Ds&^&i686-linux-musl-& --disable-option-checking --with-tar= get-subdir=3Di686-linux-musl --build=3Di686-pc-linux-gnu --host=3Di686-linu= x-musl --target=3Di686-linux-musl --srcdir=3D../../../gcc/libgcc
=
## --------- ##
## Platform. ##
## -----= ---- ##

hostname =3D debian
uname -m =3D= i686
uname -r =3D 3.2.0-4-686-pae
uname -s =3D Linux
uname -v =3D #1 SMP Debian 3.2.60-1+deb7u3

/usr/bin/uname -p =3D unknown
/bin/uname -X =C2=A0 =C2=A0 =3D u= nknown

/bin/arch =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0=3D unknown
/usr/bin/arch -k =C2=A0 =C2=A0 =C2= =A0 =3D unknown
/usr/convex/getsysinfo =3D unknown
/usr= /bin/hostinfo =C2=A0 =C2=A0 =C2=A0=3D unknown
/bin/machine =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D unknown
/usr/bin/oslevel =C2=A0 = =C2=A0 =C2=A0 =3D unknown
/bin/universe =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0=3D unknown

PATH: /usr/local/sbin
<= div>PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin=
PATH: /sbin
PATH: /bin


## ----------- ##
## Core tests. ##
## -------= ---- ##

configure:1980: creating cache ./config.ca= che
configure:2163: checking build system type
configur= e:2177: result: i686-pc-linux-gnu
configure:2197: checking host s= ystem type
configure:2210: result: i686-pc-linux-musl
c= onfigure:2307: checking for --enable-version-specific-runtime-libs
configure:2320: result: no
configure:2368: checking for a BSD-c= ompatible install
configure:2436: result: /usr/bin/install -c
configure:2452: checking for gawk
configure:2479: result: = mawk
configure:2579: checking for i686-linux-musl-ar
co= nfigure:2606: result: i686-linux-musl-ar
configure:2671: checking= for i686-linux-musl-lipo
configure:2698: result: i686-linux-musl= -lipo
configure:2763: checking for i686-linux-musl-nm
c= onfigure:2790: result: /root/code/gcc-build/./gcc/nm
configure:28= 55: checking for i686-linux-musl-ranlib
configure:2882: result: i= 686-linux-musl-ranlib
configure:2947: checking for i686-linux-mus= l-strip
configure:2974: result: i686-linux-musl-strip
c= onfigure:3036: checking whether ln -s works
configure:3040: resul= t: yes
configure:3057: checking for i686-linux-musl-gcc
configure:3084: result: /root/code/gcc-build/./gcc/xgcc -B/root/code/gcc-b= uild/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/root/targetfs/i686-lin= ux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/include -isystem /root= /targetfs/i686-linux-musl/sys-include =C2=A0=C2=A0
configure:3353= : checking for C compiler version
configure:3362: /root/code/gcc-= build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i686-linux-= musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root/targetfs/i68= 6-linux-musl/include -isystem /root/targetfs/i686-linux-musl/sys-include = =C2=A0 =C2=A0--version >&5
xgcc (GCC) 4.9.0
Copy= right (C) 2014 Free Software Foundation, Inc.
This is free softwa= re; see the source for copying conditions.=C2=A0 There is NO
warr= anty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3373: $? =3D 0
configure:3362: /r= oot/code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetf= s/i686-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root= /targetfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-musl/s= ys-include =C2=A0 =C2=A0-v >&5
Reading specs from /root/co= de/gcc-build/./gcc/specs
COLLECT_GCC=3D/root/code/gcc-build/./gcc= /xgcc
COLLECT_LTO_WRAPPER=3D/root/code/gcc-build/./gcc/lto-wrappe= r
Target: i686-linux-musl
Configured with: ../gcc/confi= gure --prefix=3D/root/targetfs --enable-languages=3Dc --disable-bootstrap -= -disable-multilib --disable-shared --disable-nls --disable-mudflap --disabl= e-libmudflap --disable-libssp --disable-libgomp --with-newlib --without-hea= ders --target=3Di686-linux-musl --with-sysroot=3D/root/targetfs/
= Thread model: posix
gcc version 4.9.0 (GCC)=C2=A0
confi= gure:3373: $? =3D 0
configure:3362: /root/code/gcc-build/./gcc/xg= cc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/r= oot/targetfs/i686-linux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/i= nclude -isystem /root/targetfs/i686-linux-musl/sys-include =C2=A0 =C2=A0-V = >&5
xgcc: error: unrecognized command line option '-V&= #39;
xgcc: fatal error: no input files
compilation term= inated.
configure:3373: $? =3D 1
configure:3362: /root/= code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/targetfs/i6= 86-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem /root/tar= getfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-musl/sys-i= nclude =C2=A0 =C2=A0-qversion >&5
xgcc: error: unrecognize= d command line option '-qversion'
xgcc: fatal error: no i= nput files
compilation terminated.
configure:3373: $? = =3D 1
configure:3389: /root/code/gcc-build/./gcc/xgcc -B/root/cod= e/gcc-build/./gcc/ -B/root/targetfs/i686-linux-musl/bin/ -B/root/targetfs/i= 686-linux-musl/lib/ -isystem /root/targetfs/i686-linux-musl/include -isyste= m /root/targetfs/i686-linux-musl/sys-include =C2=A0 =C2=A0-o conftest -g -O= 2 =C2=A0 conftest.c =C2=A0>&5
/root/code/gcc-build/./gcc/a= s: 106: exec: --32: not found
configure:3392: $? =3D 1
= configure:3580: checking for suffix of object files
configure:360= 2: /root/code/gcc-build/./gcc/xgcc -B/root/code/gcc-build/./gcc/ -B/root/ta= rgetfs/i686-linux-musl/bin/ -B/root/targetfs/i686-linux-musl/lib/ -isystem = /root/targetfs/i686-linux-musl/include -isystem /root/targetfs/i686-linux-m= usl/sys-include =C2=A0 =C2=A0-c -g -O2 =C2=A0conftest.c >&5
/root/code/gcc-build/./gcc/as: 106: exec: --32: not found
confi= gure:3606: $? =3D 1
configure: failed program was:
| /*= confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library= "
| #define PACKAGE_TARNAME "libgcc"
| #= define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING &= quot;GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT = ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
=
| /* end confdefs.h. =C2=A0*/
|=C2=A0
| int
<= div>| main ()
| {
|=C2=A0
| =C2=A0 ;
| =C2=A0 return 0;
| }
configure:3620: error: in `/ro= ot/code/gcc-build/i686-linux-musl/libgcc':
configure:3623: er= ror: cannot compute suffix of object files: cannot compile
See `c= onfig.log' for more details.

--089e01538648e04ea00504d9ba89--