public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc-4.5 build fails
@ 2010-03-14 14:42 Paul Graphov
  2010-03-16 15:13 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Graphov @ 2010-03-14 14:42 UTC (permalink / raw)
  To: gcc-help

Hello everybody,

I've tried to build gcc-4.5 to play with it's new features but
unfortunately build failed.
I am using Fedora 12 x86_64 as host system and tried to build native compiler.

The error looked like this:

/home/druid/gcc-4.5/gcc-4.5-
20100311/build/./gcc/xgcc
-B/home/druid/gcc-4.5/gcc-4.5-20100311/build/./gcc/
-B/home/druid/usr/x86_64-unknown-linux-gnu/bin/
-B/home/druid/usr/x86_64-unknown-linux-gnu/lib/ -isystem
/home/druid/usr/x86_64-unknown-linux-gnu/include -isystem
/home/druid/usr/x86_64-unknown-linux-gnu/sys-include    -g -O2 -m32
-O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
-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../../../../libgcc -I../../../../libgcc/.
-I../../../../libgcc/../gcc -I../../../../libgcc/../include
-I../../../../libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT
-DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF
_muldi3.dep -DL_muldi3 -c ../../../../libgcc/../gcc/libgcc2.c \
      -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/features.h:376:0,
                 from /usr/include/stdio.h:28,
                 from ../../../../libgcc/../gcc/tsystem.h:87,
                 from ../../../../libgcc/../gcc/libgcc2.c:29:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such
file or directory

That file, stubs.h contains the following:
/* This file selects the right generated file of `__stub_FUNCTION' macros
   based on the architecture being compiled for.  */

#include <bits/wordsize.h>

#if __WORDSIZE == 32
# include <gnu/stubs-32.h>
#elif __WORDSIZE == 64
# include <gnu/stubs-64.h>
#else
# error "unexpected value for __WORDSIZE macro"
#endif

and included file wordsize.h looks like this:

#if defined __x86_64__
# define __WORDSIZE    64
# define __WORDSIZE_COMPAT32    1
#else
# define __WORDSIZE    32
#endif

So it seems that __x86_64__ is not set. And it is not defined anywhere
in my /usr/include
I've never tried to build gcc before and I'm not familiar with build process.
Where should it be set? In my includes? In gcc includes or as command
line options?

p.s.
The build sequence was as follows:
mkdir build
cd build
../configure --disable-bootstrap --enable-languages=c++ --prefix=/home/druid/usr
make

p.p.s
My system has gcc-4.4.3 20100127 (Red Hat 4.4.3-4) installed.

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc-4.5 build fails
  2010-03-14 14:42 gcc-4.5 build fails Paul Graphov
@ 2010-03-16 15:13 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2010-03-16 15:13 UTC (permalink / raw)
  To: Paul Graphov; +Cc: gcc-help

Paul Graphov <graphov@gmail.com> writes:

> I've tried to build gcc-4.5 to play with it's new features but
> unfortunately build failed.
> I am using Fedora 12 x86_64 as host system and tried to build native compiler.
>
> The error looked like this:
>
> /home/druid/gcc-4.5/gcc-4.5-
> 20100311/build/./gcc/xgcc
> -B/home/druid/gcc-4.5/gcc-4.5-20100311/build/./gcc/
> -B/home/druid/usr/x86_64-unknown-linux-gnu/bin/
> -B/home/druid/usr/x86_64-unknown-linux-gnu/lib/ -isystem
> /home/druid/usr/x86_64-unknown-linux-gnu/include -isystem
> /home/druid/usr/x86_64-unknown-linux-gnu/sys-include    -g -O2 -m32
> -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
> -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../../../../libgcc -I../../../../libgcc/.
> -I../../../../libgcc/../gcc -I../../../../libgcc/../include
> -I../../../../libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT
> -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF
> _muldi3.dep -DL_muldi3 -c ../../../../libgcc/../gcc/libgcc2.c \
>       -fvisibility=hidden -DHIDE_EXPORTS
> In file included from /usr/include/features.h:376:0,
>                  from /usr/include/stdio.h:28,
>                  from ../../../../libgcc/../gcc/tsystem.h:87,
>                  from ../../../../libgcc/../gcc/libgcc2.c:29:
> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such
> file or directory


Note the use of -m32 above.  This is building the 32-bit version of
the library, so that the -m32 option works.  You should install the
32-bit header files or configure with --disable-multilib.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-16 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-14 14:42 gcc-4.5 build fails Paul Graphov
2010-03-16 15:13 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).