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

Bug 824014

Summary: net-misc/dhcpcd-9.4.1: fails to build with asan ((.text+0xdc): undefined reference to `__cxa_guard_acquire')
Product: Gentoo Linux Reporter: Ivan Budiakov <werebear77>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
env
info

Description Ivan Budiakov 2021-11-16 11:41:17 UTC
Created attachment 751670 [details]
build.log

Hello!

dhcpcd-9.4.1 dont build after upgrade glibc to sys-libs/glibc-2.34-r2
Comment 1 Ivan Budiakov 2021-11-16 11:41:58 UTC
Created attachment 751674 [details]
env
Comment 2 Ivan Budiakov 2021-11-16 11:42:23 UTC
Created attachment 751678 [details]
info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-16 11:45:39 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libasan.a(sanitizer_posix_libcdep.o): in function `__sanitizer::GetAltStackSize()':
(.text+0xdc): undefined reference to `__cxa_guard_acquire'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x109): undefined reference to `__cxa_guard_release'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:73: dhcpcd] Error 1
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-16 11:46:37 UTC
Your emerge --info for dhcpcd has:
```
CFLAGS="-march=znver1 -O2 -pipe -fsanitize=address"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fsanitize=address -static-libasan -lasan"
```

1. This is an odd thing to do without mentioning it ;)
2. It's not glibc-related.
3. Foricng -static-libasan or -lasan in LDFLAGS is deprecated. You're supposed to only pass -fsanitize=address.
Comment 5 Ivan Budiakov 2021-11-16 11:59:35 UTC
Sorry my fall.
А couple of years ago Roy Marple asked me to put this up and I forgot to remove.


Can be closed.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-16 12:00:30 UTC
(In reply to Ivan Budiakov from comment #5)
> Sorry my fall.
> А couple of years ago Roy Marple asked me to put this up and I forgot to
> remove.
> 
> 
> Can be closed.

No problem :)