Recently rebased and now can't build gcc
Robert Marko
robimarko at gmail.com
Fri May 2 13:36:56 PDT 2025
On Fri, 2 May 2025 at 22:30, Philip Prindeville via openwrt-devel
<openwrt-devel at lists.openwrt.org> wrote:
>
> The sender domain has a DMARC Reject/Quarantine policy which disallows
> sending mailing list messages using the original "From" header.
>
> To mitigate this problem, the original message has been wrapped
> automatically by the mailing list software.
>
>
> ---------- Forwarded message ----------
> From: Philip Prindeville <philipp_subx at redfish-solutions.com>
> To: openwrt-devel at lists.openwrt.org
> Cc:
> Bcc:
> Date: Fri, 2 May 2025 14:29:36 -0600
> Subject: Recently rebased and now can't build gcc
> I did a rebase this morning and now I’m seeing the following:
>
> make[3]: Entering directory '/home/philipp/lede/toolchain/gcc/initial'
> (cd /home/philipp/lede/build_dir/toolchain-x86_64_gcc-14.2.0_musl/gcc-14.2.0-initial && rm -f config.cache; ; SHELL="bash" /home/philipp/lede/build_dir/toolchain-x86_64_gcc-14.2.0_musl/gcc-14.2.0/configure --with-bugurl=http://bugs.openwrt.org/ --with-pkgversion="OpenWrt GCC 14.2.0 r29430-57841c83d9" --prefix=/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-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-system-zlib=/home/philipp/lede/staging_dir/host --with-zstd=/home/philipp/lede/staging_dir/host --with-gmp=/home/philipp/lede/staging_dir/host --with-mpfr=/home/philipp/lede/staging_dir/host --with-mpc=/home/philipp/lede/staging_dir/host --disable-decimal-float --with-diagnostics-color=auto-if-env --enable-__cxa_atexit --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new CFLAGS="-O2 -I/home/philipp/lede/staging_dir/host/include -pipe" CXXFLAGS="-O2 -I/home/philipp/lede/staging_dir/host/include -pipe" CFLAGS_FOR_TARGET="-Os -pipe -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CXXFLAGS_FOR_TARGET="-Os -pipe -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" GOCFLAGS_FOR_TARGET="-Os -pipe -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" --with-newlib --with-sysroot=/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl --enable-languages=c --disable-shared --disable-threads );
> bash: -c: line 1: syntax error near unexpected token `;'
> bash: -c: line 1: `(cd /home/philipp/lede/build_dir/toolchain-x86_64_gcc-14.2.0_musl/gcc-14.2.0-initial && rm -f config.cache; ; SHELL="bash" /home/philipp/lede/build_dir/toolchain-x86_64_gcc-14.2.0_musl/gcc-14.2.0/configure --with-bugurl=http://bugs.openwrt.org/ --with-pkgversion="OpenWrt GCC 14.2.0 r29430-57841c83d9" --prefix=/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-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-system-zlib=/home/philipp/lede/staging_dir/host --with-zstd=/home/philipp/lede/staging_dir/host --with-gmp=/home/philipp/lede/staging_dir/host --with-mpfr=/home/philipp/lede/staging_dir/host --with-mpc=/home/philipp/lede/staging_dir/host --disable-decimal-float --with-diagnostics-color=auto-if-env --enable-__cxa_atexit --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new CFLAGS="-O2 -I/home/philipp/lede/staging_dir/host/include -pipe" CXXFLAGS="-O2 -I/home/philipp/lede/staging_dir/host/include -pipe" CFLAGS_FOR_TARGET="-Os -pipe -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CXXFLAGS_FOR_TARGET="-Os -pipe -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" GOCFLAGS_FOR_TARGET="-Os -pipe -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" --with-newlib --with-sysroot=/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl --enable-languages=c --disable-shared --disable-threads );'
> make[3]: *** [Makefile:31: /home/philipp/lede/build_dir/toolchain-x86_64_gcc-14.2.0_musl/gcc-14.2.0-initial/.configured] Error 2
> make[3]: Leaving directory '/home/philipp/lede/toolchain/gcc/initial'
> time: toolchain/gcc/initial/compile#0.03#0.03#0.06
> ERROR: toolchain/gcc/initial failed to build.
> make[2]: *** [toolchain/Makefile:93: toolchain/gcc/initial/compile] Error 1
> make[2]: Leaving directory '/home/philipp/lede'
> make[1]: *** [toolchain/Makefile:89: /home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl/stamp/.toolchain_compile] Error 2
> make[1]: Leaving directory '/home/philipp/lede'
> make: *** [/home/philipp/lede/include/toplevel.mk:233: world] Error 2
> philipp at ubuntu24:~/lede$
>
>
> From what I can tell it’s the “; ;” that’s happening. I’m guessing that something was supposed to expand after the first semicolon but didn’t?
>
> Where does this command come from and I’ll try to trace down the null expansion.
I have already reverted the culprit:
https://github.com/openwrt/openwrt/commit/bf9138145106f91a5b367f9ac2bf43582e92f9c1
Rebase to HEAD and GCC will work again.
Regards,
Robert
>
> Thanks
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list