From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6239 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: converting gcc from glibc to musl Date: Wed, 1 Oct 2014 18:10:21 +0200 Message-ID: <20141001161020.GO21835@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1412179843 31439 80.91.229.3 (1 Oct 2014 16:10:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 16:10:43 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6252-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 01 18:10:33 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XZMU5-0003j3-Dd for gllmg-musl@plane.gmane.org; Wed, 01 Oct 2014 18:10:33 +0200 Original-Received: (qmail 16263 invoked by uid 550); 1 Oct 2014 16:10:32 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 16255 invoked from network); 1 Oct 2014 16:10:32 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:6239 Archived-At: * stephen Turner [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.