This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-4.2.4 x86->m68k cross compiler build error
- From: Ian Lance Taylor <iant at google dot com>
- To: kevin diggs <diggskevin38 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 18 Apr 2011 11:59:24 -0700
- Subject: Re: gcc-4.2.4 x86->m68k cross compiler build error
- References: <BANLkTimOe_ZA_nxO3wnY8mKs9RPdLu7gWw@mail.gmail.com>
kevin diggs <diggskevin38@gmail.com> writes:
> Does anyone know what this:
>
> /opt/cross/q700/binutils-2.16.1/bin/m68k-netbsdelf1.6.1-ld: this
> linker was not configured to use sysrootscollect2: ld returned 1 exit
> status
> make[3]: *** [libgcc_s.so] Error 1
>
> Thanks!
>
> kevin
>
> P.S.: The 4.2.4 build attempt was done on a different laptop, a 3.2
> GHz p4. Both have Debian 5 installed, though.
Your gcc is passing --sysroot to the linker but the linker was not
configured with --with-sysroot.
I think it's a bug that the linker has to be configured with
--with-sysroot in order to pass the --sysroot option to the linker. I
don't know why it works that way.
Ian