Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947243 - dev-libs/elfutils-0.191-r2: configuration failure on clang-musl with -std=c23
Summary: dev-libs/elfutils-0.191-r2: configuration failure on clang-musl with -std=c23
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-30 21:06 UTC by NHO
Modified: 2024-12-31 03:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo.clang-musl.txt,5.29 KB, text/plain)
2024-12-30 21:10 UTC, NHO
Details
configure log (config.log,85.32 KB, text/x-log)
2024-12-30 21:10 UTC, NHO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NHO 2024-12-30 21:06:37 UTC
checking whether symbol versioning is supported... no
configure: error: Symbol versioning is not supported.
                      Use --disable-symbol-versioning to build without.


Reproducible: Always
Comment 1 NHO 2024-12-30 21:10:15 UTC
Created attachment 915554 [details]
emerge --info
Comment 2 NHO 2024-12-30 21:10:32 UTC
Created attachment 915555 [details]
configure log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-30 21:13:43 UTC
```
configure:8957: clang -o conftest -D_FORTIFY_SOURCE=3 -O2 -pipe -std=c23  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -Wl,--build-id conftest.c -lstdc++   >&5
configure:8957: $? = 0
configure:8969: result: yes
configure:9034: checking whether symbol versioning is supported
configure:9048: clang -c -D_FORTIFY_SOURCE=3 -O2 -pipe -std=c23  conftest.c >&5
conftest.c:45:1: error: expected parameter declarator
   45 | NEW_VERSION (foo, ELFUTILS_12.12)
      | ^
conftest.c:43:43: note: expanded from macro 'NEW_VERSION'
   43 | #define NEW_VERSION(name, version)   asm (".symver " #name "," #name "@@@" #version);
      |                                           ^
conftest.c:45:1: error: expected ')'
conftest.c:43:43: note: expanded from macro 'NEW_VERSION'
   43 | #define NEW_VERSION(name, version)   asm (".symver " #name "," #name "@@@" #version);
      |                                           ^
conftest.c:45:1: note: to match this '('
conftest.c:43:42: note: expanded from macro 'NEW_VERSION'
   43 | #define NEW_VERSION(name, version)   asm (".symver " #name "," #name "@@@" #version);
      |                                          ^
conftest.c:45:1: error: a type specifier is required for all declarations
   45 | NEW_VERSION (foo, ELFUTILS_12.12)
      | ^
conftest.c:43:38: note: expanded from macro 'NEW_VERSION'
   43 | #define NEW_VERSION(name, version)   asm (".symver " #name "," #name "@@@" #version);
      |                                      ^
3 errors generated.
configure:9048: $? = 1
configure: failed program was:
| /* confdefs.h */
```

????

That said, we could just disable symbol versioning for musl.
Comment 4 NHO 2024-12-30 21:22:05 UTC
Problem was caused by -std=c23 left in CFLAGS, without it it builds