From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4144 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Kevyn=2DAlexandre_Par=E9?= Newsgroups: gmane.linux.lfs.clfs.support,gmane.linux.lfs.clfs.devel,gmane.linux.lib.musl.general Subject: Re: [Clfs-dev] CLFS embedded book switches to musl-libc Date: Tue, 22 Oct 2013 14:58:24 -0400 Message-ID: References: <525EF012.1050606@bradfordembedded.com> Reply-To: CLFS Support NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382468312 7808 80.91.229.3 (22 Oct 2013 18:58:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2013 18:58:32 +0000 (UTC) Cc: Thomas Petazzoni , musl@lists.openwall.com, CLFS Support , Gregor Richards To: CLFS development discussion Original-X-From: clfs-support-bounces@lists.cross-lfs.org Tue Oct 22 20:58:37 2013 Return-path: Envelope-to: gllc-clfs-support@m.gmane.org Original-Received: from che.dreamhost.com ([66.33.216.23]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VYh9z-00035p-1y for gllc-clfs-support@m.gmane.org; Tue, 22 Oct 2013 20:58:31 +0200 Original-Received: from che.dreamhost.com (localhost [127.0.0.1]) by che.dreamhost.com (Postfix) with ESMTP id AF8DFFFCD; Tue, 22 Oct 2013 12:15:05 -0700 (PDT) Original-Received: from mail.rogue-research.com (mail.rogue-research.com [68.67.54.10]) by che.dreamhost.com (Postfix) with ESMTP id 580ADFE98; Tue, 22 Oct 2013 12:15:02 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.rogue-research.com (Postfix) with ESMTP id 27BE53086E62; Tue, 22 Oct 2013 15:02:39 -0400 (EDT) X-Virus-Scanned: amavisd-new at rogue-research.com Original-Received: from mail.rogue-research.com ([127.0.0.1]) by localhost (kingu.rogue-research.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yvND7PJHIMhf; Tue, 22 Oct 2013 15:02:39 -0400 (EDT) Original-Received: from mail-qc0-f172.google.com (mail-qc0-f172.google.com [209.85.216.172]) by mail.rogue-research.com (Postfix) with ESMTPSA id 597F43086E4F; Tue, 22 Oct 2013 15:02:38 -0400 (EDT) Original-Received: by mail-qc0-f172.google.com with SMTP id c9so5694670qcz.3 for ; Tue, 22 Oct 2013 11:58:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aHWYyQ3WlgWj9RtRrBuVN88l10xyaeC+bUEWpSm0bUM=; b=PfmK5hP4e6G/7hSYq+rIV3/tGQ0gypqq7C/IORLMI3Q34uHkt3MY9SUDcGMGnI+YuL qjkFIV46JPQsGIXeuFGTM3hFZdTmOcx/+w2cpfB9qebpW5MNDQ8BP2H0NQozvjlasaef zCs2S2dosw6f0tAlRuzfECT1obpEygBw/r4SBb8hmdhPK4bMr65lcqrS4F+rfMEOMV4F 9XhDEaWNXQxfM89OqkjZ7IDbF5Gu/ERhmt6/V4lKQU7iDSEzvIi+YKRveFGo4rSZXWkN ghDEHPix+yLxbieY185oz4JVxpR+IgpPPhgIhgTOI2ddf6ZK+elZlmfiEFhES9Ysrtr4 6h9g== X-Received: by 10.49.12.14 with SMTP id u14mr32066661qeb.74.1382468304417; Tue, 22 Oct 2013 11:58:24 -0700 (PDT) Original-Received: by 10.96.159.132 with HTTP; Tue, 22 Oct 2013 11:58:24 -0700 (PDT) In-Reply-To: <525EF012.1050606@bradfordembedded.com> X-BeenThere: clfs-support@lists.cross-lfs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: CLFS Support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: clfs-support-bounces@lists.cross-lfs.org Original-Sender: clfs-support-bounces@lists.cross-lfs.org Xref: news.gmane.org gmane.linux.lfs.clfs.support:2803 gmane.linux.lfs.clfs.devel:2466 gmane.linux.lib.musl.general:4144 Archived-At: Hi Andrew, So far so good! Very interesting that you passed to musl and I'm happy to start playing with it! Couple of question about Manual: You refer to glibc [1] should you replace that glibc with musl libc or glibc(musl) our simply libc? For the musl installation [2], the make install have an error that seem to be fix with the next command you propose: ./tools/install.sh -D -m 644 lib/crt1.o /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/crt1.o ./tools/install.sh -D -m 644 lib/Scrt1.o /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/Scrt1.o ./tools/install.sh -D -m 644 lib/crti.o /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/crti.o ./tools/install.sh -D -m 644 lib/crtn.o /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/crtn.o ./tools/install.sh -D -m 644 lib/libc.a /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libc.a ./tools/install.sh -D -m 755 lib/libc.so /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libc.so ./tools/install.sh -D -m 644 lib/libm.a /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libm.a ./tools/install.sh -D -m 644 lib/librt.a /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/librt.a ./tools/install.sh -D -m 644 lib/libpthread.a /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libpthread.a ./tools/install.sh -D -m 644 lib/libcrypt.a /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libcrypt.a ./tools/install.sh -D -m 644 lib/libutil.a /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libutil.a ./tools/install.sh -D -m 644 lib/libxnet.a /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libxnet.a ./tools/install.sh -D -m 644 lib/libresolv.a /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libresolv.a ./tools/install.sh -D -m 644 lib/libdl.a /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libdl.a ./tools/install.sh -D -l /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/lib/libc.so /lib/ld-musl-arm.so.1 || true ln: failed to create symbolic link `/lib/ld-musl-arm.so.1.tmp.47054': Permission denied ./tools/install.sh -D -m 644 arch/arm/bits/alltypes.h /mnt/clfs/cross-tools/armv7a-unknown-linux-musleabi/include/bits/alltypes.h So when you describe symlink is it releated to this error: ln -s libc.so ${CLFS}/cross-tools/${CLFS_TARGET}/ld-musl-arm.so.1 Should this be replace by this and be put in the lib folder?: ln -s ${CLFS}/cross-tools/${CLFS_TARGET}/lib/libc.so ${CLFS}/cross-tools/${CLFS_TARGET}/lib/ld-musl-arm.so.1 Should we not simply create patch for Makefile as something like that?: diff -Naur Makefile Makefile.new --- Makefile 2013-09-23 17:01:11.000000000 -0400 +++ Makefile.new 2013-10-22 14:51:10.216785876 -0400 @@ -14,7 +14,6 @@ prefix = /usr/local/musl includedir = $(prefix)/include libdir = $(prefix)/lib -syslibdir = /lib SRCS = $(sort $(wildcard src/*/*.c arch/$(ARCH)/src/*.c)) OBJS = $(SRCS:.c=.o) @@ -50,7 +49,7 @@ ALL_LIBS = $(CRT_LIBS) $(STATIC_LIBS) $(SHARED_LIBS) $(EMPTY_LIBS) $(TOOL_LIBS) ALL_TOOLS = tools/musl-gcc -LDSO_PATHNAME = $(syslibdir)/ld-musl-$(ARCH)$(SUBARCH).so.1 +LDSO_PATHNAME = ld-musl-$(ARCH)$(SUBARCH).so.1 -include config.mak @@ -157,7 +156,7 @@ $(INSTALL) -D -m 644 $< $@ $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(libdir)/libc.so - $(INSTALL) -D -l $(libdir)/libc.so $@ || true + $(INSTALL) -D -l $(libdir)/libc.so $(libdir)/$@ || true install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),) I'm currently cross compiling busybox if I see something else I will keep you updated! Best Regards, -KA [1]: http://cross-lfs.org/view/clfs-embedded/arm/introduction/how.html [2]: http://cross-lfs.org/view/clfs-embedded/arm/cross-tools/libc.html On Wed, Oct 16, 2013 at 3:59 PM, Andrew Bradford wrote: > As an FYI: the Cross Linux From Scratch embedded book has switched from > uClibc to musl as of today. > > http://cross-lfs.org/view/clfs-embedded/ > > I've done some build testing for arm but welcome more people who are > interested in testing or submitting patches to fix errors. It's still > early-days for musl in CLFS so there's bound to be plenty of issues to fix. > > Many thanks to all of the musl developers! > > I also found patches from Gregor Richards's musl-cross and Thomas > Petazzoni's buildroot work very helpful. > > Thanks! > Andrew > _______________________________________________ > Clfs-dev mailing list > Clfs-dev@lists.cross-lfs.org > http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org