openwrt issueshttps://code.fe80.eu/openwrt/openwrt/-/issues2019-09-10T10:46:16Zhttps://code.fe80.eu/openwrt/openwrt/-/issues/2476Module error in kernel 4.192019-09-10T10:46:16ZaparcarModule error in kernel 4.19Username: Ansuel
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2476
NF_NAT_REDIRECT is no longer a module in newer kernel
net/sched/Kconfig:44: warning: menuconfig statement without prompt
.config:3973:warning: symbol...Username: Ansuel
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2476
NF_NAT_REDIRECT is no longer a module in newer kernel
net/sched/Kconfig:44: warning: menuconfig statement without prompt
.config:3973:warning: symbol value ‘m’ invalid for NF_NAT_REDIRECThttps://code.fe80.eu/openwrt/openwrt/-/issues/2418Build failure - Netgear 6220 (mt7621)2019-09-10T10:46:51ZaparcarBuild failure - Netgear 6220 (mt7621)Username: Kamil Darczynski
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2418Username: Kamil Darczynski
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2418https://code.fe80.eu/openwrt/openwrt/-/issues/2336Build fail with php72019-09-10T10:46:16ZaparcarBuild fail with php7Username: nicolas
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2336
Hi all,
When using openwrt builder and adding package in make command, build fails because PHP7 packages are missing in repository and packages lists...Username: nicolas
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2336
Hi all,
When using openwrt builder and adding package in make command, build fails because PHP7 packages are missing in repository and packages lists.
could you take a look please ?
have a nice dayhttps://code.fe80.eu/openwrt/openwrt/-/issues/2324Packages corrupt or empty2019-09-10T10:46:32ZaparcarPackages corrupt or emptyUsername: ner0
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2324
Supply the following if possible:
- TL-WR841N v13
- latest snapshot from ‘
http://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/
’ - Trying ...Username: ner0
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2324
Supply the following if possible:
- TL-WR841N v13
- latest snapshot from ‘
http://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/
’ - Trying to install ‘luci’ via opkg, getting:
Unknown package ‘luci’.
Collected errors:
* opkg_install_cmd: Cannot install package luci.
Checked the ‘mipsel_24kc’ folder and it has empty/corrupt files which would account for the issue:
http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/https://code.fe80.eu/openwrt/openwrt/-/issues/2221building grub on 32 bit host fails2019-09-10T10:46:38Zaparcarbuilding grub on 32 bit host failsUsername: Lars
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2221
The build for x86 stops at the following step:
make[8]: Entering directory '/home/lars/opennet/git/firmware/openwrt/build_dir/hostpkg/grub-2.02/grub-cor...Username: Lars
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2221
The build for x86 stops at the following step:
make[8]: Entering directory '/home/lars/opennet/git/firmware/openwrt/build_dir/hostpkg/grub-2.02/grub-core'
i486-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -m32 -nostdinc -isystem /home/lars/opennet/git/firmware/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.4.0_musl/lib/gcc/i486-openwrt-linux-musl/7.4.0/include -I../include -I../include -DGRUB_FILE=\"lib/i386/relocator64.S\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -I/home/lars/opennet/git/firmware/openwrt/staging_dir/host/include -I/home/lars/opennet/git/firmware/openwrt/staging_dir/hostpkg/include -I/home/lars/opennet/git/firmware/openwrt/staging_dir/target-i386_pentium4_musl/host/include -D_FILE_OFFSET_BITS=64 -g -m32 -msoft-float -DGRUB_FILE=\"lib/i386/relocator64.S\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -O2 -I/home/lars/opennet/git/firmware/openwrt/staging_dir/host/include -I/home/lars/opennet/git/firmware/openwrt/staging_dir/hostpkg/include -I/home/lars/opennet/git/firmware/openwrt/staging_dir/target-i386_pentium4_musl/host/include -MT lib/i386/relocator_module-relocator64.o -MD -MP -MF lib/i386/.deps-core/relocator_module-relocator64.Tpo -c -o lib/i386/relocator_module-relocator64.o `test -f 'lib/i386/relocator64.S' || echo './'`lib/i386/relocator64.S
lib/i386/relocator64.S: Assembler messages:
lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64'
lib/i386/relocator64.S:74: Error: bad register name `%rax'
lib/i386/relocator64.S:98: Error: bad register name `%rax'
lib/i386/relocator64.S:132: Error: bad register name `%rip)'
make[8]: *** [Makefile:28991: lib/i386/relocator_module-relocator64.o] Error 1
make[8]: Leaving directory '/home/lars/opennet/git/firmware/openwrt/build_dir/hostpkg/grub-2.02/grub-core'
The build host is a 32 bit Linux system.
This does not seem to happen on a 64 bit build host.https://code.fe80.eu/openwrt/openwrt/-/issues/2164When compiling with zero packages configured, the compilation hangs forever w...2019-09-10T10:45:39ZaparcarWhen compiling with zero packages configured, the compilation hangs forever with a call to "cat"Username: Michael Jones
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2164
Supply the following if possible:
- Device problem occurs on
- Software versions of OpenWrt/LEDE release, packages, etc.
- Steps to reproduce...Username: Michael Jones
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2164
Supply the following if possible:
- Device problem occurs on
- Software versions of OpenWrt/LEDE release, packages, etc.
- Steps to reproduce
git clone –depth 1
https://github.com/openwrt/openwrt.git
openwrt-reproduce-package-cat-bug
cd openwrt-reproduce-package-cat-bug
cp $attached_file_.config .config
make V=sc
The build process hangs after these log lines:
find .tmp_versions -name '*.mod' | xargs -r grep -h '\.ko$' | sort -u | sed 's/\.ko$/.o/' | scripts/mod/modpost -o ./Module.symvers -S -s -T -
make[5]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/linux-ipq806x/linux-4.14.104’ touch /home/jonesmz/openwrt-reproduce-package-cat-bug/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/linux-ipq806x/linux-4.14.104/.modules
make -C image compile TARGET_BUILD=
make[5]: Entering directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/target/linux/ipq806x’ make[5]: warning: jobserver unavailable: using -j1. Add ‘+’ to parent make rule.
make[5]: Nothing to be done for ‘compile’.
make[5]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/target/linux/ipq806x/image’ make[4]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/target/linux/ipq806x’ make[3]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/target/linux’ time: target/linux/compile#2.58#0.96#1.99
make[2]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug’ export MAKEFLAGS= ;make -w -r diffconfig
make[2]: Entering directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug’ make[2]: Entering directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug’ make[3]: Entering directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/package/libs/libjson-c’ make[3]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/package/libs/libjson-c’ time: package/libs/libjson-c/host-compile#0.16#0.08#0.22
make[3]: Entering directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/package/libs/libubox’ make[3]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/package/libs/libubox’ time: package/libs/libubox/host-compile#0.68#0.36#0.98
make[3]: Entering directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/package/system/opkg’ make[2]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug’ make[3]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug/package/system/opkg’ time: package/system/opkg/host-compile#0.55#0.25#0.75
make[2]: Leaving directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug’ make[2]: Entering directory ‘/home/jonesmz/openwrt-reproduce-package-cat-bug’ make[2]: warning: -jN forced in submake: disabling jobserver mode.
rm -rf /home/jonesmz/openwrt-reproduce-package-cat-bug/staging_dir/packages/ipq806x
mkdir -p /home/jonesmz/openwrt-reproduce-package-cat-bug/staging_dir/packages/ipq806x
And the following process tree
/bin/bash
- make -j25 V=sc
/bin/sh -c _limit=`ulimit -n` ; .............
make -w -r world
make -j1 package/install
bash -c cat 2>/dev/null
cat
The attached .config file has a minimal configuration where as few packages as possible selected. In this case, I think I’ve managed to get it down to zero packages. I believe that what’s failing is this line:
./package/Makefile: $(call opkg_package_files,$(foreach pkg,$(shell cat $(PACKAGE_INSTALL_FILES) 2>/dev/null),$(pkg)$(call GetABISuffix,$(pkg))))
Where if this line is executed when $PACKAGE_INSTALL_FILES expands to nothing, then the “cat” program expects to read data from standard in, which will wait forever.
An easy workaround is to add /dev/null to the list of files to cat, such as
./package/Makefile: $(call opkg_package_files,$(foreach pkg,$(shell cat /dev/null $(PACKAGE_INSTALL_FILES) 2>/dev/null),$(pkg)$(call GetABISuffix,$(pkg))))
But you still end up with failures later, such as opkg being given an empty list of packages to install.https://code.fe80.eu/openwrt/openwrt/-/issues/2092Can't build current release2019-09-10T10:46:02ZaparcarCan't build current releaseUsername: Vitaliy
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2092
I can’t build stable release from sources
- Software versions of OpenWrt/LEDE release, packages, etc.
18.06.1
- Steps to reproduce
do everything l...Username: Vitaliy
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2092
I can’t build stable release from sources
- Software versions of OpenWrt/LEDE release, packages, etc.
18.06.1
- Steps to reproduce
do everything like at wiki, but 18.06.1 failed to build, but 18.06 fresh sources snapshot building successfully.
error:
...
mv -f $depbase.Tpo $depbase.Po
lib/fseterr.c: In function ‘fseterr’:
lib/fseterr.c:77:3: error: #error “Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib.”
#error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
^~~~~
make[6]:
* [Makefile:3461: lib/fseterr.o] Error 1
make[6]:
* Waiting for unfinished jobs....
....
aging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin:/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/staging_dir/host/bin:/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/staging_dir/host/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/v/go/bin:~/.npm-global/bin:/sbin” ldconfig -n /run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/staging_dir/host/lib
Libraries have been installed in:
/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/staging_dir/host/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the ‘-LLIBDIR’ flag during linking and do at least one of the following:
add LIBDIR to the ‘LD_LIBRARY_PATH’ environment variable
during execution
add LIBDIR to the ‘LD_RUN_PATH’ environment variable
during linking
use the ‘-Wl,-rpath -Wl,LIBDIR’ linker flag
have your system administrator add LIBDIR to ‘/etc/ld.so.conf’
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
.....
ake[6]: Entering directory ‘/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/build_dir/host/mpc-1.1.0’ make[6]: Nothing to be done for ‘install-exec-am’.
/usr/bin/mkdir -p ‘/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/staging_dir/host/include’ /usr/bin/install -c -m 644 src/mpc.h ‘/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/staging_dir/host/include’ make[6]: Leaving directory ‘/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/build_dir/host/mpc-1.1.0’ make[5]: Leaving directory ‘/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/build_dir/host/mpc-1.1.0’ make[4]: Leaving directory ‘/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/build_dir/host/mpc-1.1.0’ mkdir -p /run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/staging_dir/host/stamp
touch /run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/build_dir/host/mpc-1.1.0/.built
touch /run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/staging_dir/host/stamp/.mpc_installed
make[3]: Leaving directory ‘/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/tools/mpc’ time: tools/mpc/compile#18.28#3.65#16.10
make[2]: Leaving directory ‘/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt’ make[1]:
* [tools/Makefile:150: /run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.tools_compile_yynyyyyynyyyyynyynyyyyynyyyyyyyyyyyyyyynyynynnyyynnyy] Error 2
make[1]: Leaving directory ‘/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt’
make:
* [/run/media/v/1390ab77-3888-441a-ac20-cb46d9511e27/openwrt/openwrt-stable/openwrt/include/toplevel.mk:218: world] Error 2https://code.fe80.eu/openwrt/openwrt/-/issues/1980Build fails due to incorrectly detecting x322019-09-10T10:45:01ZaparcarBuild fails due to incorrectly detecting x32Username: Oliver
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1980
When attempting to build OpenWRT, the toolchain generation fails due to tools/gmp/Makefile trying to detect an x32 compiler. It builds successfully but...Username: Oliver
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1980
When attempting to build OpenWRT, the toolchain generation fails due to tools/gmp/Makefile trying to detect an x32 compiler. It builds successfully but MPFR then fails to compile as it targets x86_64 but gmp has been built as x32
Deleting the following conditional from the GMP Makefile fixes the issue:
ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32)
HOST_CONFIGURE_ARGS += ABI=x32
endifhttps://code.fe80.eu/openwrt/openwrt/-/issues/1543Many packages in snapshot failing on one build, ok on next but no code changes.2019-09-10T10:44:36ZaparcarMany packages in snapshot failing on one build, ok on next but no code changes.Username: Rob White
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1543
Snapshot/Packages
Occurs on all architectures apparently at random with faillogs.
After next build some that failed will be ok and some that previ...Username: Rob White
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1543
Snapshot/Packages
Occurs on all architectures apparently at random with faillogs.
After next build some that failed will be ok and some that previously built will fail.
eg submit a PR on
https://github.com/openwrt/packages
Travis shows fail on dependencies. After next automated build, Travis errors will be different, or if lucky will pass, only to fail again after the next build.
It seems the build system is chasing its tail somehow.https://code.fe80.eu/openwrt/openwrt/-/issues/1414mbedtls: building with ccache: /staging_dir/host/bin/ccache: invalid option -...2019-09-10T10:43:48Zaparcarmbedtls: building with ccache: /staging_dir/host/bin/ccache: invalid option -- 'd'Username: Drei Eck
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1414
I am currently trying to compile OpenWRT for
CONFIG_TARGET_LANTIQ=Y
CONFIG_TARGET_LANTIQ_XWAY=Y
CONFIG_TARGET_lantiq_xway_DEVICE_arcadyan_arv752dpw2...Username: Drei Eck
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1414
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
I am using
CONFIG_DEVEL=y
CONFIG_CCACHE=y
I am building in the following way:
The build was carried out on a
git clone git://github.com/openwrt/openwrt.git
, 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 | tee make.log
When it comed to building mbedtls, there are the following lines of output which indicate something is wrong:
[...]
make[3]: [Makefile:75: /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/mbedtls-2.7.0/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 123 (ignored)
[...]
/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/host/bin/ccache: invalid option -- 'd'
Usage:
ccache [options]
[...]
Build continues, (seemingliy) successfully: Indicated by the further output of
make
, and issuing later a
make -j1 V=s
(i.e. without
IGNORE_ERRORS=m
), does not bring this up again.
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,
mbedtls.log
: The pa[.config-diffconfig-seed.txt](
https://github.com/openwrt/packages/files/1782373/default.config-diffconfig-rt
of the output of
make -j1 V=s IGNORE_ERRORS=m
regarding building mbedtls,
make.log.stdout.xz
: For your interest, the full output of
make -j1 V=s IGNORE_ERRORS=m
(.xz compressed; decompresses to about 29
MB
) (Note that at the end another build error occurs, which seems not to be related to embedtls),
feeds.conf
: The
feeds.conf
used.
(Note that I just forgot to capture stderr too, but the error messages seem to be present in stdout. Since a full rebuild takes a day on my machine, I won’t do that if not necessary.)https://code.fe80.eu/openwrt/openwrt/-/issues/1412LINK busybox_unstripped fails: cc1: note: someone does not honour COPTS corre...2019-09-10T10:43:29ZaparcarLINK busybox_unstripped fails: cc1: note: someone does not honour COPTS correctly, passed 0 timesUsername: 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_arv752dpw2...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
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).)https://code.fe80.eu/openwrt/openwrt/-/issues/1282"CONFIG_STRIP_KERNEL_EXPORTS" breaks kernel compilation for Raspberry PI3 (ar...2019-09-10T10:43:00Zaparcar"CONFIG_STRIP_KERNEL_EXPORTS" breaks kernel compilation for Raspberry PI3 (arm64)Username: Thorsten Maerz
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1282
Target: brcm2708_bcm2710 (rpi-3)
Affected openwrt revision: git-head (26045049baf646aa2ce3dce78106da5acf4936ea)
(openwrt-17.01 is not affecte...Username: Thorsten Maerz
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1282
Target: brcm2708_bcm2710 (rpi-3)
Affected openwrt revision: git-head (26045049baf646aa2ce3dce78106da5acf4936ea)
(openwrt-17.01 is not affected)
Reproducing
git clone
https://git.openwrt.org/openwrt/openwrt.git
; cd openwrt
make menuconfig
# Select:
# Target: Broadcom BCM27xx
# Subtarget: BCM2710 64 bit based boards
# Global build settings —> Strip unnecessary exports from the kernel image: Enabled
make -j 1 V=s
Build log
make -C /home/torte/openwrt/nfs/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-brcm2708_bcm2710/linux-4.9.76 HOSTCFLAGS="-O2 -I/home/torte/openwrt/nfs/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="aarch64-openwrt-linux-musl-" ARCH="arm64" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Thu Jan 18 10:39:42 2018" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/torte/openwrt/nfs/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KERNELRELEASE=4.9.76 EXTRA_LDSFLAGS="-I/home/torte/openwrt/nfs/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-brcm2708_bcm2710 -include symtab.h" CC="aarch64-openwrt-linux-musl-gcc" modules
make[5]: Entering directory '/home/torte/openwrt/nfs/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-brcm2708_bcm2710/linux-4.9.76'
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
LDS arch/arm64/kernel/vdso/vdso.lds
cc1: fatal error: symtab.h: No such file or directory
compilation terminated.
scripts/Makefile.build:405: recipe for target 'arch/arm64/kernel/vdso/vdso.lds' failed
make[6]: *** [arch/arm64/kernel/vdso/vdso.lds] Error 1
arch/arm64/Makefile:145: recipe for target 'vdso_prepare' failed
make[5]: *** [vdso_prepare] Error 2
Details
The option CONFIG_STRIP_KERNEL_EXPORTS adds “-include symtab.h” for all linker script invokations. See openwrt/include/kernel-defaults.mk:
ifdef CONFIG_STRIP_KERNEL_EXPORTS
KERNEL_MAKEOPTS += \
EXTRA_LDSFLAGS="-I$(KERNEL_BUILD_DIR) -include symtab.h"
endif
On recent kernels (4.9.x, arm64 build), linker scripts are used to generate “vdso.lds” at the “make modules” stage.
But the file “symtab.h” is generated later (at the install/image generation stage). See openwrt/include/kernel-build.mk:
$(LINUX_DIR)/.image: $(STAMP_CONFIGURED) $(if $(CONFIG_STRIP_KERNEL_EXPORTS),$(KERNEL_BUILD_DIR)/symtab.h) FORCE
$(Kernel/CompileImage)
$(Kernel/CollectDebug)
touch $$@
As a result, kernel compilation fails.
Sidenotes:
- 32bit arm (brcm2708_bcm2708) is not affected, the vdso stuff is generated by normal .c files
- On arm64 4.4 kernels, the vdso stuff is not compiled for reasons, that I don’t know. Anyway, openwrt-17.01 is not affectedhttps://code.fe80.eu/openwrt/openwrt/-/issues/1171Buildbot fails for TP-LINK CPE210/2202019-09-10T10:43:00ZaparcarBuildbot fails for TP-LINK CPE210/220Username: Daniel Wandrei
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1171
Since a few days, no Snapshot Images are build for (at least) the TP-LINK CPE210/220.
Error:
os-image partition too big (more than 1507328 by...Username: Daniel Wandrei
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1171
Since a few days, no Snapshot Images are build for (at least) the TP-LINK CPE210/220.
Error:
os-image partition too big (more than 1507328 bytes)https://code.fe80.eu/openwrt/openwrt/-/issues/1091libiconv-full undefined reference compile-time linking error for x86/_64 usin...2019-09-10T10:42:50Zaparcarlibiconv-full undefined reference compile-time linking error for x86/_64 using GCC7 MuslUsername: Jake Staehle
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1091
LEDE Trunk using latest commit fbde9ac718409720a937671f3354837223b5db76
Feeds all using latest trunk sources, though that shouldn't affect this
...Username: Jake Staehle
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1091
LEDE Trunk using latest commit fbde9ac718409720a937671f3354837223b5db76
Feeds all using latest trunk sources, though that shouldn't affect this
Target is "x86" Generic (also tried x86_64)
Selected GCC 7 for compiler options
.config is attached
Problem discovered when enabling the 'minidlna' package, which has a dependency on 'libiconv-full' - a core LEDE package.
Compilation fails on 'libiconv-full' with undefined reference errors (linking errors) for objects 'aliases_lookup' and 'aliases2_lookup' in "libiconv.so":
make[5]: Entering directory '/home/jstaehle/prem2/depot/lede/build_dir/target-i386_pentium4_musl/libiconv-1.11.1/src'
/bin/sh ../libtool --mode=link i486-openwrt-linux-musl-gcc -L/home/jstaehle/prem2/depot/lede/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/jstaehle/prem2/depot/lede/staging_dir/target-i386_pentium4_musl/lib -L/home/jstaehle/prem2/depot/lede/staging_dir/toolchain-i386_pentium4_gcc-7.2.0_musl/usr/lib -L/home/jstaehle/prem2/depot/lede/staging_dir/toolchain-i386_pentium4_gcc-7.2.0_musl/lib -znow -zrelro iconv_no_i18n.o ../srclib/libicrt.a ../lib/libiconv.la -o iconv_no_i18n
i486-openwrt-linux-musl-gcc -znow -zrelro iconv_no_i18n.o -o iconv_no_i18n -L/home/jstaehle/prem2/depot/lede/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/jstaehle/prem2/depot/lede/staging_dir/target-i386_pentium4_musl/lib -L/home/jstaehle/prem2/depot/lede/staging_dir/toolchain-i386_pentium4_gcc-7.2.0_musl/usr/lib -L/home/jstaehle/prem2/depot/lede/staging_dir/toolchain-i386_pentium4_gcc-7.2.0_musl/lib ../srclib/libicrt.a ../lib/.libs/libiconv.so -Wl,--rpath -Wl,/home/jstaehle/prem2/depot/lede/build_dir/target-i386_pentium4_musl/libiconv-1.11.1/lib/.libs
../lib/.libs/libiconv.so: undefined reference to `aliases_lookup'
../lib/.libs/libiconv.so: undefined reference to `aliases2_lookup'
collect2: error: ld returned 1 exit status
Makefile:64: recipe for target 'iconv_no_i18n' failed
make[5]: *** [iconv_no_i18n] Error 1
Full build log is also attached
Tested with a full default configuration and only options enabled being GCC 7 and a modular option for the libiconv-full package, so that should rule out any external influence.
I did find one other reference to this issue on the LEDE forums a few months ago here:
LEDE Forums: compilation fails on libiconv-fullhttps://code.fe80.eu/openwrt/openwrt/-/issues/1047u-boot-nbg460n_550n_550nh bails out on CONFIG_ENV_SIZE error2019-09-10T10:41:50Zaparcaru-boot-nbg460n_550n_550nh bails out on CONFIG_ENV_SIZE errorUsername: Weedy
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1047
After doing my monthly distclean I’ve had a couple issues.
It started with some host glibc #include sys/sysmacros.h crap that was easy to work around a...Username: Weedy
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1047
After doing my monthly distclean I’ve had a couple issues.
It started with some host glibc #include sys/sysmacros.h crap that was easy to work around and has come to this which I know nothing about.
make -C tools all
make[5]: Entering directory '/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/tools'
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include -idirafter /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include2 -idirafter /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include -I /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/libfdt -I /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/tools -DTEXT_BASE=0x81E00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic -c -o crc32.o /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/lib_generic/crc32.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include -idirafter /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include2 -idirafter /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include -I /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/libfdt -I /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/tools -DTEXT_BASE=0x81E00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -c -o env_embedded.o /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/common/env_embedded.c
In file included from /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/common/env_embedded.c:30:0:
/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include/environment.h:137:21: error: 'CONFIG_ENV_SIZE' undeclared here (not in a function)
unsigned char data[ENV_SIZE]; /* Environment data */
^
make[5]: *** [Makefile:197: env_embedded.o] Error 1
make[5]: Leaving directory '/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/tools'
make[4]: *** [Makefile:364: tools] Error 2
make[4]: Leaving directory '/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03'
make[3]: *** [Makefile:36: /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl/u-boot-nbg460n_550n_550nh/u-boot-2010.03/.built] Error 2
make[3]: Leaving directory '/home/weedy/projects/openwrt-lede/package/boot/uboot-ar71xx'
make[2]: *** [package/Makefile:111: package/boot/uboot-ar71xx/compile] Error 2
make[2]: Leaving directory '/home/weedy/projects/openwrt-lede'
make[1]: *** [package/Makefile:105: /home/weedy/projects/openwrt-lede/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/weedy/projects/openwrt-lede'
make: *** [/home/weedy/projects/openwrt-lede/include/toplevel.mk:209: world] Error 2
I’m building ar71xx for ubnt-rspro, tl-wdr4300-v1, tl-wr842n-v2, and wndr3700.https://code.fe80.eu/openwrt/openwrt/-/issues/1007build failure on musl. missing <sys/sysmacros.h>2019-09-10T10:41:57Zaparcarbuild failure on musl. missing <sys/sysmacros.h>Username: Alessandro Rosetti
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1007
Supply the following if possible:
- Device problem occurs on
lantiq w8970
- Software versions of LEDE release, packages, etc.
17.01 bra...Username: Alessandro Rosetti
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1007
Supply the following if possible:
- Device problem occurs on
lantiq w8970
- Software versions of LEDE release, packages, etc.
17.01 branch
- Steps to reproduce
1) try to build image
2) fails to build e2fsprogs and more.
I have this problem on other packages that require this include <sys/sysmacros.h>. package builds if I manually add the include.
I’m using musl, the source should include sysmacros.h :
https://github.com/davidlazar/musl/blob/master/include/sys/types.h
macro _GNU_SOURCE is not defined an so sys/sysmacros.h is not included and packages don’t build. should it be?
look at the log for build errors.https://code.fe80.eu/openwrt/openwrt/-/issues/503Build fails with CONFIG_KERNEL_GIT_CLONE_URI beig set2019-09-10T10:39:35ZaparcarBuild fails with CONFIG_KERNEL_GIT_CLONE_URI beig setUsername: Mirko Vogt
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=503
When specifying
CONFIG_KERNEL_GIT_CLONE_URI
a clean build fails, as the system assumes a already downloaded/cloned/packed linux-source is present ...Username: Mirko Vogt
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=503
When specifying
CONFIG_KERNEL_GIT_CLONE_URI
a clean build fails, as the system assumes a already downloaded/cloned/packed linux-source is present in dl/ which on a freshly checked out openwrt/lede source isn’t the case yet, when
toolchain/kernel-headers
is about to be built.
The build error looks like:
make[3]: Entering directory `/build/lede.git/toolchain/kernel-headers'
zcat /build/lede.git/dl/linux-4.4.42.tar.gz | tar -C /build/lede.git/build_dir/toolchain-arm_cortex-a9+neon_gcc-6.3.0_glibc-2.24_eabi -xf -
gzip: /build/lede.git/dl/linux-4.4.42.tar.gz: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
The issue apparently is located in
include/kernel-defaults.mk
, line 53ff::
ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
define Kernel/Prepare/Default
zcat $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
$(Kernel/Patch)
$(if $(QUILT),touch $(LINUX_DIR)/.quilt_used)
endef
else
define Kernel/Prepare/Default
zcat $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
endef
endif
For the package
kernel-headers
it just tries to access the not-yet downloaded/cloned/packed linux kernel source archive.https://code.fe80.eu/openwrt/openwrt/-/issues/375Bulidbots should have multilib support installed to prevent unnecessary breakage2019-09-10T10:40:15ZaparcarBulidbots should have multilib support installed to prevent unnecessary breakageUsername: diizzyy
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=375
I’ve run into this earlier myself and now we are seeing at least one package failing because of it.
https://github.com/openwrt/packages/pull/2823
Peo...Username: diizzyy
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=375
I’ve run into this earlier myself and now we are seeing at least one package failing because of it.
https://github.com/openwrt/packages/pull/2823
People seem to have run into this issue before since it’s listed as a requirement for Ubuntu 64-bit as an example.
https://wiki.openwrt.org/doc/howto/buildroot.exigence#examples_of_package_installations