ports/161029: devel/ccache doesn't fully support clang yet
Volodymyr Kostyrko
c.kworr at gmail.com
Mon Sep 26 06:20:09 UTC 2011
>Number: 161029
>Category: ports
>Synopsis: devel/ccache doesn't fully support clang yet
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 26 06:20:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Volodymyr Kostyrko
>Release: HEAD
>Organization:
None
>Environment:
FreeBSD vux.3501.lan 9.0-BETA2 FreeBSD 9.0-BETA2 #1: Tue Sep 20 16:07:04 EEST 2011 arcade at vux.3501.lan:/usr/obj/usr/src/sys/MINIMAL amd64
>Description:
Most details are noted at https://bugzilla.samba.org/show_bug.cgi?id=8460. WIP.
The failing port is graphics/giblib but the damage to the packages might be severe - evrerything that depends on libtool can be corrupted.
>How-To-Repeat:
Rebuild libtool with clang having ccache enabled. Try build any libtool based library and you will get:
clang: warning: argument unused during compilation: '-fpic'
building shared library xxxxxxx.so.x
ld: xxxxxx.So: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
xxxxxx.So: could not read symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
>Fix:
Remove clang and clang++ from the compilers leaving a note that they could be readded later. This way the links to clang and clang++ would not be added by default and everything would work fine. Anyone can add clang and clang++ to EXTRA_COMPILERS to make use of ccache.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list