Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 919704

Summary: sys-devel/gcc: fails to build with `-Wl,--no-undefined-version` due to undefined versions in libatomic
Product: Gentoo Linux Reporter: Sandi (Sandy) Vujaković <sandyvujakovicj>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: normal CC: arsen
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gcc-13.2.1_p20231209:20231211-105534.log
emerge --info
The build logs tarball

Description Sandi (Sandy) Vujaković 2023-12-11 11:42:26 UTC
Created attachment 878657 [details]
gcc-13.2.1_p20231209:20231211-105534.log

When building snapshots of GCC 13.2.1, for the past month or so (maybe longer, I can't remember 😅), I've been getting errors when linking with `-Wl,--no-undefined-version` in my `LDFLAGS`. The following is a snippet of said errors:
```
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: acc_delete_finalize_async_array_h_: undefined version: OACC_2.5
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: acc_delete_finalize_async_64_h_: undefined version: OACC_2.5
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: acc_delete_finalize_async_32_h_: undefined version: OACC_2.5
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: acc_copyout_finalize_async_array_h_: undefined version: OACC_2.5
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: acc_copyout_finalize_async_64_h_: undefined version: OACC_2.5
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: acc_copyout_finalize_async_32_h_: undefined version: OACC_2.5
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: failed to set dynamic section sizes: bad value
```
Comment 1 Sandi (Sandy) Vujaković 2023-12-11 11:46:01 UTC
Created attachment 878658 [details]
emerge --info
Comment 2 Sandi (Sandy) Vujaković 2023-12-11 11:46:47 UTC
Created attachment 878659 [details]
The build logs tarball