OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Build Failure
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Drei Eck - 05.03.2018

FS#1412 - LINK busybox_unstripped fails: cc1: note: someone does not honour COPTS correctly, passed 0 times

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 5cbd22bb0f.

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).)

Drei Eck commented on 05.03.2018 19:09

Oh whow, I just noticed I did a 2>%1 instead of a 2>&1, so stderr is not captured ...

I did issue the build again, with also capturing stderr. Since the compilation did already run one time and (almost) nothing was in need to be rebuilt, the make.log is much smaller now.

I attach the output of make -j1 V=s IGNORE_ERRORS=m 2>&1 | tee make.log.

The error messages regarding LINK busybox_unstripped stay the same:

[...]
make[4]: Entering directory '/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom/build_dir/target-mips_24kc_musl/busybox-1.27.2'
  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/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom/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/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom/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/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom/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/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom'
make[1]: *** [package/Makefile:102: /home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom/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/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom'
make: *** [/home/felics/download/router/OS/OpenWRT/source_build/source/batch_builds/2018-02-26_12-04-45_-_custom-wo-pie_feeds-rooter-custom/include/toplevel.mk:218: world] Error 2
   make.log (1.12 MiB)
Drei Eck commented on 09.03.2018 15:06

Applies also to release lede-17.01.04

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing