compiling arm binaries with gcc

ajwells@uklinux.net ajwells@uklinux.net
Sun Apr 30 11:07:00 GMT 2006


Folks,

I need a little help.
I have debian woody (of sorts) running on a psion 5mx pda. I am going
through the process of getting useful applications working on it. I have
used dpkg to install gcc, binutils and make and any of the dependecies
needed until no more wingeing was done about dependencies, and I beleive
the install was good.
As a simlple test I tried to compile the source code for netcat. 
I typed ./configure and it made a start, but returned an error.

Checking for C compiler defaults output filename... configure: error: C
compiler cannot create executables - see "config.log" for more details.

What have I not done?

Best regards to all
Adrian Wells

This is the config.log file


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.59.  Invocation command line was

  $ ./configure 

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

hostname = kludged-linux
uname -m = armv4l
uname -r = 2.4.18-rmk6-5mx4
uname -s = Linux
uname -v = #1 Wed Jul 24 15:28:41 BST 2002

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

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

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


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

configure:1352: checking build system type
configure:1370: result: armv4l-unknown-linux-gnu
configure:1378: checking host system type
configure:1392: result: armv4l-unknown-linux-gnu
configure:1400: checking target system type
configure:1414: result: armv4l-unknown-linux-gnu
configure:1443: checking for a BSD-compatible install
configure:1498: result: /usr/bin/install -c
configure:1509: checking whether build environment is sane
configure:1552: result: yes
configure:1585: checking for gawk
configure:1614: result: no
configure:1585: checking for mawk
configure:1601: found /usr/bin/mawk
configure:1611: result: mawk
configure:1621: checking whether make sets $(MAKE)
configure:1641: result: yes
configure:1856: checking for gcc
configure:1872: found /usr/bin/gcc
configure:1882: result: gcc
configure:2126: checking for C compiler version
configure:2129: gcc --version </dev/null >&5
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 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:2132: $? = 0
configure:2134: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/arm-linux/3.3.5/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc arm-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
configure:2137: $? = 0
configure:2139: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2142: $? = 1
configure:2165: checking for C compiler default output file name
configure:2168: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2171: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




More information about the Gcc-help mailing list