cc ERROR: cannot exec /usr/lib32/cmplrs/fec ?

I ended up installing SGUG RPM which seems to be working nicely.

But the gcc from SGUG always fails with this error:
as ERROR parsing -mabi=n32: unknown flag
 
I can't say for sure, but it looks like you are passing the compiler a bad CFLAG - are you setting up the environment? This is a sample of how I setup my env before compiling anything:

Code:
export CC=gcc
export CXX=g++
export CFLAGS="-std=gnu99 -g -O2 -mips4"
#export CFLAGS="-std=gnu99 -g -O2 -mips4 -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS -D_XOPEN_SOURCE=1000"
export CXXFLAGS="-g -O2 -mips4"
export CPPFLAGS="-I/usr/local/include -I/usr/nekoware/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib"
#export LDFLAGS="-L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib --warn-unresolved-symbols"
export MAKE=gmake
export PERL=/usr/local/bin/perl

perhaps you can show the sample code you are trying to compile
 
I haven't tried it yet, but it seems that running gcc from within sgugshell will solve the problem.
I didn't use any flags, but they are probably set in default IRIX env.
 
Indeed, most SGUG RSE software will be happier when run in sgugshell as it sets the appropriate library paths, among other things
 

About us

  • Silicon Graphics User Group (SGUG) is a community for users, developers, and admirers of Silicon Graphics (SGI) products. We aim to be a friendly hobbyist community for discussing all aspects of SGIs, including use, software development, the IRIX Operating System, and troubleshooting, as well as facilitating hardware exchange.

User Menu