Bug 105811

Summary: Crossbuilding powerpc from amd64 doesn't work.
Product: Base System Reporter: Poul-Henning Kamp <phk>
Component: miscAssignee: Gavin Atkinson <gavin>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 7.0-CURRENT   
Hardware: Any   
OS: Any   

Description Poul-Henning Kamp 2006-11-24 10:50:13 UTC
	make buildworld TARGET=powerpc fails on an amd64 machine.

rm -f .depend
mkdep -f .depend -a -DCRT_BEGIN   -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -I/src/Current/src/gnu/lib/csu/../../../contrib/gcc/config -I/src/Current/src/gnu/lib/csu/../../../contrib/gcc -I. -I/src/Current/src/gnu/lib/csu/../../usr.bin/cc/cc_tools /src/Current/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
cc -O2 -fno-strict-aliasing -pipe  -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -finhibit-size-directive -fno-inline-functions  -fno-exceptions -fno-zero-initialized-in-bss  -fno-omit-frame-pointer -fno-unit-at-a-time -I/src/Current/src/gnu/lib/csu/../../../contrib/gcc/config -I/src/Current/src/gnu/lib/csu/../../../contrib/gcc -I.  -I/src/Current/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -std=gnu89  -g0 -DCRT_BEGIN  -c -o crtbegin.o /src/Current/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
Assembler messages:
FATAL: can't create crtbegin.o: Invalid bfd target
In file included from ./tm.h:10,
                 from /src/Current/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:64:
/src/Current/src/gnu/lib/csu/../../../contrib/gcc/config/rs6000/sysv4.h:24:1: warning: "NO_IMPLICIT_EXTERN_C" redefined
In file included from ./tm.h:9,
                 from /src/Current/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:64:
/src/Current/src/gnu/lib/csu/../../../contrib/gcc/config/freebsd.h:69:1: warning: this is the location of the previous definition
In file included from ./tm.h:10,
                 from /src/Current/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:64:
/src/Current/src/gnu/lib/csu/../../../contrib/gcc/config/rs6000/sysv4.h:1349:1: warning: "HANDLE_PRAGMA_PACK_PUSH_POP" redefined
In file included from ./tm.h:9,
                 from /src/Current/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:64:
/src/Current/src/gnu/lib/csu/../../../contrib/gcc/config/freebsd.h:99:1: warning: this is the location of the previous definition
*** Error code 2

How-To-Repeat: 	make buildworld TARGET=powerpc
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2008-01-28 17:31:34 UTC
State Changed
From-To: open->feedback

 To submitter:  This seems to work now for me: 

 ga9test2# make buildworld TARGET=powerpc  
 [...] 
 -------------------------------------------------------------- 
 >>> World build completed on Mon Jan 28 16:43:22 UTC 2008 
 -------------------------------------------------------------- 
 
 Are you still able to recreate the issue?  If not, I'll close this PR. 
 
 
Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2008-01-28 17:31:34 UTC
Responsible Changed
From-To: freebsd-bugs->gavin

Track
Comment 3 Gavin Atkinson freebsd_committer freebsd_triage 2008-04-03 17:15:02 UTC
State Changed
From-To: feedback->closed

Feedback timeout (2 months), works for me.