Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jun 2011 01:27:11 +0400
From:      Pan Tsu <inyaoo@gmail.com>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: [ANNOUNCE]: clang compiling ports
Message-ID:  <86d3i8b3dc.fsf@gmail.com>
In-Reply-To: <86ei2ocjg2.fsf@gmail.com> (Pan Tsu's message of "Tue, 21 Jun 2011 00:54:37 %2B0400")
References:  <20110620153753.GA41541@freebsd.org> <86ei2ocjg2.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Pan Tsu <inyaoo@gmail.com> writes:

> Roman Divacky <rdivacky@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d3i8b3dc.fsf>