From owner-freebsd-toolchain@FreeBSD.ORG Tue Jan 4 20:02:09 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 4F0801065673; Tue, 4 Jan 2011 20:02:09 +0000 (UTC) Date: Tue, 4 Jan 2011 20:02:09 +0000 From: Alexander Best To: freebsd-toolchain@freebsd.org Message-ID: <20110104200208.GA70255@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: clang fails to crossbuild world for i386 on amd64 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: Tue, 04 Jan 2011 20:02:09 -0000 hi there, just experienced this failure. the command line i used is right at the end: **** -------------------------------------------------------------- >>> stage 4.2: building libraries -------------------------------------------------------------- cd /usr/subversion-src; MAKEOBJDIRPREFIX=/usr/obj/i386.i386 MACHINE_ARCH=i386 MACHINE=i386 CPUTYPE= GROFF_BIN_PATH=/usr/obj/i386.i386/usr/subversion-src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/i386.i386/usr/subversion-src/tmp/legacy/usr/share/groff_font GROFF_TMAC cd /usr/subversion-src; /usr/obj/usr/subversion-src/make.amd64/make -f Makefile.inc1 _prereq_libs; /usr/obj/usr/subversion-src/make.amd64/make -f Makefile.inc1 _startup_libs; /usr/obj/usr/subversion-src/make.amd64/make -f Makefile.inc1 _prebuild_libs; /usr/obj/usr/subver ===> gnu/lib/libssp/libssp_nonshared (obj,depend,all,install) clang -v -O2 -pipe -DHAVE_CONFIG_H -I/usr/subversion-src/gnu/lib/libssp/libssp_nonshared/.. -I/usr/subversion-src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp -I/usr/subversion-src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/include - FreeBSD clang version 2.8 (tags/RELEASE_28 115870) 20101007 Target: x86_64-undermydesk-freebsd9.0 Thread model: posix "/usr/obj/i386.i386/usr/subversion-src/tmp/usr/bin/clang" -cc1 -triple x86_64-undermydesk-freebsd9.0 -S -disable-free -main-file-name ssp-local.c -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -g -resource-dir /usr/obj/i386.i386/u clang -cc1 version 2.8 based upon llvm 2.8svn hosted on x86_64-undermydesk-freebsd9.0 ignoring nonexistent directory "/usr/obj/i386.i386/usr/subversion-src/tmp/usr/lib/clang/2.8/include" #include "..." search starts here: #include <...> search starts here: /usr/subversion-src/gnu/lib/libssp/libssp_nonshared/.. /usr/subversion-src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp /usr/subversion-src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/include /usr/obj/i386.i386/usr/subversion-src/tmp/usr/include/clang/2.8 /usr/obj/i386.i386/usr/subversion-src/tmp/usr/include End of search list. "/usr/obj/i386.i386/usr/subversion-src/tmp/usr/bin/as" -o ssp-local.o /tmp/cc-dFZCvC.s /tmp/cc-dFZCvC.s: Assembler messages: /tmp/cc-dFZCvC.s:33: Error: suffix or operands invalid for `push' /tmp/cc-dFZCvC.s:35: Error: suffix or operands invalid for `movq' /tmp/cc-dFZCvC.s:38: Error: suffix or operands invalid for `pop' clang: error: assembler command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop in /usr/subversion-src/gnu/lib/libssp/libssp_nonshared. *** Error code 1 Stop in /usr/subversion-src. *** Error code 1 Stop in /usr/subversion-src. *** Error code 1 Stop in /usr/subversion-src. *** Error code 1 Stop in /usr/subversion-src. make buildworld TARGET=i386 72,41s user 17,42s system 66% cpu 2:14,98 total **** this is on amd64 and HEAD (r216877). can anybody verify this? with gcc as compiler everything works just fine. cheers. alex -- a13x From owner-freebsd-toolchain@FreeBSD.ORG Tue Jan 4 20:10:13 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 331DB106566B; Tue, 4 Jan 2011 20:10:13 +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 E99988FC14; Tue, 4 Jan 2011 20:10:12 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:6585:4c82:cc96:98f0] (unknown [IPv6:2001:7b8:3a7:0:6585:4c82:cc96:98f0]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 50A415C5A; Tue, 4 Jan 2011 21:10:12 +0100 (CET) Message-ID: <4D237EA4.80205@FreeBSD.org> Date: Tue, 04 Jan 2011 21:10:12 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.14pre) Gecko/20110104 Lanikai/3.1.8pre MIME-Version: 1.0 To: Alexander Best References: <20110104200208.GA70255@freebsd.org> In-Reply-To: <20110104200208.GA70255@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-toolchain@freebsd.org Subject: Re: clang fails to crossbuild world for i386 on amd64 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: Tue, 04 Jan 2011 20:10:13 -0000 On 2011-01-04 21:02, Alexander Best wrote: > just experienced this failure. the command line i used is right at the end: ... > /tmp/cc-dFZCvC.s: Assembler messages: > /tmp/cc-dFZCvC.s:33: Error: suffix or operands invalid for `push' Crosscompiling isn't supported (yet) with clang. They're apparently working on it... contributions welcome. :) From owner-freebsd-toolchain@FreeBSD.ORG Tue Jan 4 20:12:06 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 51496106566C; Tue, 4 Jan 2011 20:12:06 +0000 (UTC) Date: Tue, 4 Jan 2011 20:12:06 +0000 From: Alexander Best To: Dimitry Andric Message-ID: <20110104201206.GA71676@freebsd.org> References: <20110104200208.GA70255@freebsd.org> <4D237EA4.80205@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D237EA4.80205@FreeBSD.org> Cc: freebsd-toolchain@freebsd.org Subject: Re: clang fails to crossbuild world for i386 on amd64 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: Tue, 04 Jan 2011 20:12:06 -0000 On Tue Jan 4 11, Dimitry Andric wrote: > On 2011-01-04 21:02, Alexander Best wrote: > >just experienced this failure. the command line i used is right at the end: > ... > >/tmp/cc-dFZCvC.s: Assembler messages: > >/tmp/cc-dFZCvC.s:33: Error: suffix or operands invalid for `push' > > Crosscompiling isn't supported (yet) with clang. They're apparently > working on it... contributions welcome. :) thanks for the hint. wasn't aware clang doesn't support it yet. cheers. alex -- a13x