i386/64619: Error building gcc 3.4 from ports collection

Charlie & root at sltnxq3.ip.tele.dk
Tue Mar 23 06:10:14 PST 2004


>Number:         64619
>Category:       i386
>Synopsis:       Error building gcc 3.4 from ports collection
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 23 06:10:11 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Steffen Schumacher
>Release:        FreeBSD 5.2-RELEASE i386
>Organization:
TDC Totalløsninger A/S
>Environment:
System: FreeBSD XXXXX.ip.tele.dk 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004 root at wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386


	A regular server PC, with dual Pentium CPUs, 1 G Ram - nothing unusual.	
>Description:
	When attempting to build the new gcc v 3.4, from the ports-collection, 
	it dies with this output:

	`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
	../.././..//gcc-3.4-20040310/libiberty/fibheap.c: In function `fibheap_union':
	../.././..//gcc-3.4-20040310/libiberty/fibheap.c:166: warning: implicit declaration of function `free'
	../.././..//gcc-3.4-20040310/libiberty/fibheap.c: In function `fibheap_delete_node':
	../.././..//gcc-3.4-20040310/libiberty/fibheap.c:285: error: `LONG_MIN' undeclared (first use in this function)
	../.././..//gcc-3.4-20040310/libiberty/fibheap.c:285: error: (Each undeclared identifier is reported only once
	../.././..//gcc-3.4-20040310/libiberty/fibheap.c:285: error: for each function it appears in.)
	../.././..//gcc-3.4-20040310/libiberty/fibheap.c: In function `fibheap_consolidate':
	../.././..//gcc-3.4-20040310/libiberty/fibheap.c:395: warning: implicit declaration of function `memset'
	gmake[2]: *** [fibheap.o] Error 1
	gmake[2]: Leaving directory `/usr/ports/lang/gcc34/work/build/i386-portbld-freebsd5.2/libiberty'
	gmake[1]: *** [all-target-libiberty] Error 2
	gmake[1]: Leaving directory `/usr/ports/lang/gcc34/work/build'
	gmake: *** [bootstrap-lean] Error 2
	*** Error code 2

	Stop in /usr/ports/lang/gcc34.
	
	seemingly there are also other compile errors in /libiberty/, such as 'implicit declaration of function' type
	warnings, where various methods from stdlib is unavailable. Also the LONG_MIN is actually defined in a file
	which IS being included. (can't say it actually gets the file included, because the screen flies by so fast..)

	steffen [at] schumacher  [dot] denmark

>How-To-Repeat:
	cd /usr/ports/lang/gcc34 ; make 
>Fix:

	Don't really know too much about gmake and make, but it seems like it doesn't get in config.h file
	properly included. This would explain why the include of stdlib.h fails (its wrapped in a HAVE_STDLIB_H 
	statement..)


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


More information about the freebsd-i386 mailing list