Hello!
I'm trying to build a gcc cross compiler for a coldfire target on a
Intel OS X (10.5.7) machine. I get the following error when trying to
build (in libgcc):
checking for suffix of object files... configure: error: cannot
compute suffix of object files: cannot compile
This is while compiling under: i686-apple-darwin9-gcc-4.0.1 (GCC)
4.0.1 (Apple Inc. build 5490)
I'm building gcc-4.3.3, using mpfr-2.4.1 and gmp-4.1.4.
Here's the configure line I used:
../gcc-4.3.3/configure --target=m68k-elf --program-prefix=cf- --with-
arch=cf
the parts of libgcc's config.log that seem relevant:
gcc version 4.3.3 (GCC)
configure:2374: $? = 0
configure:2376: /Users/Oltmans/Downloads/gccbuild/./gcc/xgcc -B/Users/
Oltmans/Do
wnloads/gccbuild/./gcc/ -B/usr/local/m68k-elf/bin/ -B/usr/local/m68k-
elf/lib/ -i
system /usr/local/m68k-elf/include -isystem /usr/local/m68k-elf/sys-
include -V <
/dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2379: $? = 1
configure:2398: /Users/Oltmans/Downloads/gccbuild/./gcc/xgcc -B/Users/
Oltmans/Do
wnloads/gccbuild/./gcc/ -B/usr/local/m68k-elf/bin/ -B/usr/local/m68k-
elf/lib/ -i
system /usr/local/m68k-elf/include -isystem /usr/local/m68k-elf/sys-
include -o c
onftest -O2 -g -g -O2 conftest.c >&5
/Users/Oltmans/Downloads/gccbuild/./gcc/as: line 77: exec: : not found
configure:2401: $? = 1
configure:2567: checking for suffix of object files
configure:2589: /Users/Oltmans/Downloads/gccbuild/./gcc/xgcc -B/Users/
Oltmans/Do
wnloads/gccbuild/./gcc/ -B/usr/local/m68k-elf/bin/ -B/usr/local/m68k-
elf/lib/ -i
system /usr/local/m68k-elf/include -isystem /usr/local/m68k-elf/sys-
include -c -
O2 -g -g -O2 conftest.c >&5
/Users/Oltmans/Downloads/gccbuild/./gcc/as: line 77: exec: : not found
configure:2592: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2606: error: cannot compute suffix of object files: cannot
compile
See `config.log' for more details.
What gives?