From owner-freebsd-current@FreeBSD.ORG Wed May 4 07:00:26 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33B081065673 for ; Wed, 4 May 2011 07:00:26 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id E72078FC12 for ; Wed, 4 May 2011 07:00:25 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:e12e:ab0b:b5d8:d1f0] (unknown [IPv6:2001:7b8:3a7:0:e12e:ab0b:b5d8:d1f0]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 22BA45C59; Wed, 4 May 2011 09:00:25 +0200 (CEST) Message-ID: <4DC0F98D.3020601@FreeBSD.org> Date: Wed, 04 May 2011 09:00:29 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110415 Lanikai/3.1.11pre MIME-Version: 1.0 To: "O. Hartmann" References: <4DBDB8D4.6050102@mail.zedat.fu-berlin.de> <4DC04F29.2050401@mail.zedat.fu-berlin.de> In-Reply-To: <4DC04F29.2050401@mail.zedat.fu-berlin.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Cc: Olivier Smedts , freebsd-current@freebsd.org Subject: Re: Building FreeBSD 9.0-CUR/amd64 with CLANG fails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 07:00:26 -0000 On 2011-05-03 20:53, O. Hartmann wrote: =2E.. >>> ld -m elf_i386_fbsd -Y P,/usr/obj/usr/src/lib32/usr/lib32 =EF=BF=BD-o= gcrt1.o -r >>> crt1_s.o gcrt1_c.o >>> ld: Relocatable linking with relocations from format elf64-x86-64-fre= ebsd >>> (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported =2E.. > Today, I tried again, after CLANG/LLVM has been updated to version 3.0.= > Same error. > > This is the addendum I made to the /etc/make.conf: > > ## > ## CLANG > ## > .if defined(USE_CLANG) > .if !defined(CC) || ${CC} =3D=3D "cc" > CC=3Dclang > .endif > .if !defined(CXX) || ${CXX} =3D=3D "c++" > CXX=3Dclang++ > .endif > # Don't die on warnings > NO_WERROR=3D > WERROR=3D > # Don't forget this when using Jails! > NO_FSCHG=3D > .endif Ok, that looks good, I use a similar construction. However, in my case it works fine, so there must be something special on your system that breaks the build. What happens here, is that the 32-bit stage on amd64 fails, because it tries to link together 64-bit and 32-bit object files, which is not allowed. This can occur if Makefile.inc1 cannot set CC to the correct value, but there might also be something else going on. To debug this further, can you please post: - Your full /etc/make.conf - Your full /etc/src.conf - Any modifications you made to your source tree - The specific procedure you use for buildworld - An url to a full build log (don't post it to the list, because it will be rather large)