From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6269 Path: news.gmane.org!not-for-mail From: stephen Turner Newsgroups: gmane.linux.lib.musl.general Subject: Re: libgcc errors Date: Tue, 7 Oct 2014 17:32:12 -0400 Message-ID: References: <20141007195156.GV21835@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f647193ae109e0504dbeeac X-Trace: ger.gmane.org 1412717553 3493 80.91.229.3 (7 Oct 2014 21:32:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 21:32:33 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6282-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 07 23:32:28 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 1XbcMr-0004Lr-N0 for gllmg-musl@plane.gmane.org; Tue, 07 Oct 2014 23:32:25 +0200 Original-Received: (qmail 13422 invoked by uid 550); 7 Oct 2014 21:32:24 -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 13414 invoked from network); 7 Oct 2014 21:32:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xACPhuN+6mau9SRz2C2cp1aAIa58ibkiuR/jayYQqIE=; b=Ydy1Qi0QzrnBkjJ9Z8LvxpUfoXUUqKTas5JRcYvd0EbJn3D/Ily1gcXbqb09a9Ccot r+s5+OORa5OsG5HysSniDmYc2fxuQsnK2ILQ2WgtyarJUbY4wQwwYd9+mjMKRVb3+LvH addLdGBeogiZ+w4357N37rW42aGptThfmVv5ZGTrpDFESWBVQD4uqIzpN/mokWaiVMNH lOKIZAQ4DqmCwB4ZjH2XFfwNvvgxO+sZuPjIZezdTOU1elLQJIaB50kItmOA+XNeEMFx CscsZRJ5hqbyAaLFvf8J2SkR+oB605kjj+O9dA2K45eZrvBz4Amt+8ZQURp2A4d46kMY 6O/A== X-Received: by 10.220.74.10 with SMTP id s10mr5907374vcj.61.1412717532284; Tue, 07 Oct 2014 14:32:12 -0700 (PDT) In-Reply-To: <20141007195156.GV21835@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:6269 Archived-At: --e89a8f647193ae109e0504dbeeac Content-Type: text/plain; charset=UTF-8 /root/code/gcc-build/./gcc/as: 106: exec: --32: not found I have a directory /root/code/ for all my programs to be compiled. the directory root/code/gcc-build is separate from the root/code/gcc source directory as they recommended a separate folder to compile in. knowing this, wouldn't the link above reference an "as" program that was recently compiled as a part of the gcc make process since its in the previously empty gcc-build directory? If not then while using the --with-sysroot flag would it pull a copy of it from this directory or the host system? I'm also confused why this happens when i define --host or --target but not when i drop those ./configure options? If i had a issue with "as" wouldn't it create a similar error when compiling for a native glibc system? By my understanding the first stage toolchain is debian's since you would be referencing the toolchain used to attempt to compile this package correct? Which would be the same tool chain used before to successfully compile a gcc-4.6.4 which could static link but not dynamic due to the lack of --host --target use as i was advised. I apologize for my lack of experience with building toolchains. if there is a known good tutorial for this i will gladly ref it however the best i have found is lfs embedded which i am currently using (and not working). Thanks for your time and assistance. On Tue, Oct 7, 2014 at 3:51 PM, Szabolcs Nagy wrote: > * stephen Turner [2014-10-07 14:54:33 -0400]: > > 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 > > your as does not accept --32 for some reason > or it is called incorrectly in some way > > so the first stage toolchain is broken > > > 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. > --e89a8f647193ae109e0504dbeeac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
/root/code/gcc-build/./gcc/as: 106: exec: --32: not found

I have a directory /root/code/ for all = my programs to be compiled. the directory root/code/gcc-build is=C2=A0separ= ate=C2=A0from the root/code/gcc source directory as they recommended a=C2= =A0separate=C2=A0folder to compile in. =C2=A0knowing this, wouldn't the= link above reference an "as" program that was recently compiled = as a part of the gcc make process since its in the previously empty gcc-bui= ld directory? If not then while using the --with-sysroot flag would it pull= a copy of it from this directory or the host system?

I'm also confused why this happens when i define --host or --t= arget but not when i drop those ./configure options? If i had a issue with = "as" wouldn't it create a=C2=A0similar=C2=A0error when compil= ing for a native glibc system?=C2=A0

By my un= derstanding the first stage toolchain is debian's since you would be re= ferencing the toolchain used to attempt to compile this package correct? Wh= ich would be the same tool chain used before to=C2=A0successfully=C2=A0comp= ile a gcc-4.6.4 which could=C2=A0static link but not dynamic due to the lac= k of --host --target use as i was advised.=C2=A0

I apologize for my lack of experience with building toolchains. if th= ere is a known good tutorial for this i will gladly ref it however the best= i have found is lfs embedded which i am currently using (and not working).= =C2=A0

Thanks for your time and assistance.
=

On Tue, Oct= 7, 2014 at 3:51 PM, Szabolcs Nagy <nsz@port70.net> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">* stephen Turner <stephen.n.turner@gmail.com> [2014-10-07 14:54:= 33 -0400]:
> 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=C2=A0 =C2=A0 -v >&5<= br> > Reading specs from /root/code/gcc-build/./gcc/specs
> COLLECT_GCC=3D/root/code/gcc-build/./gcc/xgcc
> COLLECT_LTO_WRAPPER=3D/root/code/gcc-build/./gcc/lto-wrapper
> Target: i686-linux-musl
> Configured with: ../gcc/configure --prefix=3D/root/targetfs
> --enable-languages=3Dc --disable-bootstrap --disable-multilib
> --disable-shared --disable-nls --disable-mudflap --disable-libmudflap<= br> > --disable-libssp --disable-libgomp --with-newlib --without-headers
> --target=3Di686-linux-musl --with-sysroot=3D/root/targetfs/
> Thread model: posix
> gcc version 4.9.0 (GCC)
> configure:3373: $? =3D 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=C2=A0 =C2=A0 -V >&5<= br> > xgcc: error: unrecognized command line option '-V'
> xgcc: fatal error: no input files
> compilation terminated.
> configure:3373: $? =3D 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=C2=A0 =C2=A0 -qversion >= &5
> xgcc: error: unrecognized command line option '-qversion'
> xgcc: fatal error: no input files
> compilation terminated.
> configure:3373: $? =3D 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=C2=A0 =C2=A0 -o conftest -g= -O2
> conftest.c=C2=A0 >&5
> /root/code/gcc-build/./gcc/as: 106: exec: --32: not found
> configure:3392: $? =3D 1

your as does not accept --32 for some reason
or it is called incorrectly in some way

so the first stage toolchain is broken

> 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=C2=A0 =C2=A0 -c -g -O2=C2= =A0 conftest.c >&5
> /root/code/gcc-build/./gcc/as: 106: exec: --32: not found
> configure: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 "GNU C Runtime Library 1.0"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
> | /* end confdefs.h.=C2=A0 */
> |
> | int
> | main ()
> | {
> |
> |=C2=A0 =C2=A0;
> |=C2=A0 =C2=A0return 0;
> | }
> configure:3620: error: in `/root/code/gcc-build/i686-linux-musl/libgcc= ':
> configure:3623: error: cannot compute suffix of object files: cannot c= ompile
> See `config.log' for more details.

--e89a8f647193ae109e0504dbeeac--