[Sussex] ./confgure help - cross compiling GTK

anbeyon at btinternet.com anbeyon at btinternet.com
Thu May 12 20:06:20 UTC 2005


Hi Geoff,

I've only just got back to playing with this again.
Thanks for your pointers I've been reading up on lots of things.

Its making more sence now but I am having some fun and games

I am invoking ./configure as below;

./configure CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc --host=arm-linux 
--build=i686-linux 
--prefix=/home/anbeyon/Documents/Projects/Chord/Pandora4/Software/GTK/GTKBuild/glib 
--libdir=/usr/local/arm/3.3.2/arm-linux/lib 
--includedir=/usr/local/arm/3.3.2/arm-linux/include

but failing miserably :0(

configure output on console windows is;

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for the BeOS... no
checking for Win32... no
checking whether to enable garbage collector friendliness... no
checking whether to disable memory pools... no
checking for arm-linux-gcc... /usr/local/arm/3.3.2/bin/arm-linux-gcc
checking for C compiler default output file name... configure: error: C 
compiler cannot create executables
See `config.log' for more details.

When I check the config.log file is says part way through the following;
see the bit in RED with my comment --->>> afterwards
It can;t find the libc library - it's looking in the wrong place I think !

configure:2816: $? = 0
configure:2818: /usr/local/arm/3.3.2/bin/arm-linux-gcc -v </dev/null >&5
Reading specs 
from /usr/local/arm/3.3.2/bin/../lib/gcc-lib/arm-linux/3.3.2/specs
Configured with: ../configure --target=arm-linux --disable-shared 
--with-headers=/home/gerg/new-wave.xscale/linux-2.4.x/include --with-gnu-as 
--with-gnu-ld --enable-multilib
Thread model: posix
gcc version 3.3.2
configure:2821: $? = 0
configure:2823: /usr/local/arm/3.3.2/bin/arm-linux-gcc -V </dev/null >&5
arm-linux-gcc: `-V' option must have argument
configure:2826: $? = 1
configure:2849: checking for C compiler default output file name
configure:2852: /usr/local/arm/3.3.2/bin/arm-linux-gcc    conftest.c  >&5
/usr/local/arm/3.3.2/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld: 
can't find /usr/local/arm-linux/lib/libc.so.6---> shouldn't 
this=/usr/local/arm/3.3.2/arm-linux/lib
collect2: ld returned 1 exit status
configure:2855: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "glib"
| #define PACKAGE_TARNAME "glib"
| #define PACKAGE_VERSION "2.6.4"
| #define PACKAGE_STRING "glib 2.6.4"
| #define PACKAGE_BUGREPORT 
"http://bugzilla.gnome.org/enter_bug.cgi?product=glib"
| #define GLIB_MAJOR_VERSION 2
| #define GLIB_MINOR_VERSION 6
| #define GLIB_MICRO_VERSION 4
| #define GLIB_INTERFACE_AGE 4
| #define GLIB_BINARY_AGE 604
| #define G_COMPILED_WITH_DEBUGGING "minimum"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2894: error: C compiler cannot create executables

I have checked the locations I've specified and the libc file is there.

Any ideas.

Thanks

Clive
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/sussex/attachments/20050512/b91aa24f/attachment.htm 


More information about the Sussex mailing list