another cross-gcc question ("can't compute suffix of object files")

Steve Franks bahamasfranks at gmail.com
Fri Jun 12 16:48:15 UTC 2009


Sorry to be such a pest,  I'm trying to go from being a good hardware
programmer to a good OS programmer, but there's alot to pick up to be
FreeBSD proficient...

Can't seem to do a vanilla cross-gcc on my home system, which works
fine on my work machine, both of them are recent 7.2 installs...

I don't even know what other info would be needed to track this down.
My machine is pretty much useless without an arm compiler - that's
what I do for work.

Best,
Steve

[steve at terra /usr/ports/devel/cross-gcc]$ sudo make
MULTILIB_OPTIONS="mno-thumb-interwork/mthumb-interwork"
MULTILIB_DIRNAMES="normal interwork" TGTARCH=arm TGTABI=elf
WITH_FLOAT_TYPE=soft install

...

gmake[2]: Leaving directory `/usr/ports/devel/cross-gcc/work/build/gcc'
Checking multilib configuration for libgcc...
mkdir arm-elf
mkdir arm-elf/libgcc
Configuring in arm-elf/libgcc
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking for gawk... gawk
checking build system type... i386-portbld-freebsd7.2
checking host system type... arm-unknown-elf
checking for arm-elf-ar... /usr/local/arm-elf/bin/ar
checking for arm-elf-lipo... arm-elf-lipo
checking for arm-elf-nm... /usr/ports/devel/cross-gcc/work/build/./gcc/nm
checking for arm-elf-ranlib... /usr/local/arm-elf/bin/ranlib
checking for arm-elf-strip... /usr/local/arm-elf/bin/strip
checking whether ln -s works... yes
checking for arm-elf-gcc...
/usr/ports/devel/cross-gcc/work/build/./gcc/xgcc
-B/usr/ports/devel/cross-gcc/work/build/./gcc/ -nostdinc
-B/usr/ports/devel/cross-gcc/work/build/arm-elf/newlib/ -isystem
/usr/ports/devel/cross-gcc/work/build/arm-elf/newlib/targ-include
-isystem /usr/ports/devel/cross-gcc/work/gcc-4.3.2/newlib/libc/include
-B/usr/ports/devel/cross-gcc/work/build/arm-elf/libgloss/arm
-L/usr/ports/devel/cross-gcc/work/build/arm-elf/libgloss/libnosys
-L/usr/ports/devel/cross-gcc/work/gcc-4.3.2/libgloss/arm
-B/usr/local/arm-elf/bin/ -B/usr/local/arm-elf/lib/ -isystem
/usr/ports/devel/cross-gcc/work/build/./gcc -isystem
/usr/local/arm-elf/include -isystem /usr/local/arm-elf/sys-include
checking for suffix of object files... configure: error: cannot
compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[1]: *** [configure-target-libgcc] Error 1
gmake[1]: Leaving directory `/usr/ports/devel/cross-gcc/work/build'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/devel/cross-gcc.
*** Error code 1

Stop in /usr/ports/devel/cross-gcc.
[steve at terra /usr/ports/devel/cross-gcc]$ which gcc
/usr/bin/gcc
[steve at terra /usr/ports/devel/cross-gcc]$ gcc --version
gcc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 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.

[steve at terra /usr/ports/devel/cross-gcc]$


More information about the freebsd-questions mailing list