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

Bug 525174

Summary: sys-devel/gcc - --disable-libsanitizer if sys-libs/uclibc is without UCLIBC_HAS_WORDEXP
Product: Gentoo Linux Reporter: Lukas Lihotzki <lukas.lihotzki+gentoo>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Severity: normal CC: embedded
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Lukas Lihotzki 2014-10-12 16:41:01 UTC
libsanitizer requires wordexp. Therefore gcc has to be configured with --disable-libsanitizer if uclibc is configured without UCLIBC_HAS_WORDEXP.
By default, UCLIBC_HAS_WORDEXP is disabled.

Reproducible: Always

As a workaround, you can use package.env to disable libsanitizer for all uclibc toolchains:
cross-*-uclibc*/gcc no-wordexp-gcc.conf

Comment 1 SpanKY gentoo-dev 2014-10-19 05:43:22 UTC
i've made the sanitizer library a USE=sanitize flag.  you can disable that when your C library setup lacks functionality it needs.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-19 20:48:00 UTC
I don't think it makes a good default:

+       tc_version_is_at_least 4.8 && IUSE_DEF+=( sanitize )

*** This bug has been marked as a duplicate of bug 504200 ***