<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 24, 2014 at 11:19 PM, Rob Landley <span dir="ltr"><<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Sep 24, 2014 at 4:55 PM, stephen Turner<br>
<<a href="mailto:stephen.n.turner@gmail.com">stephen.n.turner@gmail.com</a>> wrote:<br>
> I had no idea, not sure how i missed it either. I will join that in a bit as<br>
> i'm sure there is more fun posts to follow there.<br>
><br>
> Right now i think i'm having issues with my headers. I rebuilt a successful<br>
> aboriginal clone (just the programs not scripts) and GCC is able to compile<br>
> code but the a.out file created is unreadable to some extent as the file<br>
> reports not there when you try to run it (don't you love linux saying a file<br>
> cannot be found just because it cant be run when it exists and is present?)<br>
<br>
</span>The file that can't be found is either the dynamic linker or the<br>
program interpreter. Lemme guess: you're not using ccwrap.c.<br></blockquote><div><br></div><div>Is ccwrap.c something i need to turn on? I didnt disable it and GCC is in the /bin dir while i still call ./configure and while running ./configure i receive this output:</div><div><br></div><div>"configure error cannot run c compiled programs."<br></div><div><br></div><div>Now checking the config.log i see</div><div><br></div><div>./conftest</div><div>./configure: line 3900: ./conftest: no such file or directory</div><div> </div><div>For the sake of argument i decided to perform the old hello world test.c test. I did so and recieved a a.out file which clearly had some data in it. trying to run that a.out file returned the error "file not found " </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> I found a snippet on the web that when using musl libc you may need to patch<br>
> the headers as well as gcc. gotta do more home work to see what needs to be<br>
> done there.<br>
<br>
</span>You're building with MUSL=1 ? That's still a bit buggy. I need to dig<br>
into the toolchain to figure out why -Bsymbolic-functions isn't<br>
reliably working. (It seems to for some symbols, but not for all.)<br></blockquote><div><br></div><div>Im using musl 1.1.3 gcc 4.6.4 musl patched</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> I gotta say man, building a mini distro is fun even if it doesn't go<br>
> mainstream! and what a learning experience!<br>
<br>
</span>Long ago I gave a BOF talk about why gcc path logic sucks. It's<br>
probably on <a href="http://landley.net/talks" target="_blank">http://landley.net/talks</a> or some such.<br>
<span class=""><br>
> If you run into any problems rebuilding your system for musl let me know, i<br>
> might already know a work around.<br>
<br>
</span>You know what's wrong with dynamic linking with the last GPLv2 version<br>
of binutils fished out of git (between 2.17 and 2.18, just before the<br>
change to the license file went in) with regard to<br>
-Bsymbolic-functions? It only affects dynamic linking, not static<br>
linking. Might have something to do with weak symbol binding, haven't<br>
spent a weekend to track it down yet...<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>I am trying to dynamic link, i also have binutils 2.24 and i couldnt find any other data on musl patching the headers which doesnt make sense to me. why would linux headers version 3.16 need to be musl patched? headers dont even deal with the libc do they?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
Rob<br>
</font></span><br>
P.S. Nobody ever wants to cc their messages to the aboriginal linux<br>
mailing list. I has a sad.<br>
</blockquote></div><br></div><div class="gmail_extra">Fixed that for you :) no more cc</div><div class="gmail_extra"><br></div></div>