Summary: | dev-libs/pcc-libs-1.0.0: redefinition of builtin functions causes build failures with Clang | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Richard Yao (RETIRED) <ryao> |
Component: | [OLD] Development | Assignee: | Patrick Lauer <patrick> |
Status: | RESOLVED FIXED | ||
Severity: | QA | Keywords: | Inclusion, PATCH, REVIEWED |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 417789 | ||
Attachments: | Patch to fix build failure |
Patch committed. |
Created attachment 314921 [details, diff] Patch to fix build failure The following failure occurs when building with Clang: clang -O -I. -D__LITTLE_ENDIAN__=1 -Dos_freebsd -O2 -pipe -march=amdfam10 -mtune=amdfam10 -c bitcnt.c clang: warning: argument unused during compilation: '-I .' In file included from bitcnt.c:1: bitcnt.c:8:1: error: definition of builtin function '__builtin_clz' __builtin_clz(unsigned int v) ^ bitcnt.c:19:1: error: definition of builtin function '__builtin_ctz' __builtin_ctz(unsigned int v) ^ bitcnt.c:30:1: error: definition of builtin function '__builtin_clzl' __builtin_clzl(unsigned long v) ^ bitcnt.c:42:1: error: definition of builtin function '__builtin_ctzl' __builtin_ctzl(unsigned long v) ^ 4 errors generated. gmake[1]: *** [bitcnt.o] Error 1 I have attached a patch to fix this.