From owner-freebsd-stable@FreeBSD.ORG Wed Nov 14 14:41:28 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 869147D1 for ; Wed, 14 Nov 2012 14:41:28 +0000 (UTC) (envelope-from alie@affle.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2FA928FC12 for ; Wed, 14 Nov 2012 14:41:27 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fo13so640260vcb.13 for ; Wed, 14 Nov 2012 06:41:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=xWbbkUpSNmVG/R2zgs2fJRYaxgjSRoW0N1p3niAbUZc=; b=YzsUYMapFWsCEuxGgSqh8Cha2ZDrckm4DL4wy1mwZlQoe40igmBzNqp3qV9FzVkWbp +cTo7T1FKXP8AdFxZ5jfWBxAyAH/eiEMJzMqBP+XETz/Ey00qTqN5lUy02VUXKVugxoZ B+2a1Cor8Aa5THaR4X1MdlKq8keGegEkEMBUROwmMksRAzCRKJBNRCGGUGKPQxGdtqGA bAIgz3TEPnUOsXqDEwVOTn4vWmBV6N9adeXPilO8+WreSiBEbtItQg8QD+d01cPjWP2z ClwAkJvpY5MQFXtfOtZlamdAIvqqU6Y6gViguVgXXIfukYMSCdwL2GjJO0KhRj3L1DMq xgMg== MIME-Version: 1.0 Received: by 10.52.29.138 with SMTP id k10mr2282173vdh.53.1352904087244; Wed, 14 Nov 2012 06:41:27 -0800 (PST) Received: by 10.58.178.234 with HTTP; Wed, 14 Nov 2012 06:41:26 -0800 (PST) In-Reply-To: References: <50A390BE.1090702@FreeBSD.org> Date: Wed, 14 Nov 2012 22:41:26 +0800 Message-ID: Subject: Re: Compilation error while compiling FreeBSD9-STABLE with Clang From: Alie Tan To: Alexandre X-Gm-Message-State: ALoCoQkk1nF5dtt5hZep3ZrA+6sB2JTM9FhVn+POgZ+xUur2pAv1wjzLsYT9kSHNm1PDWHaCP8xa Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-stable@freebsd.org" , Dimitry Andric X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 14:41:28 -0000 Ok thanks. I will try again and delete the src folder before making any compilation. Regards, Alie Tan On Wednesday, November 14, 2012, Alexandre wrote: > On Wed, Nov 14, 2012 at 3:02 PM, Alie Tan wrote: >> Hi >> >> Mine is already the latest. I slready synched my src today. Seems r242907 >> only for i386? Cmiiw. >> >> Regards, >> Alie T >> >> On Wednesday, November 14, 2012, Dimitry Andric wrote: >>> On 2012-11-14 04:05, Alie Tan wrote: >>>> >>>> I got compilation error while compiling FreeBSD9-STABLE with Clang: >>>> -m32 -c /usr/src/sys/boot/i386/boot2/sio.S >>>> clang: warning: the clang compiler does not support '-fno-unit-at-a-time' >>>> ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o >>>> boot2.out /usr/obj/usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o >>>> sio.o >>>> objcopy -S -O binary boot2.out boot2.bin >>>> btxld -v -E 0x2000 -f bin -b >>>> /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o >>>> boot2.ld -P 1 boot2.bin >>>> kernel: ver=1.02 size=690 load=9000 entry=9010 map=16M pgctl=1:1 >>>> client: fmt=bin size=1575 text=0 data=0 bss=0 entry=0 >>>> output: fmt=bin size=1e05 text=200 data=1c05 org=0 entry=0 >>>> -5 bytes available >>>> *** [boot2] Error code 1 >>> >>> Please update your source tree to at least r242907. >>> > Hi, > I encountered the problem, but has been resolved yesterday. > > # uname -a > 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r242957: Tue Nov 13 15:24:22 > CET 2012 root@DL380G4:/usr/obj/usr/src/sys/GENERIC amd64 >