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

2011-08-18 Thread Alexander Best
On Thu Aug 18 11, Dimitry Andric wrote: > On 2011-08-18 07:01, Alexander Best wrote: > >i'm getting this error, when trying to make target buildwork with clang. > > You mean with "make target buildwork", that you are running "make > buildworld TARGET=whatever", right? > > ... > >this is the error

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

2011-08-18 Thread Dimitry Andric
On 2011-08-18 19:35, Alexander Best wrote: ... ld: Relocatable linking with relocations from format elf64-x86-64-freebsd (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported Most likely, this is because you are forcing CC=clang, which does not work as expected. Can you please post

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

2011-08-18 Thread Kostik Belousov
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 recommen

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

2011-08-18 Thread Warner Losh
We really need a 'SYSTEM_COMPILER={gcc,clang,xxx}' sort of knob. Warner On Aug 18, 2011, at 2:04 PM, Kostik Belousov wrote: > 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++ >> >>