Open d51r3verse opened 4 years ago
uClib build
workaround of m4(freadahead) https://askubuntu.com/a/1099394
perl -p -i -e 's/if defined _IO_ftrylockfile /if defined _IO_EOF_SEEN /g' ./build_dir/host/m4-1.4.17/lib/*.c
then, add follings to .build_dir/host/m4-1.4.17/lib/stdio-impl.h
#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN
# define _IO_IN_BACKUP 0x100
#endif
workaround of gdate https://github.com/widora/openwrt_widora/issues/12#issue-281042986
./build_dir/host/pkg-config-0.29/glib/glib/
workaroud of fseterr https://github.com/openwrt/openwrt/pull/1290
.build_dir/host/bison-3.0.2/lib/
workaround of make-ext4fs, e2fsprogs, mtd-tools, squash4
#include <sys/sysmacros.h>
to ./build_dir/host/make-ext4fs-2015-05-01/contents.c
, ./build_dir/host/e2fsprogs-1.42.8/lib/blkid/devname.c
, ./build_dir/host/e2fsprogs-1.42.8/lib/ext2fs/ismounted.c
, ./build_dir/host/mtd-utils-1.5.1/mkfs.jffs2.c
, ./build_dir/host/mtd-utils-1.5.1/include/common.h
, ./build_dir/host/squashfs4.2/squashfs-tools/mksquashfs.c
, ./build_dir/host/squashfs4.2/squashfs-tools/unsquashfs.c
workaround of uboot(gcc_header(__GNUC__)
) https://lore.kernel.org/patchwork/patch/497560/
the, https://unix.stackexchange.com/a/392270
workaround of findutils( different workaround glibc ) https://gitweb.gentoo.org/proj/musl.git/tree/sys-apps/findutils/files/findutils-4.4.2-gnulib-musl.patch?id=8eddda8072add075ebf56cf6d288bc1450d6b5f8
workaround of gnu_inline(cfns.gperf) https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ec1cc0263f156f70693a62cf17b254a0029f4852
./build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04/gcc/cp/
Finally, make -j1 V=99 target/linux/compile
done
./bin/ramips/OpenWrt-Toolchain-ramips-mt7688_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2
./build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/linux-3.18.29
Check all package build(feeds install -a
), perl build fails
make[5]: Entering directory '/home/osboxes/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/perl/perl-5.20.2/ext/Errno'
../../../../../../staging_dir/host/usr/bin/perl "-I../../lib" "-I../../lib" Errno_pm.PL Errno.pm
/usr/include/errno.h:48:32: fatal error: bits/types/error_t.h: No such file or directory
#include <bits/types/error_t.h>
^
compilation terminated.
No error definitions found at Errno_pm.PL line 202.
make[5]: *** [Makefile:426: Errno.pm] Error 1
make[5]: Leaving directory '/home/osboxes/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/perl/perl-5.20.2/ext/Errno'
Unsuccessful make(ext/Errno): code=512 at make_ext.pl line 561.
make[4]: *** [Makefile:596: ext/Errno/pm_to_blib] Error 25
make[4]: Leaving directory '/home/osboxes/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/perl/perl-5.20.2'
make[3]: *** [Makefile:159: /home/osboxes/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/perl/perl-5.20.2/.built] Error 2
make[3]: Leaving directory '/home/osboxes/openwrt_widora/feeds/packages/lang/perl'
make[2]: *** [package/Makefile:192: package/feeds/packages/perl/compile] Error 2
This is for musl build patches -reserved-
same issue, working well thanks
Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux with latest(https://github.com/widora/openwrt_widora/commit/60832d43c35ef509fa4dcdef6c214b035a0f724c) commit, /w glibc
perl -V
My workaround