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

O. Hartmann ohartman at
Wed Nov 7 16:48:48 UTC 2012

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?


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/../libcpp/include -I/usr/local/include
-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
  rtx x_initial_regno_reg_rtx[FIRST_PSEUDO_REGISTER];
.././../gcc-4.6-20121102/gcc/rtl.h:2112:31: error: use of undeclared
  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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-ports mailing list