OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • 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 Fabian Pflug - 01.07.2021

FS#3908 - OpenWRT 21.02 fails to build with glibc and libstdc++ on imx6 during toolchain libtsan

I’m not sure on how to solve this issue. Wanting to go from 19.07 to 21.02 I could not build the basic system.

Steps to reproduce

#!/bin/sh

git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git checkout openwrt-21.02
# was d666ebcaa327a1e03992a484d9601ea5f2e6b19a
cat > .config << EOF
CONFIG_TARGET_imx6=y
CONFIG_TARGET_imx6_Default=y
CONFIG_TARGET_BOARD="imx6"
CONFIG_ALL_KMODS=y
CONFIG_ALL_NONSHARED=y
CONFIG_DEVEL=y
CONFIG_TOOLCHAINOPTS=y
CONFIG_BUILD_NLS=y
CONFIG_IMAGEOPT=y
CONFIG_KERNEL_ARM_PMU=y
CONFIG_KERNEL_DEBUG_LL=y
CONFIG_KERNEL_DEBUG_LL_UART_NONE=y
CONFIG_KERNEL_DEVMEM=y
CONFIG_KERNEL_EARLY_PRINTK=y
CONFIG_KERNEL_PERF_EVENTS=y
CONFIG_LIBC="glibc"
CONFIG_LIBC_USE_GLIBC=y
# CONFIG_LIBC_USE_MUSL is not set
CONFIG_STRIP_ARGS="--strip-all"
CONFIG_TARGET_OPTIMIZATION="-O3 -pipe"
CONFIG_TARGET_OPTIONS=y
CONFIG_TARGET_ROOTFS_PARTSIZE=1008
# CONFIG_TARGET_ROOTFS_SQUASHFS is not set
# CONFIG_TARGET_ROOTFS_UBIFS is not set
CONFIG_TARGET_SUFFIX="gnueabi"
CONFIG_USE_GLIBC=y
CONFIG_USE_LIBSTDCXX=y
CONFIG_USE_STRIP=y
# CONFIG_USE_UCLIBCXX is not set
# CONFIG_PACKAGE_objdump is not set
# CONFIG_PACKAGE_perf is not set
EOF
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make -j 16 || make -j1 V=s

End-Result

....  [snip]
make[3]: Entering directory '/opt/test/openwrt/package/libs/toolchain'
Makefile:737: WARNING: skipping libgomp -- package has no install section
mkdir -p /opt/test/openwrt/staging_dir/target-arm_cortex-a9+neon_glibc_eabi/root-imx6/stamp
SHELL= flock /opt/test/openwrt/tmp/.root-copy.flock -c 'cp -fpR /opt/test/openwrt/build_dir/target-arm_cortex-a9+neon_glibc_eabi/toolchain/.pkgdir/libc/. /opt/test/openwrt/staging_dir/target-arm_cortex-a9+neon_glibc_eabi/root-imx6/'
touch /opt/test/openwrt/staging_dir/target-arm_cortex-a9+neon_glibc_eabi/root-imx6/stamp/.libc_installed
mkdir -p /opt/test/openwrt/bin/targets/imx6/generic-glibc/packages /opt/test/openwrt/build_dir/target-arm_cortex-a9+neon_glibc_eabi/toolchain/ipkg-arm_cortex-a9_neon/libtsan/CONTROL /opt/test/openwrt/staging_dir/target-arm_cortex-a9+neon_glibc_eabi/pkginfo
install -d -m0755 /opt/test/openwrt/build_dir/target-arm_cortex-a9+neon_glibc_eabi/toolchain/ipkg-arm_cortex-a9_neon/libtsan/lib
cp -fpR /opt/test/openwrt/staging_dir/toolchain-arm_cortex-a9+neon_gcc-8.4.0_glibc_eabi/lib/libtsan.so.* /opt/test/openwrt/build_dir/target-arm_cortex-a9+neon_glibc_eabi/toolchain/ipkg-arm_cortex-a9_neon/libtsan/lib/
cp: cannot stat '/opt/test/openwrt/staging_dir/toolchain-arm_cortex-a9+neon_gcc-8.4.0_glibc_eabi/lib/libtsan.so.*': No such file or directory
make[3]: *** [Makefile:733: /opt/test/openwrt/bin/targets/imx6/generic-glibc/packages/libtsan0_8.4.0-3_arm_cortex-a9_neon.ipk] Error 1
make[3]: Leaving directory '/opt/test/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.16#0.04#0.19
    ERROR: package/libs/toolchain failed to build.
make[2]: *** [package/Makefile:114: package/libs/toolchain/compile] Error 1
make[2]: Leaving directory '/opt/test/openwrt'
make[1]: *** [package/Makefile:108: /opt/test/openwrt/staging_dir/target-arm_cortex-a9+neon_glibc_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/opt/test/openwrt'
make: *** [/opt/test/openwrt/include/toplevel.mk:230: world] Error 2
Fabian Pflug commented on 01.07.2021 14:11

Ahh, sorry, forgot to do the categories and don't know if or how I can change them.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing