From owner-freebsd-current@FreeBSD.ORG Mon Aug 17 17:18:50 2009 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 492B21065691; Mon, 17 Aug 2009 17:18:50 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id D26E08FC61; Mon, 17 Aug 2009 17:18:49 +0000 (UTC) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.14.3/8.14.3) with ESMTP id n7HGwqeB041736; Mon, 17 Aug 2009 11:58:53 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1250528333; bh=pdp52duLjK9AymP3F5gQX+fFiqhd+K3naBVlZVElS7s=; h=Date:From:Message-Id:To:Subject:In-Reply-To; b=kyAPvhYggJn7CRYs7w48fHJUVM1MsNJ2DuiGwfzCPjNNw7JdhnaWLKs2QxtgRk5TP BatIVb7+s19aWSlDfkhF5s7y5redapoXb2/36yL+hrAdup3jcYMq4dTqyExghPwvo8 zEnjjcnswrhZbAxe2aDRQnKICr/6TMX7+JbKqDjU= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n7HGwqc3041735; Mon, 17 Aug 2009 11:58:52 -0500 (CDT) (envelope-from tinguely) Date: Mon, 17 Aug 2009 11:58:52 -0500 (CDT) From: Mark Tinguely Message-Id: <200908171658.n7HGwqc3041735@casselton.net> To: freebsd-current@freebsd.org, freebsd-questions@freebsd.org, mexas@bristol.ac.uk In-Reply-To: <20090817135752.GA73485@mech-cluster241.men.bris.ac.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.2 (casselton.net [127.0.0.1]); Mon, 17 Aug 2009 11:58:53 -0500 (CDT) Cc: Subject: Re: ports lang/gcc4x fail to build on 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: Mon, 17 Aug 2009 17:18:50 -0000 > Ports lang/gcc43, 44 and 45 fail to build on 8.0-beta2 ia64: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959 > > I know they build fine on 6.4-stable alpha, but > what about sparc64? amd64? mips? > > many thanks > > -- > Anton Shterenlikht FYI: I mostly ported GCC 4.5 to the BSD Makefiles (svn head sys/gnu/usr.bin/cc) for ARM. Basically, I added the FreeBSD format extension, the __FreeBSD_cc_version built-in define and the PATH changes. I did not make BSD Makefile for the GMP and MPFR libraries. I don't have the FreeBSD-8.0 revision 195697 that eliminates ".text relocations in shared libraries compiled with stack protector". Vassilis Laganakos has been working with GCC 4.4 on the ARM. I haven't push the compiler (and newer binutils 2.19) much beyond building the kernel. GCC 4.5 "-O" option creates new kernel warnings with the conditional locks. Below is a typical error: /mnt/arm64/usr/bin/gcc -mlittle-endian -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=xscale -ffreestanding -Werror ../../../fs/devfs/devfs_vnops.c cc1: warnings being treated as errors ../../../fs/devfs/devfs_vnops.c: In function 'devfs_lookup': ../../../sys/sx.h:165:1: error: inlining failed in call to '__sx_xunlock': call is unlikely and code size would grow ../../../fs/devfs/devfs_vnops.c:809:3: error: called from here ../../../sys/sx.h:165:1: error: inlining failed in call to '__sx_xunlock': call is unlikely and code size would grow ../../../fs/devfs/devfs_vnops.c:817:4: error: called from here ../../../sys/sx.h:165:1: error: inlining failed in call to '__sx_xunlock': call is unlikely and code size would grow ../../../fs/devfs/devfs_vnops.c:828:4: error: called from here *** Error code 1 --Mark Tinguely.