From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QIkwj-0006Fd-GU for garchives@archives.gentoo.org; Sat, 07 May 2011 17:05:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 857701C065 for ; Sat, 7 May 2011 17:05:36 +0000 (UTC) Received: from mail-gy0-f181.google.com (mail-gy0-f181.google.com [209.85.160.181]) by pigeon.gentoo.org (Postfix) with ESMTP id EEDFB1C045 for ; Sat, 7 May 2011 16:44:10 +0000 (UTC) Received: by gyh4 with SMTP id 4so1959150gyh.40 for ; Sat, 07 May 2011 09:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=XeZW0to7qGGgtE90P1FdFgP8ausbrh2+fd4ak5dGgJ8=; b=BJ1y+BQcvZMwBj0MchBsbGbFB7xCKfgpJ9xDX4Dw7UU1ytW1EXPO2NqUwZmsHONYln zVbmRLo2EWP0hInxhE5dsKSaF1m793kOJQiZihN7T3e29ZU/PYyI6RkWJ0G3ue6+Slx1 R0Q2tHCa+RRgiBsmmF5vM94cRdW7H4VyRNuOw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=Pb+ypVUcHLqSPStsM85+DTTcGhwoAdse2OzY8Y7xZdgYIivJkbqYdpfKA6tnxw3CbC pxJTI5yVlRUTMqLXo8IQcLOMeNUg8tMG9Y+ay48iD5Wd3jDMg0WQAL/ULDdjLG4fjQd0 dC4O0zqEKiFCY36EBaTBltc2GTNqZnlJLr/Ig= Received: by 10.90.66.12 with SMTP id o12mr1544268aga.116.1304786650133; Sat, 07 May 2011 09:44:10 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Received: by 10.90.73.16 with HTTP; Sat, 7 May 2011 09:43:50 -0700 (PDT) In-Reply-To: References: <201104101239.07511.vapier@gentoo.org> <4DA44B04.1080102@wildgooses.com> <4DA84533.6080900@tampabay.rr.com> From: Christopher Friedt Date: Sat, 7 May 2011 12:43:50 -0400 Message-ID: Subject: Re: [gentoo-embedded] gcc-4.6 / bionic To: gentoo-embedded@lists.gentoo.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 6d53012862b669ae8bc80ca376c1082d On Wed, Apr 20, 2011 at 10:23 AM, Christopher Friedt wrote: > localhost ~ # x86_64-pc-linux-bionic-gcc -static -m32 > -specs=3Dspecfile.txt -o hi hi.c > localhost ~ # ./hi > Hello, Bionic World! / # LD_LIBRARY_PATH=3D/lib ./hi Hello, Bionic world! I am now in the choot via busybox ;-) > 1) Fix internal specs (had to manually adjust for crts startfile/endfile) Fixed 1) partially. Still need to add the proper linker spec (/bin/linker) and default library path spec (/lib). > 2) make it work for -m64 by default Forgetting about 2) this for now until upstream cares about 64-bit support. It's actually pretty straight forward to implement, but my immediate agenda will be x86 and arm. 3) This is definitely proving to be a good lesson in ensuring compatibility. I've had to add stubs for & implement some syscalls to get busybox to compile. Every package that doesn't compile is like a new adventure in /usr/include convention. Building a static strace for now to help diagnose problems. It's coming along, and as soon as most of the busybox applets Just Work=99 I'll put it up the overlay. Seems promising so far though ;-) C