From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3804 Path: news.gmane.org!not-for-mail From: Kirk Terrell Newsgroups: gmane.linux.lib.musl.general Subject: Embedded distro Date: Sat, 03 Aug 2013 09:19:22 -0700 Message-ID: <51FD2D8A.5060402@mybluelight.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------090002010705080601050608" X-Trace: ger.gmane.org 1375546733 24350 80.91.229.3 (3 Aug 2013 16:18:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 16:18:53 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3808-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 03 18:18:57 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 1V5eXf-0005hC-Dm for gllmg-musl@plane.gmane.org; Sat, 03 Aug 2013 18:18:55 +0200 Original-Received: (qmail 9549 invoked by uid 550); 3 Aug 2013 16:18:53 -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 9533 invoked from network); 3 Aug 2013 16:18:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mybluelight.com; s=alpha; t=1375546720; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; l=0; h=Message-ID:Date:From:To:Subject:Content-Type; b=YwyA57VcakZ0e5SEpu8rXtW7D4qDKefIWOcgplGI+UjTZMg53igLfWtyeNKZVL9pS vK10DWvWnMfU8lE/mFB5x7FCj1tIoL1RRwRzu1zih41yOzJS/Xm5w/ERpGwcnZca5L HsXl5tmpaHjpqzvHpe7/dIVH/AhU52PAVhuQh8RI= X-UOL-TAGLINE: true User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 X-UNTD-BodySize: 1238 X-ContentStamp: 2:2:1281653971 X-MAIL-INFO: 139000a090e5c0ad7000e0a070f038d9346080b001a1a560100150d584b10d844dad650991ad90 X-UNTD-OriginStamp: Ow32KLW1sdAwxi2Cm1J3JhVv/eaupHX8ItzLuvq24p/Azs9yypT3zU119HBO3c25 X-UNTD-Peer-Info: 10.171.42.33|smtpout03.dca.untd.com|smtpout03.dca.untd.com|knjterrell@mybluelight.com Xref: news.gmane.org gmane.linux.lib.musl.general:3804 Archived-At: This is a multi-part message in MIME format. --------------090002010705080601050608 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Good morning, 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. kirk ____________________________________________________________ RN to BSN Online Option Earn Your RN To BSN in 3 Semesters. Online, Affordable & User Friendly http://thirdpartyoffers.netzero.net/TGL3341/51fd2d47aa4442d454d94st03duc --------------090002010705080601050608 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Good morning,

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.

kirk


