richfelker / musl-cross-make

Simple makefile-based build for musl cross compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bootstrapping a toolchain

infdivzero opened this issue · comments

Can musl cross make build a toolchain which can build itself?

When I try to do so with target x86_64-linux-musl the process stops a couple times before giving an Error 1 after the third attempt:

rm -rf linux-headers-4.19.88.tmp
mkdir linux-headers-4.19.88.tmp
( cd linux-headers-4.19.88.tmp && /root/musl-cross-make-0.9.9/cowpatch.sh -I ../linux-headers-4.19.88.orig )
test ! -d patches/linux-headers-4.19.88 || cat patches/linux-headers-4.19.88/* | ( cd linux-headers-4.19.88.tmp && /root/musl-cross-make-0.9.9/cowpatch.sh -p1 )
patching file generic/include/sound/asound.h
Hunk 1 FAILED 35/35.
 #include <time.h>
 #endif
 
+#include <asm/byteorder.h>
+
 /*
  *  protocol version
  */
make: *** [Makefile:137: linux-headers-4.19.88] Error 1

nvm