Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#989 - Attempting to just build iptables fails #7366

Closed
openwrt-bot opened this issue Aug 28, 2017 · 1 comment
Closed

FS#989 - Attempting to just build iptables fails #7366

openwrt-bot opened this issue Aug 28, 2017 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

nwf:

Using LEDE HEAD (currently 4b3ffec), running "make defconfig; make -j1 V=s package/iptables/compiles" in a fresh checkout yields

make[1]: Entering directory '/tank/openwrt/scratch/test' make[2]: Entering directory '/tank/openwrt/scratch/test/package/libs/toolchain' touch /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.prepared_9c30076b46b1812fb254b6ec31ccf85e_6664517399ebbbc92a37c5bb081b5c53_check mkdir -p /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain touch /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.prepared_9c30076b46b1812fb254b6ec31ccf85e_6664517399ebbbc92a37c5bb081b5c53 rm -f /tank/openwrt/scratch/test/staging_dir/target-mips_24kc_musl/stamp/.toolchain_installed (cd /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/./; if [ -x ./configure ]; then find /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/ -name config.guess | xargs -r chmod u+w; find /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/ -name config.guess | xargs -r -n1 cp --remove-destination /tank/openwrt/scratch/test/scripts/config.guess; find /tank/openwrt/s cratch/test/build_dir/target-mips_24kc_musl/toolchain/ -name config.sub | xargs -r chmod u+w; find /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/ -name config.sub | xargs -r -n1 cp --remove-destination /tank/openwrt/scratch/test/scripts/config.sub; AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -f honour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain:toolchain -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CPP="mips-openwrt-linu x-musl-cpp" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 - minterlink-mips16 -iremap/tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain:toolchain -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/tank/openwr t/scratch/test/build_dir/target-mips_24kc_musl/toolchain:toolchain -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/tank/openwrt/scratch/test/staging_dir/target-mips_24kc_musl/usr/include -I/tank/openwrt/scratch/test/staging_dir/target-mips_24kc_musl/include -I/tank/openwrt/scratch/test/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/usr/include -I/tank/openwrt /scratch/test/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify -I/tank/openwrt/scratch/test/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include " LDFLAGS="-L/tank/openwrt/scratch/test/staging_dir/target-mips_24kc_musl/usr/lib -L/tank/openwrt/scratch/test/staging_dir/target-mips_24kc_musl/lib -L/tank/openwrt/scratch/test/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/usr/lib -L/tank/openwrt/scratch/test/ staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/lib -znow -zrelro " ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; ) rm -f /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.configured_* touch /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.configured_68b329da9893e34099c7d8ad5cb9c940 rm -f /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.built touch /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.built_check touch /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.built rm -rf /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc.installed /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc mkdir -p /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc install -d -m0755 /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc/lib /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc/usr/bin cp -fpR /tank/openwrt/scratch/test/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/lib/ld-musl-*.so* /tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc/lib/ cp: cannot stat '/tank/openwrt/scratch/test/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/lib/ld-musl-*.so*': No such file or directory Makefile:618: recipe for target '/tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc.installed' failed make[2]: *** [/tank/openwrt/scratch/test/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc.installed] Error 1 make[2]: Leaving directory '/tank/openwrt/scratch/test/package/libs/toolchain' package/Makefile:109: recipe for target 'package/libs/toolchain/compile' failed make[1]: *** [package/libs/toolchain/compile] Error 2 make[1]: Leaving directory '/tank/openwrt/scratch/test' /tank/openwrt/scratch/test/include/toplevel.mk:207: recipe for target 'package/iptables/compile' failed make: *** [package/iptables/compile] Error 2

If I just run "make" the system builds successfully, so I am not exactly sure what's wrong. Perhaps it's as simple as a missing dependency? This came about because I was attempting to build iptables without having built the kernel and was getting yet different build failures, but I have not reliably reproduced them from a blank slate yet. Will advise.

@openwrt-bot
Copy link
Author

yousong:

The root cause is that the toolchain is not built as a prerequisite of package/xx/compile. It's package/compile as a whole has a dependency on toolchain/compile, not each individual package.

You can work around it by firstly request the build of toolchain

make toolchain/compile

I tend to regard it as by design, "Not a bug".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant