From owner-freebsd-toolchain@FreeBSD.ORG Thu Aug 18 06:47:55 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 C1516106564A; Thu, 18 Aug 2011 06:47:55 +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 83E108FC0A; Thu, 18 Aug 2011 06:47:55 +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 12C8D5C37; Thu, 18 Aug 2011 08:47:54 +0200 (CEST) Message-ID: <4E4CB59B.3000005@FreeBSD.org> Date: Thu, 18 Aug 2011 08:47:55 +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> In-Reply-To: <20110818050142.GA96873@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 06:47:55 -0000 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 i'm getting: > > ===> lib/csu/i386-elf (obj,depend,all,install) ... > clang -O2 -pipe -fno-strict-aliasing -fno-omit-frame-pointer -frename-registers -I/usr/git-freebsd-head/lib/csu/i386-elf/../common -I/usr/git-freebsd-head/lib/csu/i386-elf/../../libc/include -DSTRIP_FBSDID -std=gnu99 -Wsystem-headers -Wall -Wno-format-y2k -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c /usr/git-freebsd-head/lib/csu/i386-elf/crt1_s.S > clang: warning: argument unused during compilation: '-frename-registers' > ld -m elf_i386_fbsd -Y P,/usr/obj/usr/git-freebsd-head/lib32/usr/lib32 -o gcrt1.o -r crt1_s.o gcrt1_c.o > 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?