I just don't get it.. I've now tried to compile a really simple "Hello World" using GCC, but I'm not even able to compile this noob example..
by passing a non existent option, I get a list of valid options for -mabi:
but none of those options work, always the same result: "unknown flag"
If I try the same with cc instead of gcc, I get the usual long disclaimer about "contact SGI to obtain license", followed by missing "fec" (due to missing development CD installation.. which AFAIK requires a license in LicenseManager)
Contents of test.c:
I thought I should be at least able to compile a simple "hello world" which does not require lots of dependencies using gcc? What am I doing wrong?
Code:
$ gcc test.c -o hello
as ERROR parsing -mabi=n32: unknown flag
Code:
$ gcc -mabi=iloveyoutoo test.c -o hello
gcc: error: unrecognized argument in option '-mabi=iloveyoutoo'
gcc: note: valid arguments to '-mabi=' are: 32 64 eabi n32 o64
Code:
$ gcc -mabi=64 test.c -o hello
as ERROR parsing -mabi=64: unknown flag
Code:
$ gcc --version
gcc (GCC) 9.2.0 20190812 (sgugver-0.2.0-mips3-ng)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code:
$ cc test.c -o hello
No such feature exists (-5,116:2) No such file or directory
The MIPSpro C Compiler
(license FEATURE string = cc)
requires a license password.
...... etc etc ....
cc ERROR: cannot exec /usr/lib32/cmplrs/fec
Code:
#include <stdio.h>
int main() {
printf("Hello, cruel world!");
return 0;
}