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

Dacobi

Member
Oct 13, 2021
42
5
8
Denmark
openme.gl
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
 

gijoe77

Member
Feb 18, 2019
71
38
18
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
 

Dacobi

Member
Oct 13, 2021
42
5
8
Denmark
openme.gl
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.
 

Elf

Storybook / Retired, ex-staff
Feb 4, 2019
792
252
63
Mountain West (US)
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