gcc 16.1.0 build failure
Jonathan Wakely
jwakely.gcc@gmail.com
Thu Apr 30 15:00:43 GMT 2026
On Thu, 30 Apr 2026 at 14:15, Josué Andrade Gomes via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> Build failing on Ubuntu 24.04.
>
> Environment:
> PWD=/home/josue/Projects/gcc-16.1.0
> HOME=/home/josue
> SHLVL=1
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> _=/usr/bin/env
>
> Configure:
> ./configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu
Don't build in the source directory.
https://gcc.gnu.org/wiki/InstallingGCC
> --target=x86_64-linux-gnu --prefix=/usr/local/gcc-16.1.0
> --enable-checking=release --enable-languages=c,c++ --disable-multilib
> --program-suffix=-16.1.0
>
> Build (excerpt)
>
> $ make
> ...
> Checking multilib configuration for libgomp...
> Configuring stage 1 in x86_64-linux-gnu/libgomp
> ...
> checking for x86_64-linux-gnu-gcc...
> /home/josue/Projects/gcc-16.1.0/host-x86_64-linux-gnu/gcc/xgcc
> -B/home/josue/Projects/gcc-16.1.0/host-x86_64-linux-gnu/gcc/
> -B/usr/local/gcc-16.1.0/x86_64-linux-gnu/bin/
> -B/usr/local/gcc-16.1.0/x86_64-linux-gnu/lib/ -isystem
> /usr/local/gcc-16.1.0/x86_64-linux-gnu/include -isystem
> /usr/local/gcc-16.1.0/x86_64-linux-gnu/sys-include -fno-checking
> checking whether the C compiler works... no
> configure: error: in `/home/josue/Projects/gcc-16.1.0/x86_64-linux-gnu/libgomp':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
> make[2]: *** [Makefile:23007: configure-stage1-target-libgomp] Error 77
> make[2]: Leaving directory '/home/josue/Projects/gcc-16.1.0'
> make[1]: *** [Makefile:26201: stage1-bubble] Error 2
> make[1]: Leaving directory '/home/josue/Projects/gcc-16.1.0'
> make: *** [Makefile:1140: all] Error 2
>
> libgomp config.log shows (excerpt)
>
> configure:3905:
> /home/josue/Projects/gcc-16.1.0/host-x86_64-linux-gnu/gcc/xgcc
> -B/home/josue/Projects/gcc-16.1.0/host-x86_64-linux-gnu/gcc/
> -B/usr/local/gcc-16.1.0/x86_64-linux-gnu/bin/
> -B/usr/local/gcc-16.1.0/x86_64-linux-gnu/lib/ -isystem
> /usr/local/gcc-16.1.0/x86_64-linux-gnu/include -isystem
> /usr/local/gcc-16.1.0/x86_64-linux-gnu/sys-include -fno-checking -g
> -O2 conftest.c >&5
> /usr/bin/x86_64-linux-gnu-ld: cannot find -latomic_asneeded: No such
> file or directory
This has nothing to do with the build failure, you need to find the
last error in the log.
>
> libatomic_asneeded could be found here:
>
> bash-5.2$ find | grep libatomic_asneeded
> ./gcc/libatomic_asneeded.so
> ./gcc/libatomic_asneeded.a
>
> Any ideas? Config.log files can be provided if requested.
More information about the Gcc-help
mailing list