Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420609 - dev-libs/pcc-libs-1.0.0: redefinition of builtin functions causes build failures with Clang
Summary: dev-libs/pcc-libs-1.0.0: redefinition of builtin functions causes build failu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: Normal QA (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords: Inclusion, PATCH, REVIEWED
Depends on:
Blocks: freebsd-clang-3.1
  Show dependency tree
 
Reported: 2012-06-11 00:20 UTC by Richard Yao
Modified: 2012-06-11 00:29 UTC (History)
0 users

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


Attachments
Patch to fix build failure (pcc-libs-1.0.0-check-builtin.patch,1.18 KB, patch)
2012-06-11 00:20 UTC, Richard Yao
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao gentoo-dev 2012-06-11 00:20:22 UTC
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.
Comment 1 Richard Yao gentoo-dev 2012-06-11 00:29:25 UTC
Patch committed.