[Nauty] problem compiling with os x 10.4

Brendan McKay bdm at cs.anu.edu.au
Wed Jun 29 19:22:01 EST 2005


I am very far away from home, sorry about the delay in replying.

The GCC 4.0 problem is already fixed in my development version.
The following is ONLY for Mac OS X 10.4, using compiler 4.0 or higher.

The problem is the compiler switches set by the configuration
script.  For a temporary fix, run ./configure, then edit
the file "makefile" so that two lines near the top look like:

For G4 processors:
   CFLAGS= -O4 -mcpu=7450 -mtune=7450  -fast
   SAFECFLAGS= -O4 -mcpu=7450 -mtune=7450

For G5 processors:
   CFLAGS= -O4 -mcpu=g5 -mtune=g5  -fast
   SAFECFLAGS= -O4 -mcpu=g5 -mtune=g5

For G3 or lower processor, or for any compiler version before 4.0.0,
don't use the "-fast" switch.  Probably this works:
   CFLAGS= -O4 -mpowerpc
   SAFECFLAGS= -O4 -mpowerpc
You could also try -mcpu=7400 -mtune=7400 but don't use -fast.

After editing "makefile", do "make clean", then "make".

If you run "configure", the file "makefile" is overwritten, so be
careful not to undo these changes.

Hope that helps.  Brendan.




More information about the Nauty mailing list