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];

2012-11-08 Thread Anton Shterenlikht
Date: Wed, 07 Nov 2012 17:48:35 +0100
From: O. Hartmann ohart...@zedat.fu-berlin.de
To: Ports FreeBSD freebsd-ports@freebsd.org
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


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


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];

2012-11-07 Thread O. Hartmann
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=native in the compiler options on ALL machines and I also compile
the sources with option

CXXFLAGS= -stdlib=libc++  -std=c++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


=
cc -c   -O3 -pipe -fno-strict-aliasing -march=native -march=native
-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:
.././../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);
^
.././../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];
  ^
.././../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.



signature.asc
Description: OpenPGP digital signature