mailing list of musl libc
 help / color / mirror / code / Atom feed
From: stephen Turner <stephen.n.turner@gmail.com>
To: musl@lists.openwall.com
Subject: Re: converting gcc from glibc to musl
Date: Wed, 1 Oct 2014 16:43:34 -0400	[thread overview]
Message-ID: <CAA7aPHg3WKisGua-oo0q9qPTeYH6GCh4DN-ZL5e=Ax+7eiO=Zw@mail.gmail.com> (raw)
In-Reply-To: <CAA7aPHg-0q_yv4FRaZp3ra41Ezmp2qMbtD8Nabj+vYGC2Z09Bg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2242 bytes --]

i recompiled binutils with the musl wrapper, im assuming musl libs isnt the
issue since it doesnt make sense that it would search for itself but im
still not sure how to resolve the pointing issue. recompiling binutils with
the musl wrapper didnt resolve the issue obviously but would i need to set
an include or lib path for it or specify newlib like with gcc?

On Wed, Oct 1, 2014 at 4:34 PM, stephen Turner <stephen.n.turner@gmail.com>
wrote:

> 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@sholland.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@sholland.net>
>>
>
>

[-- Attachment #2: Type: text/html, Size: 3418 bytes --]

  reply	other threads:[~2014-10-01 20:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 15:37 stephen Turner
2014-10-01 16:10 ` Szabolcs Nagy
2014-10-01 17:54   ` stephen Turner
2014-10-01 18:13     ` Szabolcs Nagy
2014-10-01 19:11       ` stephen Turner
2014-10-01 20:44         ` Szabolcs Nagy
2014-10-01 19:00     ` Samuel Holland
2014-10-01 19:13       ` stephen Turner
2014-10-01 19:35         ` Samuel Holland
2014-10-01 19:44           ` stephen Turner
2014-10-01 20:17             ` Samuel Holland
2014-10-01 20:34               ` stephen Turner
2014-10-01 20:43                 ` stephen Turner [this message]
2014-10-01 20:54                 ` Samuel Holland
2014-10-02 20:31                   ` stephen Turner
2014-10-02 20:47                     ` Samuel Holland
2014-10-02 22:40                       ` stephen Turner
2014-10-03 13:51                         ` stephen Turner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA7aPHg3WKisGua-oo0q9qPTeYH6GCh4DN-ZL5e=Ax+7eiO=Zw@mail.gmail.com' \
    --to=stephen.n.turner@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).