gcc issues on an AMD Duron Server

Daniel Carrera dcarrera@math.umd.edu
Tue Jun 17 04:21:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Notice in this line:

> checking whether the C compiler (gcc -O2 -march=3Di386 -funroll-loops =
> -D_REENTRANT -D_SINGLE_LISTEN_UNSERIALIZED_ACCEPT -fPIC ) works... no

That -march=3Di386 is wrong, it should be one of:

  -march=i386
  -march=i486
  -march=i586
  -march=i686
  -march=athlon

If you are on a Duron system, then -march=athlon is the best for you.  If 
that gives you trouble, try -march=i686.  I'm 90% sure that a Duron and an 
Athlon are the same, that the difference is just the L2 cache which 
doesn't affect the compiler.  So -march=athlon should work for you.

Hope that helps.

On Mon, Jun 16, 2003 at 03:55:57PM -0400, Phillip C. Roberts wrote:
> When I make an attempt to compile anything with gcc i get a i686 error.  =
> I am working with RH 7.3 on a box with a Duron Processor.  What should =
> my SPECS file be set to for such a system?
> 
> Below is a copy of the error that I recieve when attempting to configure =
> apache on the box.
> 
> Configuring Apache Portable Runtime library ...
> checking for APR... reconfig
> configuring package in srclib/apr now
> loading cache /usr/updates/httpd-2.0.46/./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
> Configuring APR library
> Platform: i686-pc-linux-gnu
> checking for working mkdir -p... (cached) yes
> APR Version: 0.9.4
> checking for chosen layout... apr
> checking for gcc... gcc
> checking whether the C compiler (gcc -O2 -march=3Di386 -funroll-loops =
> -D_REENTRANT -D_SINGLE_LISTEN_UNSERIALIZED_ACCEPT -fPIC ) works... no
> configure: error: installation or configuration problem: C compiler =
> cannot create executables.
> configure failed for srclib/apr
> 
> 
> I recieve errors no matter what I attempt to compile with gcc...
> 
> Thanks in advance for any input....
> 
> Phillip Roberts

- -- 
Daniel Carrera         | OpenPGP fingerprint:
Graduate TA, Math Dept | 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88
UMD  (301) 405-5137    | http://www.math.umd.edu/~dcarrera/pgp.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (SunOS)

iD8DBQE+7pdInxE8DWHf+OcRAhgCAJwJMhx4PQzDrfBmJy3KFFWWP8wNzQCgyT6t
h5VhBwCTAJq2D5Og/6OS4BQ=
=GUm+
-----END PGP SIGNATURE-----



More information about the Gcc-help mailing list