From owner-freebsd-current@FreeBSD.ORG Wed Sep 12 10:47:17 2012 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 89CD7106564A for ; Wed, 12 Sep 2012 10:47:17 +0000 (UTC) (envelope-from ed@extraordinarymachine.nl) Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by mx1.freebsd.org (Postfix) with ESMTP id 1E5228FC16 for ; Wed, 12 Sep 2012 10:47:16 +0000 (UTC) Received: from jazzed.meewis.home (a80-101-71-20.adsl.xs4all.nl [80.101.71.20]) by smtp-vbr10.xs4all.nl (8.13.8/8.13.8) with ESMTP id q8CAkejx067085 for ; Wed, 12 Sep 2012 12:46:40 +0200 (CEST) (envelope-from ed@extraordinarymachine.nl) Received: from [192.168.1.254] (unknown [192.168.1.254]) by jazzed.meewis.home (Postfix) with ESMTP id 30D745C0C for ; Wed, 12 Sep 2012 12:46:40 +0200 (CEST) Message-ID: <5050680C.4020402@extraordinarymachine.nl> Date: Wed, 12 Sep 2012 12:46:36 +0200 From: Edward Meewis User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Building world with clang ToT 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, 12 Sep 2012 10:47:17 -0000 Hi, Has anyone recently built FreeBSD10-current with clang on a FreeBSD9 amd64 system? I've bumped into a number of issues. Mainly, buildworld picks up the old system includes, which miss newly introduced symbols; same thing with libraries. I fixed that by pointing compiler and linker to /usr/obj/FreeBSD-HEAD/tmp/include and lib. Building stops in lib/libstand: /usr/home/emeewis/src/FreeBSD-HEAD/lib/libstand/i386/_setjmp.S:50:82: error: register %rbp is only available in 64-bit mode .text; .p2align 4,0x90; .globl _setjmp; .type _setjmp,@function; _setjmp:; pushq %rbp; movq %rsp,%rbp; call .mcount; popq %rbp; 9: Libstand is build in i386 mode, but includes machine/asm.h in _setjmp.S. Is there a way to force it to use i386/asm.h? I had a go with gcc, but I got the same results... -- Ed.