Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
openwrt-bot opened this issue Jul 1, 2021 · 2 comments
Labels
bug flyspray target/imx

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Jul 1, 2021

gumulka:

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
</code>


=====End-Result=====
<code>
....  [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
@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jul 1, 2021

gumulka:

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

@ynezz ynezz added bug target/imx labels Mar 8, 2022
@ynezz
Copy link
Member

@ynezz ynezz commented Mar 8, 2022

@hauke Any idea if this has been fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug flyspray target/imx
Projects
None yet
Development

No branches or pull requests

2 participants