SH4 build failure - The return of `-lc'

Arnaud Lacombe lacombar@gmail.com
Tue Aug 10 22:28:00 GMT 2010


Hi,

On Tue, Aug 10, 2010 at 6:02 PM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> Arnaud, All,
>
> On Tuesday 10 August 2010 06:44:50 Arnaud Lacombe wrote:
>> I've been playing with gcc 4.5.1 on sh4, and it failed the following way
>> --- libgcc/config/sh/t-linux    2010-08-10 00:20:56.000000000 -0400
>> +++ libgcc/config/sh/t-linux.new        2010-08-10 00:21:02.000000000 -0400
>> @@ -15,7 +15,7 @@
>>         -Wl,--version-script=@shlib_map_file@ \
>>         -o @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_flags@ \
>> -       @shlib_objs@ -lc && \
>> +       @shlib_objs@ && \
>>         rm -f @multilib_dir@/@shlib_base_name@.so && \
>>         if [ -f @multilib_dir@/@shlib_base_name@.so.1 ]; then \
>
> I seem to recall there's a similar /fix/ for some other versions as well...
>
yes, this is `gcc/4.3.2/370-sh-no-libc.patch'.

Speaking about that, I'd be interested to have some details about the
`cc_core_pass_2' step. There does not seem to be any details about it
in docs/. In particular, why do we need libgcc to be built  ? The
closest answer I can get so far is "Merge the NPTL stuff. [...]", from
May 2007, which is... enlightening ;-)

Thanks,
 - Arnaud

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list