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 18:10:21 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: converting gcc from glibc to musl

* stephen Turner <stephen.n.turner@...il.com> [2014-10-01 11:37:22 -0400]:
> Im having a really hard time getting this working correctly. Long story
> short i have probobly made every mistake possible but now i have a system
> with busybox, make, bash, musl (no wrapper) 3.2 headers (using 3.2 debian
> kernel) and a patched binutils-2.24 and gcc-4.6.4 (with math libs)
> 
> I compile everything static and use the musl-gcc wrapper installed on by
> host system to compile binutils and gcc. everything runs in the target
> system but i get a error when running configure that talks about the a.out
> file is not executable and gcc cannot compile programs (it does make the
> a.out file though it just cant run)
> 

do you have a static linked gcc with musl support on the target?
does the configure script run on the target?
you need to be more clear and provide more information like:

- can gcc compile a minimal program (empty main)?
- where does gcc/ld fail, how were they invoked (gcc -v)?
- in the executable is the loader properly set up (readelf)?
- check if the loader/libc at the right path
- can you run the executable with the loader explicitly?
- strace the executable, where does it fail?

> would this be an issue with my headers/libs or binutils/gcc ?
> 
> The end goal here is to create the most vanilla system possible that can
> dynamically use musl. albiet ive chosen some rather un-vanilla programs for
> the base.

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.