Error cross compiling glib to ARM



Hi, 

Im trying to cross compile to ARM glib-2.0.4 and i get
this error saying "cannot run test program while cross
compiling".  Can anyone please tell what i'm doing
wrong.  Thanks, i would really appreciate your help.
This is how i entered configure
./configure --host=arm-linux --build=i686-linux
--prefix=/usr/local/arm/armglib/output
--libdir=/usr/local/arm/2.95.3/arm-linux/lib
--includedir=/usr/local/arm/2.95.3/arm-linux/include/

This are the output msgs

joyce

[root dhcp-94-1 glib-2.0.4]# ./configure
--host=arm-linux --build=i686-linux
--prefix=/usr/local/arm/armglib/output
--libdir=/usr/local/arm/2.95.3/arm-linux/lib
--includedir=/usr/local/arm/2.95.3/arm-linux/include/
checking for a BSD-compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
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... arm-linux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler...
yes
checking whether arm-linux-gcc accepts -g... yes
checking for c++... c++
checking for arm-linux-g++... (cached) c++
checking whether we are using the GNU C++ compiler...
yes
checking whether c++ accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C...
none needed
checking for a BSD-compatible install...
/usr/bin/install -c
checking for special C compiler options needed for
large files... no
checking for _FILE_OFFSET_BITS value needed for large
files... 64
checking for _LARGE_FILES value needed for large
files... no
checking for pkg-config... /usr/bin/pkg-config
checking for gawk... gawk
checking for perl5... no
checking for perl... perl
checking for indent... indent
checking for perl... /usr/bin/perl
checking for iconv_open... yes
checking for arm-linux-ranlib... arm-linux-ranlib
checking how to run the C preprocessor...
arm-linux-gcc -E
checking for ANSI C header files... yes
checking for arm-linux-gcc option to accept ANSI C...
none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  ar az ca cs
de el es eu fr gl ja ko ms nl nn no pl pt ro ru sk sl
sv ta tr uk zh_CN zh_TW
checking for bind_textdomain_codeset... yes
checking for ld used by GCC... arm-linux-ld
checking if the linker (arm-linux-ld) is GNU ld... yes
checking for arm-linux-ld option to reload object
files... -r
checking for BSD-compatible nm...
/usr/local/arm/2.95.3/bin//arm-linux-nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries...
file_magic ELF [0-9][0-9]*-bit [LM]SB (shared
object|dynamic lib )
checking command to parse
/usr/local/arm/2.95.3/bin//arm-linux-nm -B output...
ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for arm-linux-file... no
checking for file... /usr/bin/file
checking for arm-linux-ranlib... (cached)
arm-linux-ranlib
checking for arm-linux-strip... arm-linux-strip
checking for objdir... .libs
checking for arm-linux-gcc option to produce PIC...
-fPIC
checking if arm-linux-gcc PIC flag -fPIC works... yes
checking if arm-linux-gcc static flag -static works...
yes
checking if arm-linux-gcc supports -c -o file.o... yes
checking if arm-linux-gcc supports -c -o file.lo...
yes
checking if arm-linux-gcc supports -fno-rtti
-fno-exceptions... yes
checking whether the linker (arm-linux-ld) supports
shared libraries... yes
checking how to hardcode library paths into
programs... immediate
checking whether stripping libraries is possible...
yes
checking dynamic linker characteristics... GNU/Linux
ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in...
no
creating libtool
checking for extra flags to get ANSI library
prototypes... configure: error: cannot run test
program while cross compiling
[root dhcp-94-1 glib-2.0.4]# 




__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]