This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: --disable-multilib broken on x86_64
On Mon, Mar 26, 2007 at 01:57:52PM -0400, Michael Meissner wrote:
> 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
> ;;
It won't work with powerpc-linux, pentium4-linux, .....
H.J.