Hi all,
Just getting back in to my SGI's now i have room to have them running again. I have hit a bit of a snag getting a C++ cross compiler working and im hoping somoene can tell me where i have gone wrong.
The C compiler works and i have compiled quite a bit of working code that is now running merrily on my Octane.
Here's the output of trying to compile a hello world
Its obviously something to do with the missing directory but i dont have the brains to work out what i have done wrong.
any ideas?
Just getting back in to my SGI's now i have room to have them running again. I have hit a bit of a snag getting a C++ cross compiler working and im hoping somoene can tell me where i have gone wrong.
The C compiler works and i have compiled quite a bit of working code that is now running merrily on my Octane.
Here's the output of trying to compile a hello world
Code:
Using built-in specs.
COLLECT_GCC=../bin/mips-sgi-irix6.5-g++
COLLECT_LTO_WRAPPER=/home/pi/irix/cross/libexec/gcc/mips-sgi-irix6.5/9.2.0/lto-wrapper
Target: mips-sgi-irix6.5
Configured with: /nfs/programming/ruby/cross/factory/src/gcc-9.2.0/configure --enable-obsolete --disable-multilib --prefix=/home/pi/irix/cross --target=mips-sgi-irix6.5 --disable-nls --enable-languages=c,c++,lto --disable-libstdcxx --with-build-sysroot=/home/pi/irix/sysroot --enable-lto --enable-tls=no --with-sysroot=/home/pi/irix/sysroot
Thread model: posix
gcc version 9.2.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mabi=n32'
/home/pi/irix/cross/libexec/gcc/mips-sgi-irix6.5/9.2.0/cc1plus -quiet -v hello.cc -quiet -dumpbase hello.cc -mabi=n32 -auxbase hello -version -o /tmp/cc2t8TXO.s
GNU C++14 (GCC) version 9.2.0 (mips-sgi-irix6.5)
compiled by GNU C version 8.3.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/home/pi/irix/cross/lib/gcc/mips-sgi-irix6.5/9.2.0/../../../../mips-sgi-irix6.5/include/c++/9.2.0"
ignoring nonexistent directory "/home/pi/irix/cross/lib/gcc/mips-sgi-irix6.5/9.2.0/../../../../mips-sgi-irix6.5/include/c++/9.2.0/mips-sgi-irix6.5"
ignoring nonexistent directory "/home/pi/irix/cross/lib/gcc/mips-sgi-irix6.5/9.2.0/../../../../mips-sgi-irix6.5/include/c++/9.2.0/backward"
ignoring nonexistent directory "/home/pi/irix/sysroot/usr/local/include"
ignoring duplicate directory "/home/pi/irix/sysroot/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/home/pi/irix/cross/lib/gcc/mips-sgi-irix6.5/9.2.0/include
/home/pi/irix/cross/lib/gcc/mips-sgi-irix6.5/9.2.0/include-fixed
/home/pi/irix/cross/lib/gcc/mips-sgi-irix6.5/9.2.0/../../../../mips-sgi-irix6.5/include
End of search list.
GNU C++14 (GCC) version 9.2.0 (mips-sgi-irix6.5)
compiled by GNU C version 8.3.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: bc2199acf5726b5260672b3fca93fc90
hello.cc:1:13: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
any ideas?