OK, so I finally got around to trying to install PrizmSDK on this machine. Problem is, I forget how I did it on my other one.

I took a look at the setup guide and it says that if I have arch I can install cross-sh3eb-elf-binutils,cross-sh3eb-elf-gcc, and mkg3a with the package manager.

I have Ubuntu, not Arch.

My first question is whether these packages will work: http://wiki.debian.org/SH4/CrossToolchain

Should I just follow that tutorial step-by-step, then install mkg3a, then download and extract PrizmSDK and tell it where my cross toolchain is?


EDIT:

OK, so I just decided to do what it said under "Other Distros".

But I now have problems.


Code:

flyingfisch@Office-Optiplex-745:/usr/src/build-gcc$ make all-target-libgcc
make[1]: Entering directory `/usr/src/build-gcc/libiberty'
make[2]: Entering directory `/usr/src/build-gcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/build-gcc/libiberty/testsuite'
make[1]: Leaving directory `/usr/src/build-gcc/libiberty'
make[1]: Entering directory `/usr/src/build-gcc/lto-plugin'
make  all-am
make[2]: Entering directory `/usr/src/build-gcc/lto-plugin'
make[2]: Leaving directory `/usr/src/build-gcc/lto-plugin'
make[1]: Leaving directory `/usr/src/build-gcc/lto-plugin'
make[1]: Entering directory `/usr/src/build-gcc/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/build-gcc/intl'
make[1]: Entering directory `/usr/src/build-gcc/build-i686-pc-linux-gnu/libiberty'
make[2]: Entering directory `/usr/src/build-gcc/build-i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/build-gcc/build-i686-pc-linux-gnu/libiberty/testsuite'
make[1]: Leaving directory `/usr/src/build-gcc/build-i686-pc-linux-gnu/libiberty'
make[1]: Entering directory `/usr/src/build-gcc/build-i686-pc-linux-gnu/fixincludes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/build-gcc/build-i686-pc-linux-gnu/fixincludes'
make[1]: Entering directory `/usr/src/build-gcc/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=/usr/src/gcc/missing makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local/cross" "infodir=/usr/local/cross/share/info" "libdir=/usr/local/cross/lib" "prefix=/usr/local/cross" "tooldir=/usr/local/cross/sh3eb-elf" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[1]: Leaving directory `/usr/src/build-gcc/zlib'
make[1]: Entering directory `/usr/src/build-gcc/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[1]: Leaving directory `/usr/src/build-gcc/libcpp'
make[1]: Entering directory `/usr/src/build-gcc/libdecnumber'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/build-gcc/libdecnumber'
make[1]: Entering directory `/usr/src/build-gcc/fixincludes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/build-gcc/fixincludes'
make[1]: Entering directory `/usr/src/build-gcc/gcc'
Makefile:3795: warning: overriding commands for target `gt-sh.h'
../../gcc/./gcc/config/sh/t-sh:123: warning: ignoring old commands for target `gt-sh.h'
make[1]: Leaving directory `/usr/src/build-gcc/gcc'
Checking multilib configuration for libgcc...
mkdir -p -- sh3eb-elf/libgcc
Configuring in sh3eb-elf/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... i686-pc-linux-gnu
checking host system type... sh3eb-unknown-elf
checking for sh3eb-elf-ar... /usr/local/cross/sh3eb-elf/bin/ar
checking for sh3eb-elf-lipo... sh3eb-elf-lipo
checking for sh3eb-elf-nm... /usr/src/build-gcc/./gcc/nm
checking for sh3eb-elf-ranlib... /usr/local/cross/sh3eb-elf/bin/ranlib
checking for sh3eb-elf-strip... /usr/local/cross/sh3eb-elf/bin/strip
checking whether ln -s works... yes
checking for sh3eb-elf-gcc...  /usr/src/build-gcc/./gcc/xgcc -B/usr/src/build-gcc/./gcc/ -B/usr/local/cross/sh3eb-elf/bin/ -B/usr/local/cross/sh3eb-elf/lib/ -isystem /usr/local/cross/sh3eb-elf/include -isystem /usr/local/cross/sh3eb-elf/sys-include   
checking for suffix of object files... configure: error: in `/usr/src/build-gcc/sh3eb-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make: *** [configure-target-libgcc] Error 1


Config.log:


Code:

flyingfisch@Office-Optiplex-745:/usr/src/build-gcc$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ ../gcc/./configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers --with-gmp=/usr/gcc_4_7 --with-mpfr=/usr/gcc_4_7 --with-mpc=/usr/gcc_4_7

## --------- ##
## Platform. ##
## --------- ##

hostname = Office-Optiplex-745
uname -m = i686
uname -r = 3.2.0-37-generic-pae
uname -s = Linux
uname -v = #58-Ubuntu SMP Thu Jan 24 15:51:02 UTC 2013

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/lib/lightdm/lightdm
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/cross/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2222: checking build system type
configure:2236: result: i686-pc-linux-gnu
configure:2283: checking host system type
configure:2296: result: i686-pc-linux-gnu
configure:2316: checking target system type
configure:2329: result: sh3eb-unknown-elf
configure:2383: checking for a BSD-compatible install
configure:2451: result: /usr/bin/install -c
configure:2462: checking whether ln works
configure:2484: result: yes
configure:2488: checking whether ln -s works
configure:2492: result: yes
configure:2499: checking for a sed that does not truncate output
configure:2563: result: /bin/sed
configure:2572: checking for gawk
configure:2588: found /usr/bin/gawk
configure:2599: result: gawk
configure:3913: checking for gcc
configure:3929: found /usr/bin/gcc
configure:3940: result: gcc
configure:4169: checking for C compiler version
configure:4178: gcc --version >&5
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 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.

configure:4189: $? = 0
configure:4178: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configure:4189: $? = 0
configure:4178: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4189: $? = 4
configure:4178: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4189: $? = 4
configure:4209: checking for C compiler default output file name
configure:4231: gcc    conftest.c  >&5
configure:4235: $? = 0
configure:4272: result: a.out
configure:4288: checking whether the C compiler works
configure:4297: ./a.out
configure:4301: $? = 0
configure:4316: result: yes
configure:4323: checking whether we are cross compiling
configure:4325: result: no
configure:4328: checking for suffix of executables
configure:4335: gcc -o conftest    conftest.c  >&5
configure:4339: $? = 0
configure:4361: result:
configure:4367: checking for suffix of object files
configure:4389: gcc -c   conftest.c >&5
configure:4393: $? = 0
configure:4414: result: o
configure:4418: checking whether we are using the GNU C compiler
configure:4437: gcc -c   conftest.c >&5
configure:4437: $? = 0
configure:4446: result: yes
configure:4455: checking whether gcc accepts -g
configure:4475: gcc -c -g  conftest.c >&5
configure:4475: $? = 0
configure:4516: result: yes
configure:4533: checking for gcc option to accept ISO C89
configure:4597: gcc  -c -g -O2  conftest.c >&5
configure:4597: $? = 0
configure:4610: result: none needed
configure:4688: checking for g++
configure:4704: found /usr/bin/g++
configure:4715: result: g++
configure:4742: checking for C++ compiler version
configure:4751: g++ --version >&5
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 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.

configure:4762: $? = 0
configure:4751: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configure:4762: $? = 0
configure:4751: g++ -V >&5
g++: error: unrecognized option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4762: $? = 4
configure:4751: g++ -qversion >&5
g++: error: unrecognized option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:4762: $? = 4
configure:4766: checking whether we are using the GNU C++ compiler
configure:4785: g++ -c   conftest.cpp >&5
configure:4785: $? = 0
configure:4794: result: yes
configure:4803: checking whether g++ accepts -g
configure:4823: g++ -c -g  conftest.cpp >&5
configure:4823: $? = 0
configure:4864: result: yes
configure:4953: checking for gnatbind
configure:4983: result: no
configure:5045: checking for gnatmake
configure:5075: result: no
configure:5094: checking whether compiler driver understands Ada
configure:5117: result: no
configure:5126: checking how to compare bootstrapped objects
configure:5151: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5167: checking for objdir
configure:5182: result: .libs
configure:5348: checking for the correct version of gmp.h
configure:5368: gcc -c -g -O2 -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include   conftest.c >&5
configure:5368: $? = 0
configure:5386: gcc -c -g -O2 -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include   conftest.c >&5
configure:5386: $? = 0
configure:5387: result: yes
configure:5403: checking for the correct version of mpfr.h
configure:5421: gcc -c -g -O2 -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include   conftest.c >&5
configure:5421: $? = 0
configure:5438: gcc -c -g -O2 -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include   conftest.c >&5
configure:5438: $? = 0
configure:5439: result: yes
configure:5456: checking for the correct version of mpc.h
configure:5473: gcc -c -g -O2 -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include   conftest.c >&5
configure:5473: $? = 0
configure:5489: gcc -c -g -O2 -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include   conftest.c >&5
configure:5489: $? = 0
configure:5490: result: yes
configure:5508: checking for the correct version of the gmp/mpfr/mpc libraries
configure:5539: gcc -o conftest -g -O2 -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include    conftest.c  -L/usr/gcc_4_7/lib -L/usr/gcc_4_7/lib -L/usr/gcc_4_7/lib -lmpc -lmpfr -lgmp >&5
configure:5539: $? = 0
configure:5540: result: yes
configure:5724: checking for PWL_handle_timeout in -lpwl
configure:5749: gcc -o conftest -g -O2    conftest.c -lpwl   >&5
/usr/bin/ld: cannot find -lpwl
collect2: ld returned 1 exit status
configure:5749: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char PWL_handle_timeout ();
| int
| main ()
| {
| return PWL_handle_timeout ();
|   ;
|   return 0;
| }
configure:5758: result: no
configure:5772: checking for version 0.11 (revision 0 or later) of PPL
configure:5789: gcc -c -g -O2  -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include   conftest.c >&5
conftest.c:10:19: fatal error: ppl_c.h: No such file or directory
compilation terminated.
configure:5789: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include "ppl_c.h"
| int
| main ()
| {
|
|     #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
|     choke me
|     #endif
|
|   ;
|   return 0;
| }
configure:5793: result: no
configure:7218: checking for default BUILD_CONFIG
configure:7250: result:
configure:7740: checking for bison
configure:7756: found /usr/bin/bison
configure:7767: result: bison -y
configure:7788: checking for bison
configure:7804: found /usr/bin/bison
configure:7815: result: bison
configure:7835: checking for gm4
configure:7865: result: no
configure:7835: checking for gnum4
configure:7865: result: no
configure:7835: checking for m4
configure:7851: found /usr/bin/m4
configure:7862: result: m4
configure:7882: checking for flex
configure:7898: found /usr/bin/flex
configure:7909: result: flex
configure:7930: checking for flex
configure:7946: found /usr/bin/flex
configure:7957: result: flex
configure:7977: checking for makeinfo
configure:8007: result: no
configure:8038: checking for expect
configure:8068: result: no
configure:8087: checking for runtest
configure:8117: result: no
configure:8232: checking for ar
configure:8248: found /usr/bin/ar
configure:8259: result: ar
configure:8373: checking for as
configure:8389: found /usr/bin/as
configure:8400: result: as
configure:8514: checking for dlltool
configure:8544: result: no
configure:8655: checking for ld
configure:8671: found /usr/bin/ld
configure:8682: result: ld
configure:8796: checking for lipo
configure:8826: result: no
configure:8937: checking for nm
configure:8953: found /usr/bin/nm
configure:8964: result: nm
configure:9078: checking for ranlib
configure:9094: found /usr/bin/ranlib
configure:9105: result: ranlib
configure:9214: checking for strip
configure:9230: found /usr/bin/strip
configure:9241: result: strip
configure:9350: checking for windres
configure:9380: result: no
configure:9491: checking for windmc
configure:9521: result: no
configure:9632: checking for objcopy
configure:9648: found /usr/bin/objcopy
configure:9659: result: objcopy
configure:9773: checking for objdump
configure:9789: found /usr/bin/objdump
configure:9800: result: objdump
configure:9914: checking for sh3eb-elf-cc
configure:9944: result: no
configure:9914: checking for sh3eb-elf-gcc
configure:9944: result: no
configure:10075: checking for sh3eb-elf-c++
configure:10105: result: no
configure:10075: checking for sh3eb-elf-g++
configure:10105: result: no
configure:10075: checking for sh3eb-elf-cxx
configure:10105: result: no
configure:10075: checking for sh3eb-elf-gxx
configure:10105: result: no
configure:10236: checking for sh3eb-elf-gcc
configure:10266: result: no
configure:10392: checking for sh3eb-elf-gcj
configure:10422: result: no
configure:10553: checking for sh3eb-elf-gfortran
configure:10583: result: no
configure:10714: checking for sh3eb-elf-gccgo
configure:10744: result: no
configure:10844: checking for ar
configure:10862: found /usr/local/cross/sh3eb-elf/bin/ar
configure:10874: result: /usr/local/cross/sh3eb-elf/bin/ar
configure:11074: checking for as
configure:11092: found /usr/local/cross/sh3eb-elf/bin/as
configure:11104: result: /usr/local/cross/sh3eb-elf/bin/as
configure:11304: checking for dlltool
configure:11337: result: no
configure:11415: checking for sh3eb-elf-dlltool
configure:11445: result: no
configure:11534: checking for ld
configure:11552: found /usr/local/cross/sh3eb-elf/bin/ld
configure:11564: result: /usr/local/cross/sh3eb-elf/bin/ld
configure:11764: checking for lipo
configure:11797: result: no
configure:11875: checking for sh3eb-elf-lipo
configure:11905: result: no
configure:11994: checking for nm
configure:12012: found /usr/local/cross/sh3eb-elf/bin/nm
configure:12024: result: /usr/local/cross/sh3eb-elf/bin/nm
configure:12224: checking for objdump
configure:12242: found /usr/local/cross/sh3eb-elf/bin/objdump
configure:12254: result: /usr/local/cross/sh3eb-elf/bin/objdump
configure:12454: checking for ranlib
configure:12472: found /usr/local/cross/sh3eb-elf/bin/ranlib
configure:12484: result: /usr/local/cross/sh3eb-elf/bin/ranlib
configure:12684: checking for strip
configure:12702: found /usr/local/cross/sh3eb-elf/bin/strip
configure:12714: result: /usr/local/cross/sh3eb-elf/bin/strip
configure:12914: checking for windres
configure:12947: result: no
configure:13025: checking for sh3eb-elf-windres
configure:13055: result: no
configure:13144: checking for windmc
configure:13177: result: no
configure:13255: checking for sh3eb-elf-windmc
configure:13285: result: no
configure:13352: checking where to find the target ar
configure:13380: result: pre-installed in /usr/local/cross/sh3eb-elf/bin
configure:13394: checking where to find the target as
configure:13422: result: pre-installed in /usr/local/cross/sh3eb-elf/bin
configure:13436: checking where to find the target cc
configure:13459: result: just compiled
configure:13478: checking where to find the target c++
configure:13504: result: just compiled
configure:13523: checking where to find the target c++ for libstdc++
configure:13549: result: just compiled
configure:13568: checking where to find the target dlltool
configure:13605: result: pre-installed
configure:13610: checking where to find the target gcc
configure:13633: result: just compiled
configure:13652: checking where to find the target gcj
configure:13692: result: pre-installed
configure:13697: checking where to find the target gfortran
configure:13737: result: pre-installed
configure:13742: checking where to find the target gccgo
configure:13782: result: pre-installed
configure:13787: checking where to find the target ld
configure:13815: result: pre-installed in /usr/local/cross/sh3eb-elf/bin
configure:13829: checking where to find the target lipo
configure:13855: result: pre-installed
configure:13860: checking where to find the target nm
configure:13888: result: pre-installed in /usr/local/cross/sh3eb-elf/bin
configure:13902: checking where to find the target objdump
configure:13930: result: pre-installed in /usr/local/cross/sh3eb-elf/bin
configure:13944: checking where to find the target ranlib
configure:13972: result: pre-installed in /usr/local/cross/sh3eb-elf/bin
configure:13986: checking where to find the target strip
configure:14014: result: pre-installed in /usr/local/cross/sh3eb-elf/bin
configure:14028: checking where to find the target windres
configure:14065: result: pre-installed
configure:14070: checking where to find the target windmc
configure:14107: result: pre-installed
configure:14140: checking whether to enable maintainer-specific portions of Makefiles
configure:14149: result: no
configure:14182: checking whether -fkeep-inline-functions is supported
configure:14201: gcc -c -g -O2 -fkeep-inline-functions  conftest.c >&5
configure:14201: $? = 0
configure:14202: result: yes
configure:14399: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on Office-Optiplex-745

config.status:953: creating Makefile

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=sh3eb-elf
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_lib_pwl_PWL_handle_timeout=no
ac_cv_objext=o
ac_cv_path_AR_FOR_TARGET=/usr/local/cross/sh3eb-elf/bin/ar
ac_cv_path_AS_FOR_TARGET=/usr/local/cross/sh3eb-elf/bin/as
ac_cv_path_LD_FOR_TARGET=/usr/local/cross/sh3eb-elf/bin/ld
ac_cv_path_NM_FOR_TARGET=/usr/local/cross/sh3eb-elf/bin/nm
ac_cv_path_OBJDUMP_FOR_TARGET=/usr/local/cross/sh3eb-elf/bin/objdump
ac_cv_path_RANLIB_FOR_TARGET=/usr/local/cross/sh3eb-elf/bin/ranlib
ac_cv_path_SED=/bin/sed
ac_cv_path_STRIP_FOR_TARGET=/usr/local/cross/sh3eb-elf/bin/strip
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=ar
ac_cv_prog_AS=as
ac_cv_prog_AWK=gawk
ac_cv_prog_BISON=bison
ac_cv_prog_FLEX=flex
ac_cv_prog_LD=ld
ac_cv_prog_LEX=flex
ac_cv_prog_M4=m4
ac_cv_prog_NM=nm
ac_cv_prog_OBJCOPY=objcopy
ac_cv_prog_OBJDUMP=objdump
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_STRIP=strip
ac_cv_prog_YACC='bison -y'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_target=sh3eb-unknown-elf
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
gcc_cv_tool_dirs=/usr/local/cross/libexec/gcc/sh3eb-elf/4.6.2:/usr/local/cross/libexec/gcc/sh3eb-elf:/usr/lib/gcc/sh3eb-elf/4.6.2:/usr/lib/gcc/sh3eb-elf:/usr/local/cross/sh3eb-elf/bin/sh3eb-elf/4.6.2:/usr/local/cross/sh3eb-elf/bin:
gcc_cv_tool_prefix=/usr/local/cross
lt_cv_objdir=.libs

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='ar'
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET='/usr/local/cross/sh3eb-elf/bin/ar'
AS='as'
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET='/usr/local/cross/sh3eb-elf/bin/as'
AWK='gawk'
BISON='bison'
BUILD_CONFIG=''
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD='-g -O2'
CFLAGS_FOR_TARGET='-g -O2'
COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD='-g -O2'
CXXFLAGS_FOR_TARGET='-g -O2'
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DLT_OBJDIR=\".libs/\"'
DLLTOOL='dlltool'
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET='sh3eb-elf-dlltool'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT='expect'
FLAGS_FOR_TARGET=' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
FLEX='flex'
GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET='sh3eb-elf-gcj'
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET='sh3eb-elf-gfortran'
GNATBIND='no'
GNATMAKE='no'
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET='sh3eb-elf-gccgo'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='ld'
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET='/usr/local/cross/sh3eb-elf/bin/ld'
LEX='flex'
LIBOBJS=''
LIBS=''
LIPO='lipo'
LIPO_FOR_TARGET='sh3eb-elf-lipo'
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4='m4'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='/usr/src/gcc/missing makeinfo'
NM='nm'
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET='/usr/local/cross/sh3eb-elf/bin/nm'
OBJCOPY='objcopy'
OBJDUMP='objdump'
OBJDUMP_FOR_TARGET='/usr/local/cross/sh3eb-elf/bin/objdump'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET='/usr/local/cross/sh3eb-elf/bin/ranlib'
RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
RPATH_ENVVAR='LD_LIBRARY_PATH'
RUNTEST='runtest'
SED='/bin/sed'
SHELL='/bin/bash'
STRIP='strip'
STRIP_FOR_TARGET='/usr/local/cross/sh3eb-elf/bin/strip'
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../gcc/./configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers --with-gmp=/usr/gcc_4_7 --with-mpfr=/usr/gcc_4_7 --with-mpc=/usr/gcc_4_7'
WINDMC='windmc'
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET='sh3eb-elf-windmc'
WINDRES='windres'
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET='sh3eb-elf-windres'
YACC='bison -y'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_configargs=' --cache-file=../config.cache '\''--prefix=/usr/local/cross'\'' '\''--disable-nls'\'' '\''--without-headers'\'' '\''--with-gmp=/usr/gcc_4_7'\'' '\''--with-mpfr=/usr/gcc_4_7'\'' '\''--with-mpc=/usr/gcc_4_7'\'' '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s&^&sh3eb-elf-&'\'' --disable-option-checking'
build_configdirs=' libiberty fixincludes'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_noncanonical='i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_tooldir='${exec_prefix}/sh3eb-elf'
build_vendor='pc'
clooginc=''
clooglibs=''
compare_exclusions='gcc/cc*-checksum$(objext) | gcc/ada/*tools/*'
config_shell='/bin/bash'
configdirs=' intl libiberty zlib libcpp libdecnumber fixincludes gcc lto-plugin'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
extra_host_libiberty_configure_flags='--enable-shared'
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc='-I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include '
gmplibs='-L/usr/gcc_4_7/lib -L/usr/gcc_4_7/lib -L/usr/gcc_4_7/lib -lmpc -lmpfr -lgmp'
host='i686-pc-linux-gnu'
host_alias=''
host_configargs=' --cache-file=./config.cache  '\''--prefix=/usr/local/cross'\'' '\''--disable-nls'\'' '\''--without-headers'\'' '\''--with-gmp=/usr/gcc_4_7'\'' '\''--with-mpfr=/usr/gcc_4_7'\'' '\''--with-mpc=/usr/gcc_4_7'\'' '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s&^&sh3eb-elf-&'\'' --disable-option-checking'
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags='-static-libstdc++ -static-libgcc'
poststage1_libs=''
pplinc=''
ppllibs=''
prefix='/usr/local/cross'
program_transform_name='s&^&sh3eb-elf-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags='-g -fkeep-inline-functions'
stage1_checking='--enable-checking=yes,types'
stage1_languages='c,lto'
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='sh3eb-unknown-elf'
target_alias='sh3eb-elf'
target_configargs='--cache-file=./config.cache --enable-multilib --with-cross-host=i686-pc-linux-gnu   '\''--prefix=/usr/local/cross'\'' '\''--disable-nls'\'' '\''--without-headers'\'' '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s&^&sh3eb-elf-&'\'' --disable-option-checking'
target_configdirs=' libgcc libstdc++-v3 libssp libquadmath'
target_cpu='sh3eb'
target_noncanonical='sh3eb-elf'
target_os='elf'
target_subdir='sh3eb-elf'
target_vendor='unknown'
tooldir='${exec_prefix}/sh3eb-elf'

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag='/dev/null'
host_makefile_frag='../gcc/./config/mh-x86omitfp'
ospace_frag='/dev/null'
serialization_dependencies='serdep.tmp'
target_makefile_frag='/dev/null'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define LT_OBJDIR ".libs/"

configure: exit 0



Any ideas?

EDIT2: just FYI, make all-gcc and make install-gcc ran with no errors. Wink

EDIT3: I also have made sure that i ran configure with export PATH=$PATH:/usr/local/cross/bin set.

also:

Code:

flyingfisch@Office-Optiplex-745:/usr/local/cross/bin$ ls
sh3eb-elf-addr2line  sh3eb-elf-gcc        sh3eb-elf-objdump
sh3eb-elf-ar         sh3eb-elf-gcc-4.6.2  sh3eb-elf-ranlib
sh3eb-elf-as         sh3eb-elf-gcov       sh3eb-elf-readelf
sh3eb-elf-c++        sh3eb-elf-gprof      sh3eb-elf-size
sh3eb-elf-c++filt    sh3eb-elf-ld         sh3eb-elf-strings
sh3eb-elf-cpp        sh3eb-elf-ld.bfd     sh3eb-elf-strip
sh3eb-elf-elfedit    sh3eb-elf-nm
sh3eb-elf-g++        sh3eb-elf-objcopy
http://gcc.gnu.org/wiki/FAQ#configure_suffix

Based on its suggestions, I see several problems:
Code:
configure:4178: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4189: $? = 4
configure:4178: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.



Code:
configure:5789: gcc -c -g -O2  -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include -I/usr/gcc_4_7/include   conftest.c >&5
conftest.c:10:19: fatal error: ppl_c.h: No such file or directory

So either you have some feature flags on you don't mean to, or you're missing some libraries, or maybe you have a version mismatch. The fact that GCC is expected to have a -qversion flag but doesn't suggests that last one to me.
Please refer to the WikiPrizm PrizmSDK Setup article's required packages, specifically ppl-pwl.
Installed libppl-dev and libpwl-dev, still getting the same error.
Does that mean you got the non-dev packages as the wiki said? Also, paste your config.log again
cat config.log | xclip gives me:


Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ ../gcc/./configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers

## --------- ##
## Platform. ##
## --------- ##

hostname = Office-Optiplex-745
uname -m = i686
uname -r = 3.2.0-37-generic-pae
uname -s = Linux
uname -v = #58-Ubuntu SMP Thu Jan 24 15:51:02 UTC 2013

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/lib/lightdm/lightdm
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/cross/bin
PATH: /usr/local/cross/bin
PATH: /usr/local/cross/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2222: checking build system type
configure:2236: result: i686-pc-linux-gnu
configure:2283: checking host system type
configure:2296: result: i686-pc-linux-gnu
configure:2316: checking target system type
configure:2329: result: sh3eb-unknown-elf
configure:2383: checking for a BSD-compatible install
configure:2451: result: /usr/bin/install -c
configure:2462: checking whether ln works
configure:2484: result: yes
configure:2488: checking whether ln -s works
configure:2492: result: yes
configure:2499: checking for a sed that does not truncate output
configure:2563: result: /bin/sed
configure:2572: checking for gawk
configure:2588: found /usr/bin/gawk
configure:2599: result: gawk
configure:3913: checking for gcc
configure:3929: found /usr/bin/gcc
configure:3940: result: gcc
configure:4169: checking for C compiler version
configure:4178: gcc --version >&5
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 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.

configure:4189: $? = 0
configure:4178: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configure:4189: $? = 0
configure:4178: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4189: $? = 4
configure:4178: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4189: $? = 4
configure:4209: checking for C compiler default output file name
configure:4231: gcc    conftest.c  >&5
configure:4235: $? = 0
configure:4272: result: a.out
configure:4288: checking whether the C compiler works
configure:4297: ./a.out
configure:4301: $? = 0
configure:4316: result: yes
configure:4323: checking whether we are cross compiling
configure:4325: result: no
configure:4328: checking for suffix of executables
configure:4335: gcc -o conftest    conftest.c  >&5
configure:4339: $? = 0
configure:4361: result:
configure:4367: checking for suffix of object files
configure:4389: gcc -c   conftest.c >&5
configure:4393: $? = 0
configure:4414: result: o
configure:4418: checking whether we are using the GNU C compiler
configure:4437: gcc -c   conftest.c >&5
configure:4437: $? = 0
configure:4446: result: yes
configure:4455: checking whether gcc accepts -g
configure:4475: gcc -c -g  conftest.c >&5
configure:4475: $? = 0
configure:4516: result: yes
configure:4533: checking for gcc option to accept ISO C89
configure:4597: gcc  -c -g -O2  conftest.c >&5
configure:4597: $? = 0
configure:4610: result: none needed
configure:4688: checking for g++
configure:4704: found /usr/bin/g++
configure:4715: result: g++
configure:4742: checking for C++ compiler version
configure:4751: g++ --version >&5
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 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.

configure:4762: $? = 0
configure:4751: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configure:4762: $? = 0
configure:4751: g++ -V >&5
g++: error: unrecognized option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4762: $? = 4
configure:4751: g++ -qversion >&5
g++: error: unrecognized option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:4762: $? = 4
configure:4766: checking whether we are using the GNU C++ compiler
configure:4785: g++ -c   conftest.cpp >&5
configure:4785: $? = 0
configure:4794: result: yes
configure:4803: checking whether g++ accepts -g
configure:4823: g++ -c -g  conftest.cpp >&5
configure:4823: $? = 0
configure:4864: result: yes
configure:4953: checking for gnatbind
configure:4983: result: no
configure:5045: checking for gnatmake
configure:5075: result: no
configure:5094: checking whether compiler driver understands Ada
configure:5117: result: no
configure:5126: checking how to compare bootstrapped objects
configure:5151: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5167: checking for objdir
configure:5182: result: .libs
configure:5348: checking for the correct version of gmp.h
configure:5368: gcc -c -g -O2   conftest.c >&5
configure:5368: $? = 0
configure:5386: gcc -c -g -O2   conftest.c >&5
configure:5386: $? = 0
configure:5387: result: yes
configure:5403: checking for the correct version of mpfr.h
configure:5421: gcc -c -g -O2   conftest.c >&5
configure:5421: $? = 0
configure:5438: gcc -c -g -O2   conftest.c >&5
configure:5438: $? = 0
configure:5439: result: yes
configure:5456: checking for the correct version of mpc.h
configure:5473: gcc -c -g -O2   conftest.c >&5
conftest.c:10:17: fatal error: mpc.h: No such file or directory
compilation terminated.
configure:5473: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include <mpc.h>
| int
| main ()
| {
|
|     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
|     choke me
|     #endif
|
|   ;
|   return 0;
| }
configure:5498: result: no
configure:5564: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=sh3eb-elf
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_target=sh3eb-unknown-elf
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
lt_cv_objdir=.libs

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET=''
AWK='gawk'
BISON=''
BUILD_CONFIG=''
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET=''
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT=''
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET=''
GNATBIND='no'
GNATMAKE='no'
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SED='/bin/sed'
SHELL='/bin/bash'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../gcc/./configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers'
WINDMC=''
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_configargs=''
build_configdirs='build-libiberty build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_noncanonical='i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_tooldir=''
build_vendor='pc'
clooginc=''
clooglibs=''
compare_exclusions=''
config_shell='/bin/bash'
configdirs='intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
extra_host_libiberty_configure_flags=''
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc=''
gmplibs='-lmpc -lmpfr -lgmp'
host='i686-pc-linux-gnu'
host_alias=''
host_configargs=''
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags=''
poststage1_libs=''
pplinc=''
ppllibs=''
prefix='/usr/local/cross'
program_transform_name='s&^&sh3eb-elf-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='sh3eb-unknown-elf'
target_alias='sh3eb-elf'
target_configargs=''
target_configdirs='target-libgcc target-libgloss target-newlib target-libgomp target-libstdc++-v3 target-libmudflap target-libssp target-libquadmath target-libgfortran target-boehm-gc target-libffi target-zlib target-qthreads target-libjava target-libobjc target-libada target-libgo target-examples target-groff target-gperf target-rda'
target_cpu='sh3eb'
target_noncanonical='sh3eb-elf'
target_os='elf'
target_subdir='sh3eb-elf'
target_vendor='unknown'
tooldir=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag=''
host_makefile_frag='config/mh-x86omitfp'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define LT_OBJDIR ".libs/"

configure: exit 1
Quote:

Code:
configure:5456: checking for the correct version of mpc.h
configure:5473: gcc -c -g -O2   conftest.c >&5
conftest.c:10:17: fatal error: mpc.h: No such file or directory
compilation terminated.
configure:5473: $? = 1
configure: failed program was:
You don't have mpc development headers installed in a recognized location.
I installed the mpc headers from source.

I followed this tutorial to install the headers, and I configured gcc with this line:

../gcc/./configure --target=sh3eb-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers --with-gmp=/usr/gcc_4_7 --with-mpfr=/usr/gcc_4_7 --with-mpc=/usr/gcc_4_7
bump.

I may end up just doing it with WINE if I can't get it to work. Messy, but...


EDIT:

Are there any debian packages I can install instead of building gcc?
I built binutils packages a while ago, but never got around to GCC itself:
http://media.taricorp.net/deb/

I suppose I can have a go at packaging GCC too, if you're interested.
so just add that to my apt list?

EDIT: nvr. also, I got GCC done, so i think all i need is binutils.

Do I just extract this to /src/binutils?
well, i restarted from scratch and got it setup.... not sure what was going on.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement