<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I’m using:</div><div class=""><br class=""></div>musl 1.0.3<div class="">gcc 4.7.3</div><div class="">gmp 5.1.2</div><div class="">mpfr 3.1.2</div><div class=""><br class=""></div><div class="">Chris</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 30 Nov 2017, at 20:04, <a href="mailto:michele.bucca@gmail.com" class="">michele.bucca@gmail.com</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Il 29 novembre 2017 10:19:55 CET, Chris Smith <</span><a href="mailto:space.dandy@icloud.com" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">space.dandy@icloud.com</a><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">> ha scritto:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Hi Michele,<br class=""><br class="">I did this some time ago, but using binutils v2.24 not v2.27.  I built<br class="">it using the following:<br class=""><br class="">export CLFS_FLOAT=soft<br class="">export CLFS_HOST=x86_64-cross-linux-gnu<br class="">export CLFS_TARGET=arm-linux-musleabi<br class="">export CLFS_ARCH=arm<br class="">export CLFS_ARM_ARCH=armv5te<br class=""><br class="">../binutils-2.24/configure \<br class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>--prefix=/usr \<br class=""><span class="Apple-tab-span" style="white-space: pre;">      </span>--build=${CLFS_HOST} \<br class=""><span class="Apple-tab-span" style="white-space: pre;">       </span>--target=${CLFS_TARGET} \<br class=""><span class="Apple-tab-span" style="white-space: pre;">    </span>--host=${CLFS_TARGET} \<br class=""><span class="Apple-tab-span" style="white-space: pre;">      </span>--with-sysroot=/ \<br class=""><span class="Apple-tab-span" style="white-space: pre;">   </span>--disable-nls \<br class=""><span class="Apple-tab-span" style="white-space: pre;">      </span>--disable-multilib<br class=""><br class="">make configure-host<br class="">make<br class="">make DESTDIR=${TARGET_FS} includedir=${TARGET_DEV_DIR}/usr/include<br class="">datarootdir=${TARGET_DEV_DIR}/usr/share install<br class=""><br class="">I’m pretty sure this worked okay, but the project was only half<br class="">finished, and I haven’t touched it for a long time.<br class=""><br class="">Regards,<br class="">Chris<br class=""><br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">it still fails. what version of musl are you using?</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" class="">On 29 Nov 2017, at 07:32, Michele Bucca <<a href="mailto:michele.bucca@gmail.com" class="">michele.bucca@gmail.com</a>><br class=""></blockquote>wrote:<br class=""><blockquote type="cite" class=""><br class="">I already have a musl cross-compiler. Now I want to use that<br class="">cross compiler to make a musl toolchain that runs on the ARM target.<br class="">However when I try to build binutils I get this nasty error about<br class=""></blockquote>libiberty<br class=""><blockquote type="cite" class="">(See Below) Can I avoid building libiberty alltoghether?<br class=""><br class="">../binutils-2.27/configure --host=arm-linux-musleabi<br class="">--target=arm-linux-musleabi --build=x86_64-linux-gnu --disable-nls<br class="">--disable-multilib --prefix=/home/michele/toolchain-arm<br class=""><br class="">The error<br class=""><br class="">make[1]: ingresso nella directory<br class=""></blockquote>"/home/michele/sources/build-binutils"<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">make[2]: ingresso nella directory "/home/michele/sources/build-b<br class="">inutils/libiberty"<br class="">if [ x"" != x ]; then \<br class="">arm-linux-musleabi-gcc -c -DHAVE_CONFIG_H -g -O2  -I.<br class="">-I../../binutils-2.27/libiberty/../include  -W -Wall -Wwrite-strings<br class="">-Wc++-compat -Wstrict-prototypes -pedantic  -D_GNU_SOURCE<br class="">../../binutils-2.27/libiberty/strsignal.c -o pic/strsignal.o; \<br class="">else true; fi<br class="">if [ x"" != x ]; then \<br class="">arm-linux-musleabi-gcc -c -DHAVE_CONFIG_H -g -O2  -I.<br class="">-I../../binutils-2.27/libiberty/../include  -W -Wall -Wwrite-strings<br class="">-Wc++-compat -Wstrict-prototypes -pedantic  -D_GNU_SOURCE<br class="">../../binutils-2.27/libiberty/strsignal.c -o noasan/strsignal.o; \<br class="">else true; fi<br class="">arm-linux-musleabi-gcc -c -DHAVE_CONFIG_H -g -O2  -I.<br class="">-I../../binutils-2.27/libiberty/../include  -W -Wall -Wwrite-strings<br class="">-Wc++-compat -Wstrict-prototypes -pedantic  -D_GNU_SOURCE<br class="">../../binutils-2.27/libiberty/strsignal.c -o strsignal.o<br class="">../../binutils-2.27/libiberty/strsignal.c:554:1: error: conflicting<br class=""></blockquote></blockquote>types<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">for 'psignal'<br class="">psignal (int signo, char *message)<br class="">^~~~~~~<br class="">In file included from<br class=""></blockquote></blockquote>../../binutils-2.27/libiberty/strsignal.c:22:0:<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">/opt/cross/arm-linux-musleabi/include/signal.h:219:6: note: previous<br class="">declaration of 'psignal' was here<br class="">void psignal(int, const char *);<br class="">    ^~~~~~~<br class="">Makefile:1443: set di istruzioni per l'obiettivo "strsignal.o" non<br class=""></blockquote></blockquote>riuscito<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">make[2]: *** [strsignal.o] Errore 1<br class="">make[2]: uscita dalla directory "/home/michele/sources/build-b<br class="">inutils/libiberty"<br class="">Makefile:8049: set di istruzioni per l'obiettivo "all-libiberty" non<br class="">riuscito<br class="">make[1]: *** [all-libiberty] Errore 2<br class="">make[1]: uscita dalla directory<br class=""></blockquote></blockquote>"/home/michele/sources/build-binutils"<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">Makefile:850: set di istruzioni per l'obiettivo "all" non riuscito<br class="">make: *** [all] Errore 2<br class=""></blockquote>_______________________________________________<br class="">Clfs-support mailing list<br class=""><a href="mailto:Clfs-support@lists.clfs.org" class="">Clfs-support@lists.clfs.org</a><br class="">http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org<br class=""></blockquote><br class="">Chris<br class="">—<br class="">Chris Smith <<a href="mailto:space.dandy@icloud.com" class="">space.dandy@icloud.com</a>><br class=""><br class=""><br class="">_______________________________________________<br class="">Clfs-support mailing list<br class=""><a href="mailto:Clfs-support@lists.clfs.org" class="">Clfs-support@lists.clfs.org</a><br class=""><a href="http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org" class="">http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org</a><br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">--<span class="Apple-converted-space"> </span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Clfs-support mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Clfs-support@lists.clfs.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Clfs-support@lists.clfs.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org</a></div></blockquote></div><br class=""><div class="">
Chris<br class="">—<br class="">Chris Smith <<a href="mailto:space.dandy@icloud.com" class="">space.dandy@icloud.com</a>><br class=""><br class="">
</div>
<br class=""></div></body></html>