trying to build from cvs - "cc1: bad value (athlonmp) for -march= switch"

Simon Marlow simonmar@microsoft.com
Thu, 9 Jan 2003 11:37:51 -0000


> --------------------------------------------------------------
> ----------
> =3D=3Dfptools=3D=3D make all -wr;
>  in /home/shae/build/haskell/fpbuild/ghc/rts
> --------------------------------------------------------------
> ----------
> ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W=20
> -optc-Wstrict-prototypes -optc-Wmissing-prototypes=20
> -optc-Wmissing-declarations -optc-Winline=20
> -optc-Waggregate-return -optc-Wbad-function-cast=20
> -optc-I../includes -optc-I. -optc-Iparallel=20
> -optc-DCOMPILING_RTS -optc-O2 -optc-fomit-frame-pointer=20
> -optc-mpreferred-stack-boundary=3D2 -optc-march=3Dathlonmp=20
> -optc-DTHREADED_RTS -H16m -O -O2 -static    -c Adjustor.c -o=20
> Adjustor.o
> cc1: bad value (athlonmp) for -march=3D switch
> cc1: bad value (athlonmp) for -mcpu=3D switch
> make[2]: *** [Adjustor.o] Error 1
> make[1]: *** [all] Error 1
>=20
>=20
> running "gcc -v" gives:
> Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.2/specs
> Configured with: ../src/configure -v=20
> --enable-languages=3Dc,c++,java,f77,proto,pascal,objc,ada=20
> --prefix=3D/usr --mandir=3D/usr/share/man=20
> --infodir=3D/usr/share/info=20
> --with-gxx-include-dir=3D/usr/include/c++/3.2 --enable-shared=20
> --with-system-zlib --enable-nls --without-included-gettext=20
> --enable-__cxa_atexit --enable-clocale=3Dgnu=20
> --enable-java-gc=3Dboehm --enable-objc-gc i386-linux
> Thread model: posix
> gcc version 3.2.2 20021231 (Debian prerelease)
>=20
> Athlon MP is the correct arch/cpu, and gcc 3.2.2 has=20
> -march=3Dathlonmp available.
> Any ideas?

Are you sure that GHC is running the same gcc?  Try 'ghc -v -fvia-C' on
some small Haskell source file.

Cheers,
	Simon