From owner-freebsd-toolchain@FreeBSD.ORG Thu Aug 18 19:54:42 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F713106566C; Thu, 18 Aug 2011 19:54:42 +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 10B508FC14; Thu, 18 Aug 2011 19:54:42 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:446f:542c:30ba:d075] (unknown [IPv6:2001:7b8:3a7:0:446f:542c:30ba:d075]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E554D5C37; Thu, 18 Aug 2011 21:54:40 +0200 (CEST) Message-ID: <4E4D6E01.40905@FreeBSD.org> Date: Thu, 18 Aug 2011 21:54:41 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Alexander Best References: <20110818050142.GA96873@freebsd.org> <4E4CB59B.3000005@FreeBSD.org> <20110818173508.GA92360@freebsd.org> In-Reply-To: <20110818173508.GA92360@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-toolchain@freebsd.org Subject: Re: Relocatable linking with relocations from format elf64-x86-64-freebsd (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2011 19:54:42 -0000 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 your /etc/make.conf and >> /etc/src.conf files, and show us any environment variables related to >> buildworld? Also, how exactly are you running make buildworld? > > i've attached my src.conf, my make.conf and the output of 'env'. nothing > special, i'm using a simple 'make buildworld'. 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 : .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