-
Notifications
You must be signed in to change notification settings - Fork 27
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
Unable to compile openwrt firmware #2783
Comments
the magic error code will be in a config.log file that autoconf generates,
that will have the actual error that made autoconf (configure) decide C++
is not supported somehow...
(which of course it is)
…On Wed, Dec 14, 2022 at 3:40 AM sijidou ***@***.***> wrote:
I have been using clearlinux to compile opnewrt firmware before, but
recently it doesn't work.
I tried reinstalling the system, but the problem persists. Even compiling
past released firmware gives the same error, I don't understand how this
could be caused, everything was working fine until a certain system update.
Currently my system version is 37730, I tested 37760 also doesn't work,
but I don't know how to fix this problem.
Here is part of the error code:
make[5]: Leaving directory
'/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/zlib'
make[5]: Entering directory
'/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libbacktrace'
make all-am
make[6]: Entering directory
'/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libbacktrace'
true DO=all multi-do # make
make[6]: Leaving directory
'/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libbacktrace'
make[5]: Leaving directory
'/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libbacktrace'
make[5]: Entering directory
'/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[5]: Leaving directory
'/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libcpp'
Configuring in ./libcody
configure: loading cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking maintainer-mode...
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ is for C++11... no
configure: error: C++11 is required
make[4]: *** [Makefile:7491: configure-libcody] Error 1
make[4]: Leaving directory
'/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial'
make[3]: *** [Makefile:37:
/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/.built]
Error 2
make[3]: Leaving directory '/home/m/openwrt/toolchain/gcc/initial'
time: toolchain/gcc/initial/compile#0.50#0.32#0.91
ERROR: toolchain/gcc/initial failed to build.
make[2]: *** [toolchain/Makefile:97: toolchain/gcc/initial/compile] Error 1
make[2]: Leaving directory '/home/m/openwrt'
make[1]: *** [toolchain/Makefile:93:
/home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/stamp/.toolchain_compile]
Error 2
make[1]: Leaving directory '/home/m/openwrt'
make: *** [/home/m/openwrt/include/toplevel.mk:231:world] Error 2
—
Reply to this email directly, view it on GitHub
<#2783>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ54FLPCBQQALJGJERFRRTWNGW2ZANCNFSM6AAAAAAS6L7X5A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks for the help, I compared the config.log files on Clearlinux and ubuntu, but I can't find the problem, can you help me find out where the problem is? This file contains any messages produced by compilers while It was created by configure, which was $ /home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0/configure --with-bugurl=http://bugs.openwrt.org/ --with-pkgversion=OpenWrt GCC 11.3.0 r21504-d15b1fbed7 --prefix=/home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-openwrt-linux-musl --with-gnu-ld --enable-target-optspace --disable-libgomp --disable-libmudflap --disable-multilib --disable-libmpx --disable-nls --disable-libssp --without-isl --without-cloog --with-host-libstdcxx=-lstdc++ --with-gmp=/home/m/openwrt/staging_dir/host --with-mpfr=/home/m/openwrt/staging_dir/host --with-mpc=/home/m/openwrt/staging_dir/host --disable-decimal-float --with-diagnostics-color=auto-if-env --enable-__cxa_atexit --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new --with-newlib --with-sysroot=/home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl --enable-languages=c --disable-shared --disable-threads ---------Platform.---------hostname = PN41 /usr/bin/uname -p = unknown /bin/arch = unknown PATH: /home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/bin -----------Core tests.-----------configure:2366: checking build system type configure:4455: $? = 0 configure:5052: $? = 0 ----------------------Running config.status.----------------------This file was extended by config.status, which was CONFIG_FILES = on PN41 config.status:1043: creating Makefile ----------------Cache variables.----------------ac_cv_build=x86_64-pc-linux-gnu -----------------Output variables.-----------------AR='gcc-ar' -------------------File substitutions.-------------------alphaieee_frag='/dev/null' -----------confdefs.h.-----------/* confdefs.h */ configure: exit 0 It was created by configure, which was $ /home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0/configure --with-bugurl=http://bugs.openwrt.org/ --with-pkgversion=OpenWrt GCC 11.3.0 r21376-af8bc8e51b --prefix=/home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-openwrt-linux-musl --with-gnu-ld --enable-target-optspace --disable-libgomp --disable-libmudflap --disable-multilib --disable-libmpx --disable-nls --disable-libssp --without-isl --without-cloog --with-host-libstdcxx=-lstdc++ --with-gmp=/home/m/openwrt/staging_dir/host --with-mpfr=/home/m/openwrt/staging_dir/host --with-mpc=/home/m/openwrt/staging_dir/host --disable-decimal-float --with-diagnostics-color=auto-if-env --enable-__cxa_atexit --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new --with-newlib --with-sysroot=/home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl --enable-languages=c --disable-shared --disable-threads ---------Platform.---------hostname = DESKTOP-BIM9DTP /usr/bin/uname -p = x86_64 /bin/arch = x86_64 PATH: /home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/bin -----------Core tests.-----------configure:2366: checking build system type configure:4455: $? = 0 configure:5052: $? = 0 ----------------------Running config.status.----------------------This file was extended by config.status, which was CONFIG_FILES = on DESKTOP-BIM9DTP config.status:1039: creating Makefile ----------------Cache variables.----------------ac_cv_build=x86_64-pc-linux-gnu -----------------Output variables.-----------------AR='ar' -------------------File substitutions.-------------------alphaieee_frag='/dev/null' -----------confdefs.h.-----------/* confdefs.h */ configure: exit 0 It was created by configure, which was $ /home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0/configure --with-bugurl=http://bugs.openwrt.org/ --with-pkgversion=OpenWrt GCC 11.3.0 r21504-d15b1fbed7 --prefix=/home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-openwrt-linux-musl --with-gnu-ld --enable-target-optspace --disable-libgomp --disable-libmudflap --disable-multilib --disable-libmpx --disable-nls --disable-libssp --without-isl --without-cloog --with-host-libstdcxx=-lstdc++ --with-gmp=/home/m/openwrt/staging_dir/host --with-mpfr=/home/m/openwrt/staging_dir/host --with-mpc=/home/m/openwrt/staging_dir/host --disable-decimal-float --with-diagnostics-color=auto-if-env --enable-__cxa_atexit --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new --with-newlib --with-sysroot=/home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl --enable-languages=c --disable-shared --disable-threads ---------Platform.---------hostname = PN41 /usr/bin/uname -p = unknown /bin/arch = unknown PATH: /home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/bin -----------Core tests.-----------configure:2366: checking build system type configure:4455: $? = 0 configure:5052: $? = 0 ----------------------Running config.status.----------------------This file was extended by config.status, which was CONFIG_FILES = on PN41 config.status:1043: creating Makefile ----------------Cache variables.----------------ac_cv_build=x86_64-pc-linux-gnu -----------------Output variables.-----------------AR='gcc-ar' -------------------File substitutions.-------------------alphaieee_frag='/dev/null' -----------confdefs.h.-----------/* confdefs.h */ configure: exit 0 It was created by configure, which was $ /home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0/configure --with-bugurl=http://bugs.openwrt.org/ --with-pkgversion=OpenWrt GCC 11.3.0 r21376-af8bc8e51b --prefix=/home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-openwrt-linux-musl --with-gnu-ld --enable-target-optspace --disable-libgomp --disable-libmudflap --disable-multilib --disable-libmpx --disable-nls --disable-libssp --without-isl --without-cloog --with-host-libstdcxx=-lstdc++ --with-gmp=/home/m/openwrt/staging_dir/host --with-mpfr=/home/m/openwrt/staging_dir/host --with-mpc=/home/m/openwrt/staging_dir/host --disable-decimal-float --with-diagnostics-color=auto-if-env --enable-__cxa_atexit --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new --with-newlib --with-sysroot=/home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl --enable-languages=c --disable-shared --disable-threads ---------Platform.---------hostname = DESKTOP-BIM9DTP /usr/bin/uname -p = x86_64 /bin/arch = x86_64 PATH: /home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/bin -----------Core tests.-----------configure:2366: checking build system type configure:4455: $? = 0 configure:5052: $? = 0 ----------------------Running config.status.----------------------This file was extended by config.status, which was CONFIG_FILES = on DESKTOP-BIM9DTP config.status:1039: creating Makefile ----------------Cache variables.----------------ac_cv_build=x86_64-pc-linux-gnu -----------------Output variables.-----------------AR='ar' -------------------File substitutions.-------------------alphaieee_frag='/dev/null' -----------confdefs.h.-----------/* confdefs.h */ configure: exit 0 |
I have been using clearlinux to compile opnewrt firmware before, but recently it doesn't work.
I tried reinstalling the system, but the problem persists. Even compiling past released firmware gives the same error, I don't understand how this could be caused, everything was working fine until a certain system update.
Currently my system version is 37730, I tested 37760 also doesn't work, but I don't know how to fix this problem.
Here is part of the error code:
make[5]: Leaving directory '/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/zlib'
make[5]: Entering directory '/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libbacktrace'
make all-am
make[6]: Entering directory '/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libbacktrace'
true DO=all multi-do # make
make[6]: Leaving directory '/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libbacktrace'
make[5]: Leaving directory '/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libbacktrace'
make[5]: Entering directory '/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[5]: Leaving directory '/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/libcpp'
Configuring in ./libcody
configure: loading cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking maintainer-mode...
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ is for C++11... no
configure: error: C++11 is required
make[4]: *** [Makefile:7491: configure-libcody] Error 1
make[4]: Leaving directory '/home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial'
make[3]: *** [Makefile:37: /home/m/openwrt/build_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/gcc-11.3.0-initial/.built] Error 2
make[3]: Leaving directory '/home/m/openwrt/toolchain/gcc/initial'
time: toolchain/gcc/initial/compile#0.50#0.32#0.91
ERROR: toolchain/gcc/initial failed to build.
make[2]: *** [toolchain/Makefile:97: toolchain/gcc/initial/compile] Error 1
make[2]: Leaving directory '/home/m/openwrt'
make[1]: *** [toolchain/Makefile:93: /home/m/openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-11.3.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/home/m/openwrt'
make: *** [/home/m/openwrt/include/toplevel.mk:231:world] Error 2
The text was updated successfully, but these errors were encountered: