Relocatable linking with relocations from format elf64-x86-64-freebsd (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported

Kostik Belousov kostikbel at gmail.com
Thu Aug 18 20:36:06 UTC 2011


On Thu, Aug 18, 2011 at 09:54:41PM +0200, Dimitry Andric wrote:
> The problem is in your make.conf. Effectively, you are doing:
> 
> CC = clang
> CXX = clang++
> 
> which will not work, at least not for the 32-bit compat stage on amd64.
> Please use the following fragment instead, which is recommended on
> <http://wiki.freebsd.org/BuildingFreeBSDWithClang>:
> 
> .if !defined(CC) || ${CC} == "cc"
> CC=clang
> .endif
> .if !defined(CXX) || ${CXX} == "c++"
> CXX=clang++
> .endif
> .if !defined(CPP) || ${CPP} == "cpp"
> CPP=clang -E
> .endif

May be, add the commented out lines into share/examples/etc/make.conf ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20110818/5cb811eb/attachment.pgp


More information about the freebsd-toolchain mailing list