This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Build gcc 4.1.0 so i can target both x86 and AMD64
- From: Andrew Haley <aph at redhat dot com>
- To: "Richard Homolka" <rhomolka at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 2 Apr 2006 18:56:48 +0100
- Subject: Re: Build gcc 4.1.0 so i can target both x86 and AMD64
- References: <BAY101-F24B7DCC5C295CAF0D1ADF0DED60@phx.gbl>
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.
> --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? What did the first 20 or so lines of the
configure output look like?
Andrew.