AMBER: Compiling Amber 9 on SGI with gcc

Date: Fri, 8 Dec 2006 13:46:32 -0500

Hi all,

I'm trying to compile Amber 9 on an Octane 2 SGI machine running IRIX
6.5.25f using gcc 4.0.3, binutils 2.17, and g95 0.9. I use the
following commands to compile:

1. ./configure g95
2. make serial

It proceeds fine until the first instance that gcc is invoked, and the
following occurs:

make[1]: entering directory
mmtsb_client.o mmtsb_client.c
cc1: error: invalid option '32'
make[1]: *** [mmtsb_client.o] Error 1
make[1]: Leaving directory
make: *** [serial] Error 2

I read elsewhere in the mail archives that some people who had a similar
problem were able to make Amber compile by deleting the "-m32" flag from
config.h. In my case, deleting the flag does allow compilation to
proceed further, but it runs into another error down the road and gives
the following message:

ld32: FATAL 2 : Internal: at ../../ld/multigot.c lgot_local_got_offset()
seg_ndx exceeds per_seg_lgot_table
ld32: INFO 152: Output file removed because of error.
make[1]: *** [sander] Error 1
make[1]: Leaving directory
make: *** [serial] Error 2

According to the GCC 4.0.3 manual it seems -m32 is a valid flag for some
architectures, although I didn't see the SGI listed as one of them. If
the flag is not valid for SGIs, what would be the SGI equivalent I need
to use? Any help would be greatly appreciated!

John Shin

Walter Reed Army Institute of Research
Division of Molecular Pharmacology
Department of Biochemistry
503 Robert Grant Ave.
Silver Spring, MD 20910
Tel: 301-319-9054
The AMBER Mail Reflector
To post, send mail to
To unsubscribe, send "unsubscribe amber" to
Received on Sun Dec 10 2006 - 06:07:04 PST
Custom Search