https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114216
Bug ID: 114216
Summary: gnu2x: error: too many arguments to function ‘host_fn’
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgomp
Assignee: unassigned at gcc dot gnu.org
Reporter: jeffrey.cliff at gmail dot com
CC: jakub at gcc dot gnu.org
Target Milestone: ---
tl;dr : gcc fails to build, consistently failing at
"checking for library containing gettext..."
with error
../../../libgomp/target.c: In function ‘gomp_target_rev’:
../../../libgomp/target.c:3782:3: error: too many arguments to function
‘host_fn’
3782 | host_fn (devaddrs);
| ^~~
when building gcc with CFLAGS=" -std=gnu2x "
system installed version of gcc:
system: lfs no microsoft
https://git.freecumextremist.com/themusicgod1/LFS-no-microsoft Linux fatima
6.7.0-gnm-c23lfs #1 SMP PREEMPT_DYNAMIC Tue Jan 9 15:37:28 CST 2024 x86_64
GNU/Linux. (ie linux-libre 6.7 with patch to allow it to work compile with
-std=gnu23 on a custom (Free) LFS system)
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/14.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/usr --disable-multilib
--with-system-zlib --enable-default-ssp --disable-fixincludes
--enable-languages=c,c++,fortran
CFLAGS=" -Oz ";
CXXFLAGS=" -Os ";
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240220 (experimental) (GCC)
gcc being built:
gcc version 14.0.1 20240220 (experimental) (GCC)
CFLAGS: -std=gnu2x
CXXFLAGS: (none)
Configured with: --prefix=/usr --disable-multilib
--with-system-zlib--enable-default-ssp --disable-fixincludes
--enable-languages=c,c++,fortran;
first observed in gcc 13.2 (however, i could not find anything in git bisect
history that would suggest post-2020 that this would work)
I get that gnu2x is "experimental and incomplete", but it really does seem like
something specific is broken at that point that should be
documented...somewhere, and this represents an actual
bug/not-yet-working-functionality thing