From owner-freebsd-current@FreeBSD.ORG Fri Sep 26 19:42:56 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E501C1065687; Fri, 26 Sep 2008 19:42:55 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout015.mac.com (asmtpout015.mac.com [17.148.16.90]) by mx1.freebsd.org (Postfix) with ESMTP id CDBB98FC08; Fri, 26 Sep 2008 19:42:55 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from alan-tablet.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp015.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K7T00G97IRHJ180@asmtp015.mac.com>; Fri, 26 Sep 2008 12:42:55 -0700 (PDT) Message-id: From: Marcel Moolenaar To: Peter Wemm In-reply-to: Date: Fri, 26 Sep 2008 12:42:53 -0700 References: <20080926124026.0570973039@freebsd-current.sentex.ca> <20080926125641.GU47828@deviant.kiev.zoral.com.ua> X-Mailer: Apple Mail (2.929.2) Cc: Kostik Belousov , current@freebsd.org, ia64@freebsd.org Subject: Re: [head tinderbox] failure on ia64/ia64 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: Fri, 26 Sep 2008 19:42:56 -0000 On Sep 26, 2008, at 12:19 PM, Peter Wemm wrote: > On Fri, Sep 26, 2008 at 8:05 AM, Marcel Moolenaar > wrote: >> >> On Sep 26, 2008, at 5:56 AM, Kostik Belousov wrote: >> >>> On Fri, Sep 26, 2008 at 08:40:25AM -0400, FreeBSD Tinderbox wrote: >>>> >>>> TB --- 2008-09-26 12:27:35 - tinderbox 2.3 running on >>>> freebsd-current.sentex.ca >>>> TB --- 2008-09-26 12:27:35 - starting HEAD tinderbox run for ia64/ >>>> ia64 >>>> TB --- 2008-09-26 12:27:35 - cleaning the object tree >>>> TB --- 2008-09-26 12:28:10 - cvsupping the source tree >>>> TB --- 2008-09-26 12:28:10 - /usr/bin/csup -r 3 -g -L 1 -h >>>> localhost -s >>>> /tinderbox/HEAD/ia64/ia64/supfile >>>> TB --- 2008-09-26 12:28:17 - building world (CFLAGS=-O -pipe) >>>> TB --- 2008-09-26 12:28:17 - cd /src >>>> TB --- 2008-09-26 12:28:17 - /usr/bin/make -B buildworld >>>>>>> >>>>>>> World build started on Fri Sep 26 12:28:19 UTC 2008 >>>>>>> Rebuilding the temporary build tree >>>>>>> stage 1.1: legacy release compatibility shims >>>>>>> stage 1.2: bootstrap tools >>>>>>> stage 2.1: cleaning up the object tree >>>>>>> stage 2.2: rebuilding the object tree >>>>>>> stage 2.3: build tools >>>>>>> stage 3: cross tools >>>>>>> stage 4.1: building includes >>>>>>> stage 4.2: building libraries >>>> >>>> [...] >>>> building static gcc library >>>> ranlib libgcc.a >>>> sh /src/tools/install.sh -C -o root -g wheel -m 444 libgcc_eh.a >>>> /obj/ia64/src/tmp/usr/lib >>>> sh /src/tools/install.sh -C -o root -g wheel -m 444 libgcc.a >>>> /obj/ia64/src/tmp/usr/lib >>>> ===> gnu/lib/csu (obj,depend,all,install) >>>> cc -O -pipe -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG - >>>> D__GLIBC__=3 >>>> -finhibit-size-directive -fno-inline-functions -fno-exceptions >>>> -fno-zero-initialized-in-bss -fno-zero-initialized-in-bss >>>> -fno-toplevel-reorder -I/src/gnu/lib/csu/../../../contrib/gcclibs/ >>>> include >>>> -I/src/gnu/lib/csu/../../../contrib/gcc/config >>>> -I/src/gnu/lib/csu/../../../contrib/gcc -I. >>>> -I/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -x assembler-with- >>>> cpp -include >>>> osreldate.h -std=gnu89 -g0 -DCRT_BEGIN -c -o crtbegin.o >>>> /src/gnu/lib/csu/../../../contrib/gcc/config/ia64/crtbegin.asm >>>> /obj/ia64/src/tmp/usr/include/osreldate.h: Assembler messages: >>>> /obj/ia64/src/tmp/usr/include/osreldate.h:38: Error: Unknown opcode >>>> `extern int getosreldate(void)' >>>> *** Error code 1 >>>> >>>> Stop in /src/gnu/lib/csu. >>>> *** Error code 1 >>> >>> May be the right location for getosreldate() prototype is unistd.h >>> then. >>> Do you agree ? >> >> I just fixed it by adding -D_OSRELDATE_H to CFLAGS. This prevents the >> prototype from being declared while still defining __FreeBSD_version. >> In theory -- I haven't tested it yet... > > The question is.. how is __STDC__ getting set for asm code? It most > definitely is not "standard C" code. gcc (read: cc1) defines it: hob% cc -E -x assembler-with-cpp -dM /dev/null | grep STDC #define __STDC_HOSTED__ 1 #define __STDC__ 1 If you added the __STDC__ conditional especially to avoid build breakage on ia64, then we should probably remove it. -- Marcel Moolenaar xcllnt@mac.com