From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3810 Path: news.gmane.org!not-for-mail From: Kirk Terrell Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Sat, 03 Aug 2013 19:56:35 -0700 Message-ID: <51FDC2E3.7010807@mybluelight.com> References: <51FD2D8A.5060402@mybluelight.com> <20130803164312.GJ25714@port70.net> <51FD4870.1000902@mybluelight.com> <20130803195756.GU221@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1375585049 5008 80.91.229.3 (4 Aug 2013 02:57:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Aug 2013 02:57:29 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3814-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 04 04:57:32 2013 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 1V5oVf-0001CC-G5 for gllmg-musl@plane.gmane.org; Sun, 04 Aug 2013 04:57:31 +0200 Original-Received: (qmail 7524 invoked by uid 550); 4 Aug 2013 02:57:30 -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 7516 invoked from network); 4 Aug 2013 02:57:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mybluelight.com; s=alpha; t=1375585036; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; l=0; h=Message-ID:Date:From:To:Subject:Content-Type; b=b6uLOe/0dQjBjT7zM3vw/Ore+wRzcmZtQGGSt82P8H06xB9ViWIGBfuakaCKzWstU rn+MIdEK6Tb9JBxJQxChyew1eymDTpwPf579H2k6glpCWKJuwr23qiT8V+DvseLjZ/ Jhn5r6ccPXIE+V9aIwlHhNCmogc+fu6GAc9AynzI= X-UOL-TAGLINE: true User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 In-Reply-To: <20130803195756.GU221@brightrain.aerifal.cx> X-UNTD-BodySize: 2918 X-ContentStamp: 25:12:4008379965 X-MAIL-INFO: 5bd90dd5d96009b9813dbdd5813db421d45d4144457d255d7145643979ad387985b9e41180b9d9 X-UNTD-OriginStamp: Ow32KLW1sdAwxi2Cm1J3JhVv/eaupHX8ItzLuvq24p+LgX60E0z98zBO0kc4N4+A X-UNTD-Peer-Info: 10.181.42.31|smtpout01.vgs.untd.com|smtpout01.vgs.untd.com|knjterrell@mybluelight.com Xref: news.gmane.org gmane.linux.lib.musl.general:3810 Archived-At: On 08/03/2013 12:57 PM, Rich Felker wrote: > On Sat, Aug 03, 2013 at 11:14:08AM -0700, Kirk Terrell wrote: >> On 08/03/2013 09:43 AM, Szabolcs Nagy wrote: >>> * Kirk Terrell [2013-08-03 09:19:22 -0700]: >>>> I've been working on a distro that is a fork from the CLFS Embedded >>>> project that uses musl libc in place of libc. I've managed to boot >>>> an emulated Vexpress-a9 target using the instructions at >>>> http://kanj.github.io/elfs/book/armMusl/index.html. >>>> >>> is the --host really the CLFS_TARGET? should it be renamed in the configure script? >>> >>> CROSS_COMPILE=${CLFS_TARGET}- ./configure --prefix=${CLFS} --disable-gcc-wrapper \ >>> --host=${CLFS_TARGET} --build=${CLFS_HOST} --syslibdir=${CLFS}/lib --includedir=${CLFS}/usr/include >> According to ./configure --help >> System types: >> --target=TARGET configure to run on target TARGET [detected] >> --host=HOST same as --target >> >> I think --host is legitimate but is confusing. I should look into >> changing this. > Yes, it's confusing. GCC has "build", "host", and "target": > > - Build: the system you're compiling GCC on. > - Host: the system you're compiling GCC to run on. > - Target: the system you're compiling GCC to generate code for. > > So if you're cross-compiling a native compiler for $CLFS_TARGET, both > host and target should be $CLFS_TARGET. > > On the other hand, for compiling a cross-compiler that will run on > your host system but produce code for $CLFS_TARGET, you would use > $CLFS_HOST for host (this should be the default anyway) and > $CLFS_TARGET for target. > > Confusing enough? :) > >>> what needs these header hacks? >>> >>> cp ${CLFS}/usr/include/linux/if_slip.h ${CLFS}/usr/include/net/if_slip.h >>> cp ${CLFS}/usr/include/net/if_arp.h ${CLFS}/usr/include/linux/if_arp.h >>> >> I did this because busybox complained about header locations - these >> are headers from the kernel, not from Musl. This issue did not >> present when building a similar system using uClibc. > I wasn't aware of these issues. Which files are they in? Maybe we > should look into getting this fixed upstream... > > Rich > > The headers were to address the following issues that occurred while compiling busybox1.18.4. I'm using GCC-4.6.0 and Musl 0.9.11. I've passed the extra cflags -D_GNU_SOURCE -Dfdprintd=dprintf. My target is armel-unknown-linux-gnueabi. While compiling busybox I got the following errors: > CC networking/ifconfig.o > networking/ifconfig.c:43:26: fatal error: net/if_slip.h: No such file > or directory > compilation terminated. After turning off ifconfig I get the following: > networking/libiproute/ll_types.c:11:26: fatal error: linux/if_arp.h: > No such file or directory > compilation terminated. Since these headers come from the kernel and not Musl I suspect its a busybox issue. Any insight would be appreciated. ____________________________________________________________ Fast, Secure, NetZero 4G Mobile Broadband. Try it. http://www.netzero.net/?refcd=NZINTISP0512T4GOUT2