[Bug build/32494] New: Compilation issue with GCC 14.2.1

vortexilation at gmail dot com sourceware-bugzilla@sourceware.org
Sun Dec 22 18:18:41 GMT 2024


https://sourceware.org/bugzilla/show_bug.cgi?id=32494

            Bug ID: 32494
           Summary: Compilation issue with GCC 14.2.1
           Product: glibc
           Version: 2.41
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: vortexilation at gmail dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

When compiling glibc latest master with GCC 14.2.1 /
e883a7082fecfd85694b275bec4a2e428ac9a081 /
https://github.com/gcc-mirror/gcc/commit/e883a7082fecfd85694b275bec4a2e428ac9a081

I am getting the following : 
-------------------------------------------------------------------------------

In file included from <command-line>:
./../include/libc-symbols.h:665:3: error: expected ';' before '__typeof'
  665 |   __typeof (type_name) *name##_ifunc (__VA_ARGS__)
         \
      |   ^~~~~~~~
./../include/libc-symbols.h:676:3: note: in expansion of macro
'__ifunc_resolver'
  676 |   __ifunc_resolver (type_name, name, expr, init, static, __VA_ARGS__)
      |   ^~~~~~~~~~~~~~~~
./../include/libc-symbols.h:703:3: note: in expansion of macro '__ifunc_args'
  703 |   __ifunc_args (type_name, name, expr, init, arg)
      |   ^~~~~~~~~~~~
./../include/libc-symbols.h:790:3: note: in expansion of macro '__ifunc'
  790 |   __ifunc (redirected_name, name, expr, void, INIT_ARCH)
      |   ^~~~~~~
../sysdeps/x86_64/multiarch/memchr.c:29:1: note: in expansion of macro
'libc_ifunc_redirected'
   29 | libc_ifunc_redirected (__redirect_memchr, memchr, IFUNC_SELECTOR ());
      | ^~~~~~~~~~~~~~~~~~~~~
make[5]: ***
[/home/user/works/openwrt/build_dir/toolchain-x86_64_gcc-14.3.0_glibc/glibc-2.41-final/sysd-rules:655:
/home/user/works/openwrt/build_dir/toolchain-x86_64_gcc-14.3.0_glibc/glibc-2.41-final/string/memchr.o]
Error 1
-------------------------------------------------------------------------------

The issue seems started at commit 494eb254c37507e836b5c791a3dbd8552777ddf7 /
Add include/libc-misc.h

It doesn't happened/compiled fine with commit below it or
56cdc529fb553a307be459df3f1be90d1a231f0a / Add test-config-cflags-float-store
for -ffloat-store

gcc --version : 
x86_64-openwrt-linux-gnu-gcc (OpenWrt GCC 14.3.0 r28336+39-f71ce1c34e) 14.2.1
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc commit hash : e883a7082fecfd85694b275bec4a2e428ac9a081

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list