Re: Build gcc 4.1.0 so i can target both x86 and AMD64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks andrew


From: Andrew Haley <aph@xxxxxxxxxx>
To: "Richard Homolka" <rhomolka@xxxxxxxxxxx>
CC: gcc-help@xxxxxxxxxxx
Richard Homolka writes:
> Hello, i just built gcc 4.1.0 from sources. I'd like to be able to target > both 32 bit and 64 bit apps. I try to add the -m64 flag to a compile though
 > and i get:
 > hello.c:1: sorry, unimplemented: 64-bit mode not compiled in
 >
> what did i do wrong in the build? i didn't see anything about targetting
 > multiple configs.
 > My configure command is:
 > ../gcc-4.*/configure \
 >         --prefix=/tp/tools/gcc/4.1.0 \
 >         --enable-shared \
 >         --enable-threads \
 >         --enable-tls \
 >         --with-arch=pentium3 \

What's this for?  Take it out.
wanted to have default arch flags for our builds. is this affecting the gcc build, or just it's defualt flags?

 >         --with-tune=pentium4 \
 >         --enable-__cxa_atexit \
 >         --enable-languages=c,c++,fortran \
 >         --disable-nls \
 >         --with-gmp=$GMPDIR \
 >         --with-mpfr=$MPFRDIR
 >
 > any tips? thank you

What does `uname -a' say?
taserv@lx-chtasglab4$: uname -a
Linux lx-chtasglab4.wfg.com 2.4.21-32.0.1.ELhugemem #1 SMP Tue May 17 17:43:22 EDT 2005 i686 i686 i386 GNU/Linux

What did the first 20 or so lines of the
configure output look like?
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gnatbind... gnatbind
checking whether compiler driver understands Ada... yes
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for MPFR... yes
*** This configuration is not supported in the following subdirectories:
target-libada gnattools target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
   (Any other directories should still work fine.)
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... expect
checking for runtest... runtest
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-cc... no
checking for cc... cc
checking for i686-pc-linux-gnu-c++... no
checking for c++... c++
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-gcc... no
checking for gcc... gcc
checking for i686-pc-linux-gnu-gcj... no
checking for gcj... gcj
checking for i686-pc-linux-gnu-gfortran... no
checking for gfortran... no
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux