Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2012 22:24:30 GMT
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173570: 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]; 
Message-ID:  <201211112224.qABMOUQP006709@red.freebsd.org>
Resent-Message-ID: <201211112230.qABMU0Jd047209@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173570
>Category:       ports
>Synopsis:       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];
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 11 22:30:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     O. Hartmann
>Release:        FreeBSD 10.0-CURRENT
>Organization:
FU Berlin
>Environment:
FreeBSD 10.0-CURRENT #0 r242888M: Sun Nov 11 11:30:07 CET 2012

in /etc/src.conf: CXXFLAGS+=              -stdlib=libc++  -std=c++11
>Description:
While updating/reinstalling lang/gcc46, the below shown error arise only on one of several FreeBSD 10.0-CURRENT boxes of the same OS revision, but different CPU types. The failing one is the a Core2Duo. On all Sandy-Bridge and Ivy-Bridge I can update the port without problems.

I replaced lang/gcc46 by lang/gcc47, lang/gcc47 compiles well but seems to have issues.


Making GCC 4.6.4.20121102 for x86_64-portbld-freebsd10.0 [c,c++,objc,fortran,java]
===>  Found saved configuration for gcc-4.6.4.20120511
===>   gcc-4.6.4.20121102 depends on file: /usr/local/sbin/pkg - found
===>  Extracting for gcc-4.6.4.20121102
=> SHA256 Checksum OK for gcc-4.6-20121102.tar.bz2.
=> SHA256 Checksum OK for ecj-4.5.jar.
===>   gcc-4.6.4.20121102 depends on file: /usr/local/bin/perl5.16.2 - found
[...]

[...]
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

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211112224.qABMOUQP006709>