From phk@critter.freebsd.dk  Fri Nov 24 10:47:17 2006
Return-Path: <phk@critter.freebsd.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B3C0316A4A7
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Nov 2006 10:47:17 +0000 (UTC)
	(envelope-from phk@critter.freebsd.dk)
Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A3E9143D5C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Nov 2006 10:46:36 +0000 (GMT)
	(envelope-from phk@critter.freebsd.dk)
Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.48.2])
	by phk.freebsd.dk (Postfix) with ESMTP id D4AF3170C1
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Nov 2006 10:47:15 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1])
	by critter.freebsd.dk (8.13.8/8.13.8) with ESMTP id kAOAlFHx057644
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Nov 2006 10:47:15 GMT
	(envelope-from phk@critter.freebsd.dk)
Received: (from phk@localhost)
	by critter.freebsd.dk (8.13.8/8.13.8/Submit) id kAOAlFV3057643;
	Fri, 24 Nov 2006 10:47:15 GMT
	(envelope-from phk)
Message-Id: <200611241047.kAOAlFV3057643@critter.freebsd.dk>
Date: Fri, 24 Nov 2006 10:47:15 GMT
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
Reply-To: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Crossbuilding powerpc from amd64 doesn't work.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         105811
>Category:       misc
>Synopsis:       Crossbuilding powerpc from amd64 doesn't work.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 24 10:50:13 GMT 2006
>Closed-Date:    Thu Apr 03 16:16:11 UTC 2008
>Last-Modified:  Thu Apr 03 16:16:11 UTC 2008
>Originator:     Poul-Henning Kamp
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD critter.freebsd.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #8: Sun Nov 19 13:22:22 UTC 2006 root@critter.freebsd.dk:/critter/src/sys/i386/compile/TP41P i386


>Description:

	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
>Fix:

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Mon Jan 28 17:31:34 UTC 2008 
State-Changed-Why:  
 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. 
 
 
Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Jan 28 17:31:34 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=105811 
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Thu Apr 3 16:15:02 UTC 2008 
State-Changed-Why:  
Feedback timeout (2 months), works for me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=105811 
>Unformatted:
