This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: --disable-multilib broken on x86_64
- From: "Michael Meissner" <michael dot meissner at amd dot com>
- To: "Martin Michlmayr" <tbm at cyrius dot com>
- Cc: "Michael Meissner" <michael dot meissner at amd dot com>, "H.J. Lu" <hongjiu dot lu at intel dot com>, gcc at gcc dot gnu dot org
- Date: Mon, 26 Mar 2007 13:57:52 -0400
- Subject: Re: --disable-multilib broken on x86_64
- References: <20070324190140.GA3366@deprecation.cyrius.com>
On Sat, Mar 24, 2007 at 07:01:40PM +0000, Martin Michlmayr wrote:
> The following change broke --disable-multilib:
>
> 2007-03-23 Michael Meissner <michael.meissner@amd.com>
> H.J. Lu <hongjiu.lu@intel.com>
>
> ../src/configure --enable-languages=c --disable-multilib x86_64-linux-gnu
>
> /home/tbm/build/gcc-snapshot-20070324/build/./gcc/xgcc -B/home/tbm/build/gcc-snapshot-20070324/build/./gcc/ -B/usr/lib/gcc-snapshot/x86_64-linux-gnu/bin/ -B/usr/lib/gcc-snapshot/x86_64-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/x86_64-linux-gnu/include -isystem /usr/lib/gcc-snapshot/x86_64-linux-gnu/sys-include -g -fkeep-inline-functions -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../.././gcc -I../../../src/libgcc -I../../../src/libgcc/. -I../../../src/libgcc/../gcc -I../../../src/libgcc/../include -I../../../src/libgcc/../libdecnumber/no -I../../../src/libgcc/../libdecnumber -I../../libdecnumber -o decLibrary.o -MT decLibrary.o -MD -MP -MF decLibrary.dep -c ../../../src/libgcc/../libdecnumber/decLibrary.c
> ../../../src/libgcc/../libdecnumber/decLibrary.c:32:24: error: decimal128.h: No such file or directory
> ../../../src/libgcc/../libdecnumber/decLibrary.c:33:23: error: decimal64.h: No such file or directory
> ../../../src/libgcc/../libdecnumber/decLibrary.c:34:23: error: decimal32.h: No such file or directory
> ../../../src/libgcc/../libdecnumber/decLibrary.c:36: error: expected declaration specifiers or '...' before 'decimal32'
> ../../../src/libgcc/../libdecnumber/decLibrary.c:37: error: expected declaration specifiers or '...' before 'decimal64'
> ../../../src/libgcc/../libdecnumber/decLibrary.c:38: error: expected declaration specifiers or '...' before 'decimal128'
> ../../../src/libgcc/../libdecnumber/decLibrary.c: In function 'isinfd32':
> ...
>
> --
> Martin Michlmayr
> http://www.cyrius.com/
>
Note, the gcc mailing list is perhaps not the best place to post bug reports
(following up to the mail with the patch in gcc-patches or posting in gcc-bugs
may be better places to post this).
As I replied in gcc-patches, I think the following patch fixes the problem,
simpler than using AC_CANONICAL. Sorry, I always build with canonical names,
and didn't notice that x86_64-linux-gnu wouldn't build:
libgcc/
2007-03-26 Michael Meissner <michael.meissner@amd.com>
* configure.ac (--enable-decimal-float): Change x86 targets to
just x86_64*-linux* and i?86*-linux* so that a non-canonical
target of x86_64-linux will be handled.
* configure: Regenerate.
--- libgcc/configure.ac.~1~ 2007-03-24 13:25:28.593802000 -0400
+++ libgcc/configure.ac 2007-03-26 13:17:46.577488000 -0400
@@ -121,7 +121,7 @@ Valid choices are 'yes', 'bid', 'dpd', a
],
[
case $target in
- powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
+ powerpc*-*-linux* | i?86*-linux* | x86_64*-linux*)
enable_decimal_float=yes
;;
*)
@@ -133,7 +133,7 @@ Valid choices are 'yes', 'bid', 'dpd', a
# x86's use BID format instead of DPD
if test x$enable_decimal_float = xyes; then
case $target in
- i?86*-*-linux* | x86_64*-*-linux*)
+ i?86*-linux* | x86_64*-linux*)
enable_decimal_float=bid
;;
*)
--- libgcc/configure.~1~ 2007-03-26 13:17:14.691407000 -0400
+++ libgcc/configure 2007-03-26 13:17:55.282777000 -0400
@@ -3306,7 +3306,7 @@ Valid choices are 'yes', 'bid', 'dpd', a
else
case $target in
- powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
+ powerpc*-*-linux* | i?86*-linux* | x86_64*-linux*)
enable_decimal_float=yes
;;
*)
@@ -3319,7 +3319,7 @@ fi;
# x86's use BID format instead of DPD
if test x$enable_decimal_float = xyes; then
case $target in
- i?86*-*-linux* | x86_64*-*-linux*)
+ i?86*-linux* | x86_64*-linux*)
enable_decimal_float=bid
;;
*)
--
Michael Meissner, AMD
90 Central Street, MS 83-29, Boxborough, MA, 01719, USA
michael.meissner@amd.com