Bug 21403 - Canadian cross build fails.
Summary: Canadian cross build fails.
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.0.1
: P2 normal
Target Milestone: 4.0.1
Assignee: Anthony Green
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: build, patch
Depends on:
Blocks:
 
Reported: 2005-05-05 16:54 UTC by Anthony Green
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i386-mingw32
Target: i386-elf
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2005-05-07 15:54:47


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Green 2005-05-05 16:54:08 UTC
A canadian cross of the compiler failed as it tried to link fix-header.
It's using a mix of build and host object files to build this.  The Makefile reads:

# This is nominally a 'build' program, but it's run only when host==build,
# so we can (indeed, must) use $(LIBDEPS) and $(LIBS).

I, however, don't have host==build, and it still tries to do this.

From what I can tell, there doesn't appear to be proper host==build checks in
place.  Simply setting use_fixproto in config.gcc is enough to try to build
fix-header.
Comment 1 Anthony Green 2005-05-07 03:52:05 UTC
I've posted a patch.

http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00555.html

Comment 2 GCC Commits 2005-05-07 22:28:28 UTC
Subject: Bug 21403

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	green@gcc.gnu.org	2005-05-07 22:28:10

Modified files:
	gcc            : ChangeLog configure.ac configure 

Log message:
	2005-05-07  Anthony Green  <green@redhat.com>
	
	PR bootstrap/21403
	* configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
	x$STMP_FIXPROTO test.
	* configure: Rebuilt.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.226&r2=2.7592.2.227
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.94.8.2&r2=2.94.8.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.885.6.2&r2=1.885.6.3

Comment 3 GCC Commits 2005-05-07 22:32:15 UTC
Subject: Bug 21403

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	green@gcc.gnu.org	2005-05-07 22:32:04

Modified files:
	gcc            : ChangeLog configure.ac configure 

Log message:
	2005-05-07  Anthony Green  <green@redhat.com>
	
	PR bootstrap/21403
	* configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
	x$STMP_FIXPROTO test.
	* configure: Rebuilt.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8644&r2=2.8645
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&r1=2.108&r2=2.109
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&r1=1.900&r2=1.901

Comment 4 Anthony Green 2005-05-07 22:33:18 UTC
Patch applied to HEAD and 4.0 branch. 
Comment 5 GCC Commits 2005-06-16 20:18:54 UTC
Subject: Bug 21403

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	apple-local-200502-branch
Changes by:	geoffk@gcc.gnu.org	2005-06-16 20:18:24

Modified files:
	gcc            : ChangeLog configure.ac configure 

Log message:
	PR bootstrap/21403
	* configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
	x$STMP_FIXPROTO test.
	* configure: Rebuilt.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=2.7489.2.11&r2=2.7489.2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=2.94.4.2&r2=2.94.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=1.885.4.2&r2=1.885.4.3