From owner-freebsd-ports@FreeBSD.ORG Thu Nov 8 09:29:15 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2BBA58FA for ; Thu, 8 Nov 2012 09:29:15 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id D5F038FC15 for ; Thu, 8 Nov 2012 09:29:14 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1TWOQ7-0003It-H5; Thu, 08 Nov 2012 09:29:07 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1TWOQ7-0002N6-6H; Thu, 08 Nov 2012 09:29:07 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id qA89T6OP062260; Thu, 8 Nov 2012 09:29:06 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id qA89T6Er062259; Thu, 8 Nov 2012 09:29:06 GMT (envelope-from mexas) Date: Thu, 8 Nov 2012 09:29:06 GMT From: Anton Shterenlikht Message-Id: <201211080929.qA89T6Er062259@mech-cluster241.men.bris.ac.uk> To: freebsd-ports@freebsd.org, ohartman@zedat.fu-berlin.de Subject: Re: lang/gcc46: .././../gcc-4.6-20121102/gcc/rtl.h:2105:31: error: use of undeclared identifier 'FIRST_PSEUDO_REGISTER', rtx x_initial_regno_reg_rtx[FIRST_PSEUDO_REGISTER]; In-Reply-To: <509A90E3.7070301@zedat.fu-berlin.de> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2012 09:29:15 -0000 Date: Wed, 07 Nov 2012 17:48:35 +0100 From: "O. Hartmann" To: Ports FreeBSD Subject: lang/gcc46: .././../gcc-4.6-20121102/gcc/rtl.h:2105:31: error: use of undeclared identifier 'FIRST_PSEUDO_REGISTER', rtx x_initial_regno_reg_rtx[FIRST_PSEUDO_REGISTER]; On one of my FreeBSD 10-CURRENT boxes (FreeBSD 10.0-CURRENT #3 r242674M: Tue Nov 6 22:36:47 CET 2012) I get surprisingly the following error while upgrading the compiler port lang/gcc46. The bos in question is most recent updated kernel/world sources, compiled with CLANG and having CLANG set so far as the default compiler (clang is now cc). The port compiled prior to the switch to CLANG as the default also with CLANG without problem! The couriosity is that I also run two other boxes, also the very same sources for the OS and the most recent updated /usr/ports tree. Those boxes are modern hardware, Sandy-Bridge and Ivy-Bridge, the failing box is Core2Duo, I mention this here since I use -O3 and -march=3Dnative in the compiler options on ALL machines and I also compil= e the sources with option CXXFLAGS=3D -stdlib=3Dlibc++ -std=3Dc++11 set in /etc/src.conf. The shwon below error sounds weird, since the other boxes have compiled the very same day the port lang/gcc has been updated the very same port without problems. Since I spread arounf the boxes my /etc/make.conf and /etc/src.conf for FreeBSD 10.0-CURRENT, I'm very sure that I do not use other flags on the failing system. Any ideas? Regards, Oliver =3D=3D=3D=3D=3D cc -c -O3 -pipe -fno-strict-aliasing -march=3Dnative -march=3Dnative -I/usr/local/include -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I.././../gcc-4.6-20121102/gcc -I.././../gcc-4.6-20121102/gcc/build -I.././../gcc-4.6-20121102/gcc/../include -I.././../gcc-4.6-20121102/gcc/../libcpp/include -I/usr/local/include -I.././../gcc-4.6-20121102/gcc/../libdecnumber -I.././../gcc-4.6-20121102/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/local/include \ -o build/genflags.o .././../gcc-4.6-20121102/gcc/genflags.c In file included from .././../gcc-4.6-20121102/gcc/genflags.c:28: =2E././../gcc-4.6-20121102/gcc/rtl.h:1989:13: warning: ISO C forbids forward references to 'enum' types [-Wpedantic] extern enum reg_class reg_preferred_class (int); ^ =2E././../gcc-4.6-20121102/gcc/rtl.h:2105:31: error: use of undeclared identifier 'FIRST_PSEUDO_REGISTER' rtx x_initial_regno_reg_rtx[FIRST_PSEUDO_REGISTER]; ^ =2E././../gcc-4.6-20121102/gcc/rtl.h:2112:31: error: use of undeclared identifier 'FIRST_PSEUDO_REGISTER' rtx x_static_reg_base_value[FIRST_PSEUDO_REGISTER]; ^ 1 warning and 2 errors generated. gmake[2]: *** [build/genflags.o] Error 1 gmake[2]: Leaving directory `/usr/ports/lang/gcc46/work/build/gcc' gmake[1]: *** [all-gcc] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gcc46/work/build' gmake: *** [all] Error 2 *** [do-build] Error code 1 Stop in /usr/ports/lang/gcc46. *** [build] Error code 1 Stop in /usr/ports/lang/gcc46. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55221 I thought it was just me on ia64. 4.7 updated fine: ===>>> Upgrade of gcc-4.7.3.20121013 to gcc-4.7.3.20121103 complete Anton