[ANNOUNCE]: clang compiling ports
Pan Tsu
inyaoo at gmail.com
Mon Jun 20 21:27:18 UTC 2011
Pan Tsu <inyaoo at gmail.com> writes:
> Roman Divacky <rdivacky at freebsd.org> writes:
>
>> Flz@ just run an exp-build with CC=clang and CXX=clang++. The results can be
>> seen here:
>>
>> http://pointyhat.freebsd.org/errorlogs/amd64-9-exp-latest/
>>
>> A lot of these failures are trivial to fix (ie. not respecting CC setting, etc.)
>> and prevent a lot of other ports from building.
>
> Any extra libtool patches? I'm curious how did you work around ports/155157
>
> foo.o: relocation R_X86_64_PC32 against symbol `bar' can not be used when
> making a shared object; recompile with -fPIC
>
> due to failing lt_cv_prog_compiler_pic_works check on clang warnings.
Looking closely at the logs it uses full path to the compiler. I tried
same and the error is gone. Apparently, smth is broken on my box when
clang is used together with ccache.
$ /usr/bin/clang -c -fPIC -DPIC -DPIC foo.c
$ CCACHE_RECACHE=1 ccache /usr/bin/clang -c -fPIC -DPIC -DPIC foo.c
clang: warning: argument unused during compilation: '-D PIC'
clang: warning: argument unused during compilation: '-D PIC'
Sorry for the noise.
More information about the freebsd-ports
mailing list