Bug 161029 - devel/ccache doesn't fully support clang yet
devel/ccache doesn't fully support clang yet
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Emanuel Haupt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-26 07:20 UTC by c.kworr
Modified: 2011-10-01 22:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description c.kworr 2011-09-26 07:20:08 UTC
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.

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.
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)
Comment 1 Edwin Groothuis freebsd_committer 2011-09-26 07:20:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ehaupt

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter freebsd_committer 2011-10-01 22:49:37 UTC
ehaupt      2011-10-01 21:49:28 UTC

  FreeBSD ports repository

  Modified files:
    devel/ccache         Makefile 
  Added files:
    devel/ccache/files   pkg-message-clang 
  Log:
  Add options to create compiler links for clang and llvm. Also add a warning
  that clang is not yet fully supported by ccache.
  
  PR:             161029 (based on)
  Submitted by:   Volodymyr Kostyrko <c.kworr@gmail.com>
  
  Revision  Changes    Path
  1.64      +17 -2     ports/devel/ccache/Makefile
  1.1       +7 -0      ports/devel/ccache/files/pkg-message-clang (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Emanuel Haupt freebsd_committer 2011-10-01 22:52:52 UTC
State Changed
From-To: open->closed

Committed, thanks.