LINK busybox_unstripped fails: cc1: note: someone does not honour COPTS correctly, passed 0 times
Username: Drei Eck
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1412
I am currently trying to compile OpenWRT for
CONFIG_TARGET_lantiq=y CONFIG_TARGET_lantiq_xway=y CONFIG_TARGET_lantiq_xway_DEVICE_arcadyan_arv752dpw22=y
While the default configuration (i.e. just setting this three options, then running
make defconfig
, then compiling) compiles fine, the compilation of my custom configuration aborts with an error when trying to link busybox and it is not really clear for me what the origin of the error is.
The, I think, important bits of the output of
make
are:
LINK busybox_unstripped Trying libraries: crypt m rpc Library crypt is not needed, excluding it Library m is not needed, excluding it Library rpc is needed, can't exclude it (yet) Final link with: rpc cc1: note: someone does not honour COPTS correctly, passed 0 times make[4]: *** [Makefile:717: busybox_unstripped] Error 1
I am building in the following way:
The build was carried out on a
git clone
, later brought up to date with a
git pull
, with latest commit from 2018-03-05T10:44:20+01:00, commit hash
.
Into this
git clone
a previously generated .config seed, made previously by
make menuconfig
and
./scripts/diffconfig.sh
, was copied over to
./.config
.
From there on, the following commands were issued:
./scripts/feeds update -a ./scripts/feeds install -a make -j1 V=s defconfig make -j1 V=s download make -j1 V=s IGNORE_ERRORS=m 2>%1 | tee make.log
(Note: Those commands were already issued earlier, then the build error occured, and for preparing this report I updated to the newest state with
git pull
and issued the commands again. It made (re)compile faster due to
ccache
and due to already compiled files present, but might affect the output of
make
. Just to note if things might be suspicious. The actual error messages just before the build aborts did stay the same.)
The last lines of the make output are:
[...] CC util-linux/volume_id/util.o CC util-linux/volume_id/volume_id.o AR util-linux/volume_id/lib.a LINK busybox_unstripped Trying libraries: crypt m rpc Library crypt is not needed, excluding it Library m is not needed, excluding it Library rpc is needed, can't exclude it (yet) Final link with: rpc cc1: note: someone does not honour COPTS correctly, passed 0 times make[4]: *** [Makefile:717: busybox_unstripped] Error 1 make[4]: Leaving directory '/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/build_dir/target-mips_24kc_musl/busybox-1.27.2' make[3]: *** [Makefile:121: /home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/build_dir/target-mips_24kc_musl/busybox-1.27.2/.built] Error 2 make[3]: Leaving directory '/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/package/utils/busybox' make[2]: *** [package/Makefile:108: package/utils/busybox/compile] Error 2 make[2]: Leaving directory '/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45' make[1]: *** [package/Makefile:102: /home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45' make: *** [/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/custom-wo-pie_feeds-rooter-custom.2018-02-26_12-04-45/include/toplevel.mk:218: world] Error 2
The toolchain (
./staging_dir/toolchain-*
) is
mips_24kc_gcc-5.5.0_musl
.
Build is carried out on an x86_64 Arch Linux machine.
Attached are the following files:
.config-diffconfig-seed
: The .config-seed used for make defconfig,
.config
: The
.config
created by the make defconfig and used for the build,
make.log.tail
: The last part of the output of
make -j1 V=s IGNORE_ERRORS=m 2>%1
,
make.log.xz
: The full output of
make -j1 V=s IGNORE_ERRORS=m 2>%1
(.xz compressed; decompresses to about 29
MB
)
feeds.conf
: The
feeds.conf
used.
What am I doing wrong/ what is going wrong? I am not sure at all if this is indeed a bug in the build system, or something I am doing wrong. (Note: I am not familiar with linker at all.)
(Also note, that there are also previously 47 messages
cc1: note: someone does not honour COPTS correctly, passed 2 times
(see the full make log).)