amd64/167829: Don't cross-build world with TARGET=i386

Dmitry Polunin frei.0xff at gmail.com
Sat May 12 23:00:26 UTC 2012


>Number:         167829
>Category:       amd64
>Synopsis:       Don't cross-build world with TARGET=i386
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 12 23:00:25 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Polunin
>Release:        FreeBSD 8.3-RELEASE-p1 amd64
>Organization:
>Environment:
FreeBSD new.inmak.ru 8.3-RELEASE-p1 FreeBSD 8.3-RELEASE-p1 #1: Sat May 12 19:01:34 EEST 2012     polunin at new.inmak.ru:/usr/obj/usr/src/sys/CUSTOM  amd64

>Description:
Cross-building with command 
`cd /usr/src && make buildworld TARGET=i386`
fault with error:
===> gnu/usr.bin/cc/cc_tools (depend)
cc -O2 -pipe  -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/i386/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -std=gnu89 -fstack-protector  -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c
cc -O2 -pipe  -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/i386/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -std=gnu89 -fstack-protector  -c gengtype-yacc+%DIKED.c
cc -O2 -pipe  -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/i386/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -std=gnu89 -fstack-protector  -c gengtype-lex.c
cc -O2 -pipe  -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/i386/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -std=gnu89 -fstack-protector  -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/errors.c
cc -O2 -pipe  -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/i386/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -std=gnu89 -fstack-protector   -o gengtype gengtype.o gengtype-yacc+%DIKED.o gengtype-lex.o errors.o libiberty.a
libiberty.a: could not read symbols: File format not recognized
*** Error code 1

Stop in /usr/src/gnu/usr.bin/cc/cc_tools.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/cc.
*** Error code 1

Stop in /usr/src/gnu/usr.bin.
*** Error code 1

Stop in /usr/src/gnu.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


>How-To-Repeat:
Execute command `cd /usr/src && make buildworld TARGET=i386`
>Fix:
Rollback a file /usr/src/gnu/usr.bin/cc/cc_tools/Makefile to a previous revision.


Patch attached with submission follows:

--- stable/8/gnu/usr.bin/cc/cc_tools/Makefile	2011/03/14 22:51:51	219648
+++ stable/8/gnu/usr.bin/cc/cc_tools/Makefile	2009/08/03 08:13:06	196045
@@ -303,12 +303,22 @@
 
 # Multilib config file
 multilib.h:
-.if ${TARGET_ARCH} == "amd64"
-	echo 'static const char *const multilib_raw[] = { \
-	    ". !m64 !m32;", \
-	    "64:../lib m64 !m32;", \
-	    "32:../lib32 !m64 m32;", NULL };'			> ${.TARGET}
-	echo 'static const char *const multilib_matches_raw[] = { \
-	    "m64 m64;", "m32 m32;", NULL };'			>> ${.TARGET}
-	echo 'static const char *multilib_options = "m64/m32";'	>> ${.TARGET}
-.else
 	echo 'static const char *const multilib_raw[] = { \
 	    ". ;", NULL };'					> ${.TARGET}
 	echo 'static const char *const multilib_matches_raw[] = { \
 	    NULL };'						>> ${.TARGET}
+	echo 'static const char *multilib_extra = "";'		>> ${.TARGET}
 	echo 'static const char *multilib_options = "";'	>> ${.TARGET}
-.endif
-	echo 'static const char *multilib_extra = "";'		>> ${.TARGET}
 	echo 'static const char *const multilib_exclusions_raw[] = { \
 	    NULL };'						>> ${.TARGET}
 


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


More information about the freebsd-amd64 mailing list