|
Message-ID: <5013EF32.9080802@barfooze.de> Date: Sat, 28 Jul 2012 15:54:58 +0200 From: John Spencer <maillist-musl@...fooze.de> To: musl@...ts.openwall.com Subject: Re: bootstrap-linux patches for cross compilation to arm On 07/28/2012 02:54 PM, Rich Felker wrote: > On Sat, Jul 28, 2012 at 10:18:43PM +1000, James Bond wrote: >> - add host_configargs="LIBS=-lc" and --with-stage1-libs=-lc for native >> gcc/binutils compile so that they don't pull in *printf from libiberty >> (which segfaults). > Do you have any idea why this is needed? Are they always pulled in > (and just don't segfault on other archs), or is pulling them in > arm-specific? > i experienced similar things on sabotage. ARM is for some reason pulling in more of libiberty as other archs. some of them have conflicting prototypes with libc. https://github.com/rofl0r/sabotage/blob/master/pkg/stage0_gcc4 : for i in strsignal putenv random setenv strstr strtod strtol strtoul; do culprit=libiberty/$i.c rm $culprit touch $culprit done >> - add linux-arm.config >> >> Some known issues: >> a) musl version as configured is at 0.9.2 but with arm it won't boot with >> 0.9.2 (busybox segfaults), you need to get the latest git master, make a >> tarball out of it and rename it to musl-0.9.2.tar.gz in the "src" >> directory. > Do you know which bugfix solved this? It would be nice to mention in > the 0.9.3 release notes/announcement (hopefully in the next few days). > https://github.com/rofl0r/sabotage/blob/master/pkg/musl patch -p1 < "$K/musl-0.9.2-arm_init.patch" || exit 1 patch -p1 < "$K/musl-0.9.2-arm_sigsetjmp.patch" || exit 1 patch -p1 < "$K/musl-0.9.2-longjmp.patch" || exit 1 patch -p1 < "$K/musl-0.9.2-rtld.patch" || exit 1 patch -p1 < "$K/musl-0.9.2-sendmsg.patch" || exit 1 patch -p1 < "$K/musl-0.9.2-getservbyname.patch" || exit 1 busybox needs another fix, as described also on the musl wiki FAQ https://github.com/rofl0r/sabotage/blob/master/pkg/busybox # --sort-section renders busybox unusable on ARM: http://sourceware.org/bugzilla/show_bug.cgi?id=14156 sed -i 's,SORT_SECTION=,SORT_SECTION= #,' scripts/trylink
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.