ports/122854: lang/gcc34 fails to build when sysutils/torque is installed
Shin-ichi Okano
s-okano at n08.itscom.net
Thu Apr 17 13:50:01 UTC 2008
>Number: 122854
>Category: ports
>Synopsis: lang/gcc34 fails to build when sysutils/torque is installed
>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: Thu Apr 17 13:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Shin-ichi Okano
>Release: 7.0-STABLE
>Organization:
iTSCOM
>Environment:
FreeBSD kappa3.s-okano.n08.itscom.net 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Mar 29 01:34:16 JST 2008 root at kappa3.s-okano.n08.itscom.net:/usr/obj/usr/src/sys/KAPPA i386
>Description:
When 'sysutils/torque' is installed, 'lang/gcc34' fails to build with the following message:
cc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I/usr/local/include -I. -I. -I.././..//gcc-3.4.6/gcc -I.././..//gcc-3.4.6/gcc/. -I.././..//gcc-3.4.6/gcc/../include .././..//gcc-3.4.6/gcc/read-rtl.c -o read-rtl.o
In file included from .././..//gcc-3.4.6/gcc/read-rtl.c:27:
././..//gcc-3.4.6/gcc/rtl.h:1767: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:1768: warning: ISO C forbids forward references to 'enum' types
In file included from .././..//gcc-3.4.6/gcc/read-rtl.c:27:
././..//gcc-3.4.6/gcc/rtl.h:2190: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:2190: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:2191: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:2191: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:2209: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/read-rtl.c: In function 'read_rtx':
././..//gcc-3.4.6/gcc/read-rtl.c:536: error: 'obstack_chunk_alloc' undeclared (first use in this function)
././..//gcc-3.4.6/gcc/read-rtl.c:536: error: (Each undeclared identifier is reported only once
././..//gcc-3.4.6/gcc/read-rtl.c:536: error: for each function it appears in.)
././..//gcc-3.4.6/gcc/read-rtl.c:536: error: 'obstack_chunk_free' undeclared (first use in this function)
gmake[2]: *** [read-rtl.o] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/gcc34/work/build/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc34/work/build/gcc'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2
Stop in /usr/ports/lang/gcc34.
The cause seems that 'cc' includes '/usr/local/include/tm.h' instead of './tm.h' because the option '-I/usr/local/include' is placed before '-I.'.
>How-To-Repeat:
# cd /usr/ports/sysutils/torque
# make; make install
# cd /usr/ports/lang/gcc34
# make
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list