openwrt 19.07 repo @ a941d39460b67d2d21e86d9c73d3e9b099b2d7fb "packages" feeds @ 52634db76f0ecaee4a298c19fc4934dd1dc838bc
Build fails due tu unknown linker flag. Failure: LD [M] /mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/xtables-addons-2.14/extensions/LUA/xt_LUA.o mipsel-openwrt-linux-musl-ld: unrecognized option '-specs=/mnt/hdd/sdata/myfiles/openwrt/include/hardened-ld-pie.specs' mipsel-openwrt-linux-musl-ld: use the --help option for usage information make[9]: *** [scripts/Makefile.build:572: /mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/xtables-addons-2.14/extensions/LUA/xt_LUA.o] Error 1 make[8]: *** [scripts/Makefile.build:585: /mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/xtables-addons-2.14/extensions/LUA] Error 2 make[7]: *** [Makefile:1532: _module_/mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/xtables-addons-2.14/extensions] Error 2 make[7]: Leaving directory '/mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/linux-4.14.134' make[6]: *** [Makefile:461: modules] Error 2 make[6]: Leaving directory '/mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/xtables-addons-2.14/extensions' make[5]: *** [Makefile:495: all-recursive] Error 1 make[5]: Leaving directory '/mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/xtables-addons-2.14' make[4]: *** [Makefile:380: all] Error 2 make[4]: Leaving directory '/mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/xtables-addons-2.14' make[3]: *** [Makefile:158: /mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/xtables-addons-2.14/.built] Error 2 make[3]: Leaving directory '/mnt/hdd/sdata/myfiles/openwrt/feeds/packages/net/xtables-addons' time: package/feeds/packages/xtables-addons/compile#1.30#0.68#1.73 make[2]: *** [package/Makefile:109: package/feeds/packages/xtables-addons/compile] Error 2 make[2]: Leaving directory '/mnt/hdd/sdata/myfiles/openwrt' make[1]: *** [package/Makefile:103: /mnt/hdd/sdata/myfiles/openwrt/staging_dir/target-mipsel_74kc_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/mnt/hdd/sdata/myfiles/openwrt' make: *** [/mnt/hdd/sdata/myfiles/openwrt/include/toplevel.mk:218: world] Error 2 Workaround: (yes, it's a hack) /mnt/hdd/sdata/myfiles/openwrt/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/xtables-addons-2.14/extensions/Makefile and remove things like -specs=/mnt/hdd/sdata/myfiles/openwrt/include/hardened-ld-pie.specs .config snippet: # Hardening build options # CONFIG_PKG_CHECK_FORMAT_SECURITY=y CONFIG_PKG_ASLR_PIE=y CONFIG_PKG_CC_STACKPROTECTOR_NONE=y # CONFIG_PKG_CC_STACKPROTECTOR_STRONG is not set # CONFIG_KERNEL_CC_STACKPROTECTOR_NONE is not set # CONFIG_KERNEL_CC_STACKPROTECTOR_REGULAR is not set CONFIG_KERNEL_CC_STACKPROTECTOR_STRONG=y CONFIG_KERNEL_STACKPROTECTOR=y CONFIG_KERNEL_STACKPROTECTOR_STRONG=y # CONFIG_PKG_FORTIFY_SOURCE_NONE is not set CONFIG_PKG_FORTIFY_SOURCE_1=y # CONFIG_PKG_FORTIFY_SOURCE_2 is not set # CONFIG_PKG_RELRO_NONE is not set # CONFIG_PKG_RELRO_PARTIAL is not set CONFIG_PKG_RELRO_FULL=y # CONFIG_DEVEL is not set # CONFIG_BROKEN is not set CONFIG_BINARY_FOLDER="" CONFIG_DOWNLOAD_FOLDER="" CONFIG_LOCALMIRROR="" CONFIG_AUTOREBUILD=y # CONFIG_AUTOREMOVE is not set CONFIG_BUILD_SUFFIX="" CONFIG_TARGET_ROOTFS_DIR="" # CONFIG_CCACHE is not set CONFIG_EXTERNAL_KERNEL_TREE="" CONFIG_KERNEL_GIT_CLONE_URI="" CONFIG_EXTRA_OPTIMIZATION="-fno-caller-saves -fno-plt" CONFIG_TARGET_OPTIMIZATION="-Os -pipe -mno-branch-likely -mips32r2 -mtune=74kc" CONFIG_SOFT_FLOAT=y CONFIG_USE_MIPS16=y # CONFIG_EXTRA_TARGET_ARCH is not set CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS="" CONFIG_EXTRA_GCC_CONFIG_OPTIONS="" # CONFIG_GCC_DEFAULT_PIE is not set # CONFIG_GCC_DEFAULT_SSP is not set # CONFIG_SJLJ_EXCEPTIONS is not set # CONFIG_INSTALL_GFORTRAN is not set CONFIG_GDB=y CONFIG_USE_MUSL=y CONFIG_SSP_SUPPORT=y CONFIG_BINUTILS_VERSION_2_31_1=y CONFIG_BINUTILS_VERSION="2.31.1" # CONFIG_GCC_USE_EMBEDDED_PATH_REMAP is not set Any ideas? Thanks!! Enrico _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