____________________________________________________________
RN to BSN Online Option
Earn Your RN To BSN in 3 Semesters. Online, Affordable & User Friendly
chamberlain.edu --------------090002010705080601050608-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3805 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Sat, 3 Aug 2013 18:43:12 +0200 Message-ID: <20130803164312.GJ25714@port70.net> References: <51FD2D8A.5060402@mybluelight.com> 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 1375548201 5478 80.91.229.3 (3 Aug 2013 16:43:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 16:43:21 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3809-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 03 18:43:24 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 1V5evM-0000KL-HS for gllmg-musl@plane.gmane.org; Sat, 03 Aug 2013 18:43:24 +0200 Original-Received: (qmail 28158 invoked by uid 550); 3 Aug 2013 16:43:24 -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 28150 invoked from network); 3 Aug 2013 16:43:24 -0000 Content-Disposition: inline In-Reply-To: <51FD2D8A.5060402@mybluelight.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3805 Archived-At: * 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 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 From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3807 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 11:14:08 -0700 Message-ID: <51FD4870.1000902@mybluelight.com> References: <51FD2D8A.5060402@mybluelight.com> <20130803164312.GJ25714@port70.net> 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 1375553632 15685 80.91.229.3 (3 Aug 2013 18:13:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 18:13:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3811-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 03 20:13:55 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 1V5gKx-00006y-7G for gllmg-musl@plane.gmane.org; Sat, 03 Aug 2013 20:13:55 +0200 Original-Received: (qmail 1954 invoked by uid 550); 3 Aug 2013 18:13:54 -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 1940 invoked from network); 3 Aug 2013 18:13:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mybluelight.com; s=alpha; t=1375553621; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; l=0; h=Message-ID:Date:From:To:Subject:Content-Type; b=l9ikueq97fG/ZWRvRhi2xHias4MkGYkee3NZSYgT1WkFxML3XLgmv7eHDHBCArwoE 79u1CKlzbGKsAp5ON9su3H4zSymY4nInqwAFvKMmvhSMYIxCiF40AUZrl/oLvX8ebH M4uQPtCnNQpVGDILeEkyOQmlrMUtkbbw2odk6czk= X-UOL-TAGLINE: true User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 In-Reply-To: <20130803164312.GJ25714@port70.net> X-UNTD-BodySize: 1320 X-ContentStamp: 11:5:1475037412 X-MAIL-INFO: 139000a090e5c0ad7000e0a070f038d9346080b001a1a560100150d584b10d844dad650991ad90 X-UNTD-OriginStamp: Ow32KLW1sdAwxi2Cm1J3JhVv/eaupHX8ItzLuvq24p+xE88PXP2Pt+H6XREuHMBx X-UNTD-Peer-Info: 10.171.42.34|smtpout04.dca.untd.com|smtpout04.dca.untd.com|knjterrell@mybluelight.com Xref: news.gmane.org gmane.linux.lib.musl.general:3807 Archived-At: 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. > > 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. Thank you for the feedback. kirk ____________________________________________________________ RN to BSN Online Option Earn Your RN To BSN in 3 Semesters. Online, Affordable & User Friendly http://thirdpartyoffers.netzero.net/TGL3341/51fd482e7e5c1482b4672st04duc From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3808 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Sat, 3 Aug 2013 15:57:56 -0400 Message-ID: <20130803195756.GU221@brightrain.aerifal.cx> References: <51FD2D8A.5060402@mybluelight.com> <20130803164312.GJ25714@port70.net> <51FD4870.1000902@mybluelight.com> 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 1375559890 10654 80.91.229.3 (3 Aug 2013 19:58:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 19:58:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3812-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 03 21:58:12 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 1V5hxr-0008F2-4d for gllmg-musl@plane.gmane.org; Sat, 03 Aug 2013 21:58:11 +0200 Original-Received: (qmail 5280 invoked by uid 550); 3 Aug 2013 19:58:10 -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 5272 invoked from network); 3 Aug 2013 19:58:10 -0000 Content-Disposition: inline In-Reply-To: <51FD4870.1000902@mybluelight.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3808 Archived-At: 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 From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3809 Path: news.gmane.org!not-for-mail From: John Spencer Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Sat, 03 Aug 2013 22:28:31 +0200 Message-ID: <51FD67EF.6080205@barfooze.de> References: <51FD2D8A.5060402@mybluelight.com> 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 1375562068 30094 80.91.229.3 (3 Aug 2013 20:34:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 20:34:28 +0000 (UTC) Cc: Kirk Terrell To: musl@lists.openwall.com Original-X-From: musl-return-3813-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 03 22:34:30 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 1V5iWy-00078z-MS for gllmg-musl@plane.gmane.org; Sat, 03 Aug 2013 22:34:28 +0200 Original-Received: (qmail 21993 invoked by uid 550); 3 Aug 2013 20:34:28 -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 21985 invoked from network); 3 Aug 2013 20:34:28 -0000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Mail/1.0 In-Reply-To: <51FD2D8A.5060402@mybluelight.com> Xref: news.gmane.org gmane.linux.lib.musl.general:3809 Archived-At: On 08/03/2013 06:19 PM, Kirk Terrell wrote: > Good morning, > > 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. looking at http://kanj.github.io/elfs/book/armMusl/materials/packages.html it mentions uclibc, but not musl. is there a specific reason you use ancient busybox and kernel ? using busybox 1.20.2 with the patches used by sabotage[1] would at least give you a completely working sed that can be used to build anything that depends on sed without having to install gnu's. [1] https://github.com/rofl0r/sabotage/tree/master/KEEP 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 From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3811 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Sun, 4 Aug 2013 07:40:12 -0400 Message-ID: <20130804114012.GX221@brightrain.aerifal.cx> References: <51FD2D8A.5060402@mybluelight.com> <20130803164312.GJ25714@port70.net> <51FD4870.1000902@mybluelight.com> <20130803195756.GU221@brightrain.aerifal.cx> <51FDC2E3.7010807@mybluelight.com> 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 1375616426 3514 80.91.229.3 (4 Aug 2013 11:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Aug 2013 11:40:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3815-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 04 13:40:29 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 1V5wfk-0003oZ-MY for gllmg-musl@plane.gmane.org; Sun, 04 Aug 2013 13:40:28 +0200 Original-Received: (qmail 27652 invoked by uid 550); 4 Aug 2013 11:40:26 -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 26620 invoked from network); 4 Aug 2013 11:40:26 -0000 Content-Disposition: inline In-Reply-To: <51FDC2E3.7010807@mybluelight.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3811 Archived-At: On Sat, Aug 03, 2013 at 07:56:35PM -0700, Kirk Terrell wrote: > >>>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... > > > 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. Like John said in his reply to you, you're using an ancient version of Busybox with lots of known bugs, some of which are especially problematic if you'll be using the busybox utilities in place of coreutils when running programs' configure scripts and building software. I would recommend upgrading to latest busybox. As far as I know, it has all the issues against musl fixed, as well as having fixes for the bugs I just mentioned. Rich From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3817 Path: news.gmane.org!not-for-mail From: Kirk Terrell Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Sun, 04 Aug 2013 17:57:50 -0700 Message-ID: <51FEF88E.3070902@mybluelight.com> References: <51FD2D8A.5060402@mybluelight.com> <20130803164312.GJ25714@port70.net> <51FD4870.1000902@mybluelight.com> <20130803195756.GU221@brightrain.aerifal.cx> <51FDC2E3.7010807@mybluelight.com> <20130804114012.GX221@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 1375664280 21305 80.91.229.3 (5 Aug 2013 00:58:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Aug 2013 00:58:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3821-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 05 02:58:03 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 1V697a-0001G2-V2 for gllmg-musl@plane.gmane.org; Mon, 05 Aug 2013 02:58:03 +0200 Original-Received: (qmail 30220 invoked by uid 550); 5 Aug 2013 00:58:02 -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 30209 invoked from network); 5 Aug 2013 00:58:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mybluelight.com; s=alpha; t=1375664268; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; l=0; h=Message-ID:Date:From:To:Subject:Content-Type; b=fbYCKjccyBI6ar56iNPxjmSux2L/efhuVpxz5/taF8Uy9SNLBo1P/Qb6xfFqRdK5S 3HAr2iIJ41KVGhXnnB5e3Ol2r0HU+cb1N83W92SN8d3UNrzxrf1JYthzF+SWbB3xAy Lea0WQivjQXwj0FhB3ZTmy4tqcRabcHrW390XXuI= X-UOL-TAGLINE: true User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 In-Reply-To: <20130804114012.GX221@brightrain.aerifal.cx> X-UNTD-BodySize: 2746 X-ContentStamp: 26:13:638434559 X-UNTD-OriginStamp: Ow32KLW1sdAwxi2Cm1J3JhVv/eaupHX8EWR6cIPt3bOvm6QImgzmVBd0O5KNmBch 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:3817 Archived-At: On 08/04/2013 04:40 AM, Rich Felker wrote: > On Sat, Aug 03, 2013 at 07:56:35PM -0700, Kirk Terrell wrote: >>>>> 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... >>> >> 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. > Like John said in his reply to you, you're using an ancient version of > Busybox with lots of known bugs, some of which are especially > problematic if you'll be using the busybox utilities in place of > coreutils when running programs' configure scripts and building > software. I would recommend upgrading to latest busybox. As far as I > know, it has all the issues against musl fixed, as well as having > fixes for the bugs I just mentioned. > > Rich > > I tried the most recent version of busybox and had the same issue, and so I looked a little further: > excerpt from busybox networking/ifconfig.c > if ENABLE_FEATURE_IFCONFIG_SLIP > # include > #endif > > clfs-kanj:~/sources/musl-0.9.11/include/net$ ls > ethernet.h if.h if_arp.h route.h > > clfs-kanj:~/sources/uClibc-0.9.31/include/net$ ls > ethernet.h if_arp.h if_ppp.h if_slip.h ppp_defs.h > if.h if_packet.h if_shaper.h ppp-comp.h route.h > > from sabatoge-master/KEEP/busybox.patch > > #if ENABLE_FEATURE_IFCONFIG_SLIP > -# include > +# include > #endif > To me it appears that uClibc is installing headers, that busybox expects to see, that Musl does not install. I am attempting to use Musl as far as possible as drop in replacement. I will update to a recent version of Busybox. Kirk ____________________________________________________________ Stand With Our President Show your support for raising the minimum wage. Sign the petition! http://thirdpartyoffers.netzero.net/TGL3341/51fef88b8b830788a3f5fst01vuc From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3818 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Sun, 4 Aug 2013 21:16:49 -0400 Message-ID: <20130805011649.GB221@brightrain.aerifal.cx> References: <51FD2D8A.5060402@mybluelight.com> <20130803164312.GJ25714@port70.net> <51FD4870.1000902@mybluelight.com> <20130803195756.GU221@brightrain.aerifal.cx> <51FDC2E3.7010807@mybluelight.com> <20130804114012.GX221@brightrain.aerifal.cx> <51FEF88E.3070902@mybluelight.com> 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 1375665421 30413 80.91.229.3 (5 Aug 2013 01:17:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Aug 2013 01:17:01 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3822-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 05 03:17:04 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 1V69Pz-0006yT-0P for gllmg-musl@plane.gmane.org; Mon, 05 Aug 2013 03:17:03 +0200 Original-Received: (qmail 5832 invoked by uid 550); 5 Aug 2013 01:17:02 -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 5822 invoked from network); 5 Aug 2013 01:17:02 -0000 Content-Disposition: inline In-Reply-To: <51FEF88E.3070902@mybluelight.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3818 Archived-At: On Sun, Aug 04, 2013 at 05:57:50PM -0700, Kirk Terrell wrote: > I tried the most recent version of busybox and had the same issue, > and so I looked a little further: > > >excerpt from busybox networking/ifconfig.c > >if ENABLE_FEATURE_IFCONFIG_SLIP > ># include > >#endif > > > >clfs-kanj:~/sources/musl-0.9.11/include/net$ ls > >ethernet.h if.h if_arp.h route.h > > > >clfs-kanj:~/sources/uClibc-0.9.31/include/net$ ls > >ethernet.h if_arp.h if_ppp.h if_slip.h ppp_defs.h > >if.h if_packet.h if_shaper.h ppp-comp.h route.h > > > >from sabatoge-master/KEEP/busybox.patch > > > >#if ENABLE_FEATURE_IFCONFIG_SLIP > >-# include > >+# include > > #endif > > > To me it appears that uClibc is installing headers, that busybox > expects to see, that Musl does not install. I am attempting to use > Musl as far as possible as drop in replacement. I will update to a > recent version of Busybox. Ah, I've probably never tried enabling slip. We're talking about a protocol that hasn't been used since the early 90s. :) I'll see if someone can look into whether we could add such a header, though. Rich From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3847 Path: news.gmane.org!not-for-mail From: Rob Landley Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Wed, 07 Aug 2013 11:36:46 -0500 Message-ID: <1375893406.8422.27@driftwood> References: <51FD2D8A.5060402@mybluelight.com> <20130803164312.GJ25714@port70.net> <51FD4870.1000902@mybluelight.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-zGVutSfuXbElqujLr+MU" X-Trace: ger.gmane.org 1375898742 2325 80.91.229.3 (7 Aug 2013 18:05:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Aug 2013 18:05:42 +0000 (UTC) Cc: Kirk Terrell To: musl@lists.openwall.com Original-X-From: musl-return-3851-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 07 20:05:45 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 1V787E-0003qs-NB for gllmg-musl@plane.gmane.org; Wed, 07 Aug 2013 20:05:44 +0200 Original-Received: (qmail 6021 invoked by uid 550); 7 Aug 2013 18:05:44 -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 6006 invoked from network); 7 Aug 2013 18:05:43 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :message-id:mime-version:content-type; bh=q5+FYp67sTWlGnuN4Qlr2uelzVVYt/1RgbRSRxHHnCM=; b=QPkh1VW2FWecFW0vGRO/DT3Ca5+VW7fylqCPeiaZafYL2QBeVuWha/NKw90KauBp6y F7bvHsVh2szSEqe99i2OjpkEVMIMoaBflMjus9DFruRaV4bIVaY4F1x0Suwav6OyVeI8 x/NB92E863PVvniZTW2kLd396ZpG+dPouv3Jf3TmpYzOgGDUgcOwv0Z+eUaxCC/PKdr9 20YEOr0cmXaT3itIpTFDY6FuAubqE5jIGn9BrX5HqV8X+ZxVs+wpPfCjbmd1iisJYXEd xa9ouu7qotF54LuCPlZw6MkXTPE8uwEsyXJWkTNSLUhPoXLUzvk6h3ZJYBBMYpLVXm0V KGaQ== X-Gm-Message-State: ALoCoQn5XsM2a/2k+tWKcsLnZe6hnga8ZLax48KPnyYDNyKhVp2Yz+fg7++OJK2rpFkpftJK6j7+ X-Received: by 10.60.15.200 with SMTP id z8mr1225302oec.99.1375898731937; Wed, 07 Aug 2013 11:05:31 -0700 (PDT) In-Reply-To: <51FD4870.1000902@mybluelight.com> (from knjterrell@mybluelight.com on Sat Aug 3 13:14:08 2013) X-Mailer: Balsa 2.4.11 Xref: news.gmane.org gmane.linux.lib.musl.general:3847 Archived-At: --=-zGVutSfuXbElqujLr+MU Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 08/03/2013 01:14:08 PM, Kirk Terrell wrote: > On 08/03/2013 09:43 AM, Szabolcs Nagy wrote: >> * Kirk Terrell [2013-08-03 09:19:22 =20 >> -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. >>>=20 >> is the --host really the CLFS_TARGET? should it be renamed in the =20 >> configure script? >>=20 >> CROSS_COMPILE=3D${CLFS_TARGET}- ./configure --prefix=3D${CLFS} =20 >> --disable-gcc-wrapper \ >> --host=3D${CLFS_TARGET} --build=3D${CLFS_HOST} =20 >> --syslibdir=3D${CLFS}/lib --includedir=3D${CLFS}/usr/include > According to ./configure --help > System types: > --target=3DTARGET configure to run on target TARGET [detected] > --host=3DHOST same as --target >=20 > I think --host is legitimate but is confusing. I should look into =20 > changing this. >=20 >>=20 >> what needs these header hacks? >>=20 >> cp ${CLFS}/usr/include/linux/if_slip.h =20 >> ${CLFS}/usr/include/net/if_slip.h >> cp ${CLFS}/usr/include/net/if_arp.h =20 >> ${CLFS}/usr/include/linux/if_arp.h >>=20 >>=20 >>=20 > I did this because busybox complained about header locations - these =20 > are headers > from the kernel, not from Musl. This issue did not present when =20 > building a > similar system using uClibc. uClibc #includes the kernel headers in its own headers, and/or parses =20 stuff out of them at build time. Thus you have to tell uClibc where the =20 kernel headers are in order to build uClibc, so kernel headers are =20 installed as part of the uClibc build process. Musl doesn't use kernel headers. You can install them after the fact =20 (attached is the script I use to do so), but musl itself is not =20 involved in this. Rob= --=-zGVutSfuXbElqujLr+MU Content-Type: application/x-shellscript; name=whack2.sh Content-Disposition: attachment; filename=whack2.sh Content-Transfer-Encoding: base64 IyEvYmluL2Jhc2gKCnJtIC1yZiBpbnN0YWxsICYmCmNkIG11c2wgJiYKZ2l0IGNsZWFuIC1mZHgg JiYKZ2l0IGNoZWNrb3V0IC1mICYmCmdpdCBwdWxsICYmCi4vY29uZmlndXJlIC0tcHJlZml4PSQo cmVhZGxpbmsgLWYgJFBXRC8uLi9pbnN0YWxsKSAmJgptYWtlIC1qIDMgaW5zdGFsbCAmJgpjZCAu LiAmJgpsbiAtc2YgJChmaW5kIC91c3IvaW5jbHVkZSAtbmFtZSBhc20pIGluc3RhbGwvaW5jbHVk ZS9hc20gJiYKbG4gLXNmIC91c3IvaW5jbHVkZS9saW51eCBpbnN0YWxsL2luY2x1ZGUvbGludXgg JiYKbG4gLXNmIC91c3IvaW5jbHVkZS9hc20tZ2VuZXJpYyBpbnN0YWxsL2luY2x1ZGUvYXNtLWdl bmVyaWMgJiYKbG4gLXNmICQod2hpY2ggc3RyaXApIGluc3RhbGwvYmluL211c2wtc3RyaXAgJiYK bG4gLXNmIG11c2wtZ2NjIGluc3RhbGwvYmluL211c2wtY2MK --=-zGVutSfuXbElqujLr+MU--