Re: gcc-4.2.4 x86->m68k cross compiler build error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kevin diggs <diggskevin38@xxxxxxxxx> writes:

> On Mon, Apr 18, 2011 at 1:59 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
>> kevin diggs <diggskevin38@xxxxxxxxx> 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
>>
>
> Uh ... I'm not really smart enough to argue with you ... but ... are
> you sure? I use centrally located shell scripts to run configure so
> that I can easily recreate stuff if I need to. The same script was
> used to create binutils for both:
>
> #!/bin/bash
>
> #	--prefix=/opt/cross/q700/binutils-2.16.1 \
> CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" `dirname ${0}`/configure \
> 	--target=m68k-netbsdelf1.6.1 \
> 	--prefix=/opt/cross/q700/binutils-2.16.1 \
> 	--with-mpfr=/opt/MPFR-2.4.2 \
> 	--with-gmp=/opt/GMP-4.3.2 \
> 	--enable-shared
>
> The only difference was pentium3 vs pentium4?

I'm not sure how what you are saying disagrees with what I am saying.
Your linker was not configured with --with-sysroot.  The error message
above suggests strongly that the compiler is passing --sysroot to the
linker.

> Will this option work with binutils 2.16.1? It is not listed in the --help?

Now that you mention it, why are you using such an old version of the
binutils?

I've sometimes heard reasons for using old gcc releases, but I don't
know of any reasons to use old binutils releases.  Old gcc releases
should work with new binutils.

Ian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux