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

Dacobi

Member
Oct 13, 2021
42
5
8
Denmark
openme.gl
I just booted up my O2 for the first time in a few months to try and compile some OGL code.

I haven't done any development on it before and found that cc doesn't work.

When I try to compile any C file I get
cc ERROR: cannot exec /usr/lib32/cmplrs/fec

I have in swmgr:
Base Compiler Development Environment
C/C++ Headers/Libraries
Development System
IRIX Development Headers/...
X11 Development Environment

What am I missing?
 

TruHobbyist

Member
Jul 27, 2019
41
38
18
Bash:
bash-2.05b# showfiles | grep '/usr/lib32/cmplrs/fec'
f 56539 3073620 compiler_eoe.sw.lboot   usr/cpu/sysgen/root/usr/lib32/cmplrs/fec
bash-2.05b#
You need the compiler_eoe product:

Bash:
bash-2.05b# find /mnt/suse/IRIX/i -name '*compiler_eoe*'
/mnt/suse/IRIX/i/30/Overlays_2_of_3/dist/compiler_eoe_744_6530m.man
/mnt/suse/IRIX/i/30/Overlays_2_of_3/dist/compiler_eoe_744_6530m
/mnt/suse/IRIX/i/30/Overlays_2_of_3/dist/compiler_eoe_744_6530m.sw
/mnt/suse/IRIX/i/30/Overlays_2_of_3/dist/compiler_eoe_744_6530m.idb
/mnt/suse/IRIX/i/30/Overlays_2_of_3/dist/compiler_eoe_744_6530m.sw64
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/relnotes/compiler_eoe
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist_modules/compiler_eoe.man
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist_modules/compiler_eoe.sw
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist_modules/compiler_eoe
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist_modules/compiler_eoe.idb
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist_modules/compiler_eoe.sw64
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/docs_modules/relnotes/compiler_eoe
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist/compiler_eoe.man
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist/compiler_eoe.sw
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist/compiler_eoe
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist/compiler_eoe.idb
/mnt/suse/IRIX/i/30/Compiler_Execution_Environment_7_4/dist/compiler_eoe.sw64
/mnt/suse/IRIX/i/6.5/IRIX_6_5_Base_Documentation_June_1998/usr/relnotes/compiler_eoe
/mnt/suse/IRIX/i/6.5/IRIX_6_5_Foundation_1/dist/compiler_eoe.man
/mnt/suse/IRIX/i/6.5/IRIX_6_5_Foundation_1/dist/compiler_eoe.sw
/mnt/suse/IRIX/i/6.5/IRIX_6_5_Foundation_1/dist/compiler_eoe
/mnt/suse/IRIX/i/6.5/IRIX_6_5_Foundation_1/dist/compiler_eoe.idb
/mnt/suse/IRIX/i/6.5/IRIX_6_5_Foundation_1/dist/compiler_eoe.sw64
bash-2.05b#
compiler_eoe can be found on IRIX 6.5 Foundation 1 CD and Compiler Execution Enironment 7.4 (in case you have SGI MIPSpro version 7.4 installed).

Regards
 

Dacobi

Member
Oct 13, 2021
42
5
8
Denmark
openme.gl
I found "SGI CD: MIPSpro All-Compiler CD May 1999 for IRIX 6.5 and later"
but can't seem to find "SGI CD: Compiler Execution Environment 7.4" only 7.3

Do you know where I can find 7.4?

The other files I already have in Foundation 1 and Overlay 2, version 30
 

Dacobi

Member
Oct 13, 2021
42
5
8
Denmark
openme.gl
When installing "SGI CD: Compiler Execution Environment 7.4" Software Manager said it was already installed.

But installing "SGI CD: MIPSpro All-Compiler CD May 1999 for IRIX 6.5 and later"
gave me a working C compiler. However c++ is not installed even though C++ Front-End 7.3 is listed as installed in Software Manager?
 

Dacobi

Member
Oct 13, 2021
42
5
8
Denmark
openme.gl
I getting a missing dependency: c++_dev.sw.c++ (C++ Compiler)

But I think it's because I was expecting /usr/bin/c++ where as I already have /usr/bin/DCC and /usr/bin/NCC ?
 

Dacobi

Member
Oct 13, 2021
42
5
8
Denmark
openme.gl
I just wanted a C++ compiler and I already have /usr/bin/DCC installed and working although its not really standard C++

I've never used C++ on IRIX so I was expecting /usr/bin/c++
 

gijoe77

Member
Feb 18, 2019
71
38
18
SGI sold their compilers separately, so it was a bit more of a to-do to get a all the CD's lined up and installed to have a working compiler. Also MIPSpro sort of died at a certain version of c++ (I forget hat standard off hand), but there is GCC that we have working now for the latest and greatest compilers
 

Dacobi

Member
Oct 13, 2021
42
5
8
Denmark
openme.gl
I've installed GCC from Freeware CD 2 of 4.

/usr/freeware/bin/gcc seems to work

but /usr/freeware/bin/g++ gives many pages of errors in /usr/freeware/lib/gcc-lib/mips-sgi-irix.../include/...
when compiling simple hello world.
 

gijoe77

Member
Feb 18, 2019
71
38
18
so first question would be what version of IRIX do you have?

What you should try (if you have harddrive space) is open all these in swmgr to resolve any conflicts:

Code:
Try opening all these in this order ("open additional"):

* 7.4 compiler execution env
* dev foundation 1.3
* development libraries
* foundation 1
* foundation 2
* overlays 1
* overlays 2
* overlays 3

At that point I believe you should be able to customize and unselect everything and pick and choose.
the files I linked above should have everything you need for the compiler side, you will need to open the base files and overlays for your version of IRIX

I can't really speak to why freeware is failing, maybe it depends on something in the OS, I'm not sure

edit - basically start in swmgr with what you want to install, then keep adding stuff until all the conflicts resolve themselves :)
 
Last edited:

Dacobi

Member
Oct 13, 2021
42
5
8
Denmark
openme.gl
IRIX version should be 6.5.30, but uname -a and system manager just say 6.5.

It seems the MIPSpro compilers are working.

GNU C Compiler is also working, just build a GLUT example I had lying around.

But GNU C++ Compiler had something weird with the include files.
/usr/freeware/.../include/c++/exception is not a header but a folder with exception header inside.
same thing with /usr/freeware/.../include/c++/exception_defines.h/exception_defines.h
This caused all the compiler errors when trying to compile with g++.

So after moving these headers back in the include/c++ folder I can compile a simple C++ Hello World with g++.
Don't know if there are more problems when including more headers.

Are the freeware CD's the preferred way to install GCC or other GNU tools?
 

gijoe77

Member
Feb 18, 2019
71
38
18
do a uname -aR for version

freeware is very old, and I don't really know much about how well it works - oldest I ever used was nekoware's gcc

preferred way to install GCC is the latest and greatest SGUG version
 

gijoe77

Member
Feb 18, 2019
71
38
18
yes - but someone else would have to comment further, I haven't messed with it yet (I'm using the version of GCC before the RPM's got adopted)
 

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