Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 22 Oct 2013 14:58:24 -0400
From: Kevyn-Alexandre Paré <>
To: CLFS development discussion <>
Cc:, CLFS Support <>, 
	Thomas Petazzoni <>, Gregor Richards <>
Subject: Re: [Clfs-dev] CLFS embedded book switches to musl-libc

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/ -D -m 644 lib/crt1.o
./tools/ -D -m 644 lib/Scrt1.o
./tools/ -D -m 644 lib/crti.o
./tools/ -D -m 644 lib/crtn.o
./tools/ -D -m 644 lib/libc.a
./tools/ -D -m 755 lib/
./tools/ -D -m 644 lib/libm.a
./tools/ -D -m 644 lib/librt.a
./tools/ -D -m 644 lib/libpthread.a
./tools/ -D -m 644 lib/libcrypt.a
./tools/ -D -m 644 lib/libutil.a
./tools/ -D -m 644 lib/libxnet.a
./tools/ -D -m 644 lib/libresolv.a
./tools/ -D -m 644 lib/libdl.a
./tools/ -D -l
/lib/ || true
ln: failed to create symbolic link `/lib/':
Permission denied
./tools/ -D -m 644 arch/arm/bits/alltypes.h

So when you describe symlink is it releated to this error:

ln -s ${CLFS}/cross-tools/${CLFS_TARGET}/

Should this be replace by this and be put in the lib folder?:

ln -s ${CLFS}/cross-tools/${CLFS_TARGET}/lib/

Should we not simply create patch for Makefile as something like that?:
diff -Naur Makefile
--- Makefile 2013-09-23 17:01:11.000000000 -0400
+++ 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_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 $< $@

- $(INSTALL) -D -l $(libdir)/ $@ || true
+ $(INSTALL) -D -l $(libdir)/ $(libdir)/$@ || true

 install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if

I'm currently cross compiling busybox if I see something else I will
keep you updated!

Best Regards,



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.
> 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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.