Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 1 Oct 2014 16:34:05 -0400
From: stephen Turner <stephen.n.turner@...il.com>
To: musl@...ts.openwall.com
Subject: Re: converting gcc from glibc to musl

Yea i had to patch gcc just to get it to compile which due to various
issues i have only gotten to run on the target musl system when i use the
musl wrapper to compile gcc.

how would i go about fixing this linker issue? is it with binutils, gcc, or
musl?

I greatly appreciate all the help given, I would still be banging my head
on the desk if it wasn't for your help.


On Wed, Oct 1, 2014 at 4:17 PM, Samuel Holland <samuel@...lland.net> wrote:

> On 10/01/2014 02:44 PM, stephen Turner wrote:
>
>> That is incorrect i gave you a bad readout. (im using debian as a host
>> system which is the gcc i provided)
>>
>>
>> COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'
>>   /bin/../libexec/gcc/i686-pc-linux-gnu/4.6.4/collect2 --eh-frame-hdr -m
>> elf_i386 -dynamic-linker /lib/ld-linux.so.2
>> /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../crt1.o
>> /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../crti.o
>> /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/crtbegin.o
>> -L/bin/../lib/gcc/i686-pc-linux-gnu/4.6.4 -L/bin/../lib/gcc
>> -L/bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../../
>> i686-pc-linux-gnu/lib
>> -L/bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../.. /tmp/ccgPcLnb.o -lgcc
>> -lc -lgcc /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/crtend.o
>> /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../crtn.o
>>
>
> Okay, that makes more sense. Note that your 'dynamic-linker' is still set
> to glibc's, but you are linking to /lib/libc.so (the last -L option), which
> is the correct musl libc. Are you using the musl-cross gcc patch[0]? It
> will solve that for you.
>
> [0] https://bitbucket.org/GregorR/musl-cross/src/default/
> patches/gcc-4.6.4-musl.diff
>
>
> --
> Regards,
> Samuel Holland <samuel@...lland.net>
>

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.