Skip to contentSkip to conversation

config.guess changs

DISCUSSION Ryan Murray 4 participants 4 messages Dec 27, 2001 – Jan 1, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

The config.guess rework of 12/12/2001 doesn't work on big endian machines, as the preprocessor defines "mips" to be " 1", so the cpp -E output ends up being "CPU= 1".

Signature · 2 lines
Ryan Murray, Debian Developer ([email protected], [email protected])
The opinions expressed here are my own.
#1 lore raw
Quoted 4 lines · Ryan Murray

The config.guess rework of 12/12/2001 doesn't work on big endian machines, as the preprocessor defines "mips" to be " 1", so the cpp -E output ends up being "CPU= 1".

Try this patch.

H.J.
----
2001-12-27 H.J. Lu <[email protected]>

* config.guess (mips:Linux:*:*): Undefine CPU, mips and mipsel first.

config.guess +3 -0
@@ -770,6 +770,9 @@ EOF
     mips:Linux:*:*)
 	eval $set_cc_for_build
 	sed 's/^	//' << EOF >$dummy.c
+	#undef CPU
+	#undef mips
+	#undef mipsel
 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 
 	CPU=mipsel 
 	#else
#2 lore raw
Quoted 17 lines · H . J . Lu
Quoted 3 lines

The config.guess rework of 12/12/2001 doesn't work on big endian machines, as the preprocessor defines "mips" to be " 1", so the cpp -E output ends up being "CPU= 1".

Try this patch.

H.J.
----
2001-12-27 H.J. Lu <[email protected]>

* config.guess (mips:Linux:*:*): Undefine CPU, mips and mipsel first.

config.guess EOF · line 778

Quoted 9 lines
config.guess +3 -0
@@ -770,6 +770,9 @@ EOF
     mips:Linux:*:*)
 	eval $set_cc_for_build
 	sed 's/^	//' << EOF >$dummy.c
+	#undef CPU
+	#undef mips
+	#undef mipsel
 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 
 	CPU=mipsel 
 	#else

That fixes the problem here.

Signature · 2 lines
Ryan Murray, Debian Developer ([email protected], [email protected])
The opinions expressed here are my own.
#3 lore raw
In reply to H . J . Lu
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"H" == H J Lu <[email protected]> writes:

The config.guess rework of 12/12/2001 doesn't work on big endian machines, as the preprocessor defines "mips" to be " 1", so the cpp -E output ends up being "CPU= 1".

H> Try this patch.

H> 2001-12-27 H.J. Lu <[email protected]>

H> * config.guess (mips:Linux:*:*): Undefine CPU, mips and mipsel
H> first.

Thanks; applied to the FSF master copy.

Ben