Thanks AHelper, I am one step closer it seems. Now I'm recieving the following error, for which googling doesn't seem to be netting any results at the moment.
Code:
/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
Here's the verbose output. It seems to have much more useful information, but I still haven't pinned down the fix yet.
Code:
Using built-in specs.
COLLECT_GCC=sh3eb-elf-gcc
COLLECT_LTO_WRAPPER=/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/lto-wrapper
Target: sh3eb-elf
Configured with: ../configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers : (reconfigured) ../configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers : (reconfigured) ../configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers
Thread model: single
gcc version 4.9.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-I' '/home/mordecai/prizm-gcc/PrizmSDK-0.3/libfxcg/include/'
/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/cc1 -quiet -v -I /home/mordecai/prizm-gcc/PrizmSDK-0.3/libfxcg/include/ ./example.c -quiet -dumpbase example.c -auxbase example -version -o /tmp/ccy2drEj.s
GNU C (GCC) version 4.9.2 (sh3eb-elf)
compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version 3.1.2-p11, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/sys-include"
ignoring nonexistent directory "/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/include"
#include "..." search starts here:
#include <...> search starts here:
/home/mordecai/prizm-gcc/PrizmSDK-0.3/libfxcg/include/
/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/include
/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/include-fixed
End of search list.
GNU C (GCC) version 4.9.2 (sh3eb-elf)
compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version 3.1.2-p11, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 595814ca10a64a613fe7039d5f0f0f56
COLLECT_GCC_OPTIONS='-v' '-I' '/home/mordecai/prizm-gcc/PrizmSDK-0.3/libfxcg/include/'
/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/bin/as -big -o /tmp/ccKVh2Yl.o /tmp/ccy2drEj.s
COMPILER_PATH=/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/:/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/:/usr/local/cross/libexec/gcc/sh3eb-elf/:/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/:/usr/local/cross/lib/gcc/sh3eb-elf/:/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/bin/
LIBRARY_PATH=/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/:/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/lib/
COLLECT_GCC_OPTIONS='-v' '-I' '/home/mordecai/prizm-gcc/PrizmSDK-0.3/libfxcg/include/'
/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/collect2 -plugin /usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/liblto_plugin.so -plugin-opt=/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/lto-wrapper -plugin-opt=-fresolution=/tmp/ccOg4pko.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc-Os-4-200 -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc-Os-4-200 -m shelf /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crt1.o /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crti.o /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crtbegin.o -L/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2 -L/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/lib /tmp/ccKVh2Yl.o -lgcc -lgcc-Os-4-200 -lc -lgcc -lgcc-Os-4-200 /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crtend.o /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crtn.o
/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
Okay more tooling around and symlinking has reduced the number of errors down to this:
Code:
mordecai@HAL-9000:~/prizm-gcc/PrizmSDK-0.3/projects/example/src$ sh3eb-elf-gcc -v ./example.c
Using built-in specs.
COLLECT_GCC=sh3eb-elf-gcc
COLLECT_LTO_WRAPPER=/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/lto-wrapper
Target: sh3eb-elf
Configured with: ../configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers : (reconfigured) ../configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers : (reconfigured) ../configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers
Thread model: single
gcc version 4.9.2 (GCC)
COLLECT_GCC_OPTIONS='-v'
/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/cc1 -quiet -v ./example.c -quiet -dumpbase example.c -auxbase example -version -o /tmp/ccTpnnET.s
GNU C (GCC) version 4.9.2 (sh3eb-elf)
compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version 3.1.2-p11, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/sys-include"
ignoring duplicate directory "/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/include
/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/include-fixed
End of search list.
GNU C (GCC) version 4.9.2 (sh3eb-elf)
compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version 3.1.2-p11, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 595814ca10a64a613fe7039d5f0f0f56
COLLECT_GCC_OPTIONS='-v'
/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/bin/as -big -o /tmp/ccuOroDU.o /tmp/ccTpnnET.s
COMPILER_PATH=/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/:/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/:/usr/local/cross/libexec/gcc/sh3eb-elf/:/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/:/usr/local/cross/lib/gcc/sh3eb-elf/:/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/bin/
LIBRARY_PATH=/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/:/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/lib/
COLLECT_GCC_OPTIONS='-v'
/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/collect2 -plugin /usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/liblto_plugin.so -plugin-opt=/usr/local/cross/libexec/gcc/sh3eb-elf/4.9.2/lto-wrapper -plugin-opt=-fresolution=/tmp/ccpV5bDV.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc-Os-4-200 -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc-Os-4-200 -m shelf /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crt1.o /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crti.o /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crtbegin.o -L/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2 -L/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/lib /tmp/ccuOroDU.o -lgcc -lgcc-Os-4-200 -lc -lgcc -lgcc-Os-4-200 /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crtend.o /usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/crtn.o
/usr/local/cross/lib/gcc/sh3eb-elf/4.9.2/../../../../sh3eb-elf/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status