I am also facing problems while cross compiling glib.
CFLAGS="-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer" CPP="arm-unknown-linux-gnu-gcc -E" CC=arm-unknown-linux-gnu-gcc LDFLAGS="-L/usr/local/arm.new/arm-unknown-linux-gnu/lib/ -lpthread -L/usr/local/ARM/lib/" CPPFLAGS="-I/usr/local/arm.new/arm-unknown-linux-gnu/include/ -I/usr/local/ARM/include/" ./configure --host=arm-unknown-linux-gnu --prefix=/usr/local/ARM --disable-debug --disable-visibility --disable-largefile --with-libiconv --cache-file=arm-linux.cache --with-includes=/usr/local/arm.new/arm-unknown-linux-gnu/include/
checking for pthread_create/pthread_join... no
checking for pthread_create/pthread_join in -lpthread... no
checking for pthread_create/pthread_join in -lpthread32... no
checking for pthread_create/pthread_join in -lpthreads... no
checking for pthread_create/pthread_join in -lthread... no
checking for pthread_create/pthread_join in -ldce... no
configure: error: I can't find the libraries for the thread implementation
posix. Please choose another thread implementation or
provide information on your thread implementation.
You can also run 'configure --disable-threads'
to compile without thread support.
Quote:
Originally Posted by m.harshavardhan
Hi
I am trying to cross compile Glib to arm-linux platform.
I have already developed cross tools for arm processor.
I compiled as follows
1)./configure CC=arm-linux-gcc --cache-file=arm-linux.cache --host=arm-linux --build=i386
arm-linux.cache file contains following lines
glib_cv_long_long_format=ll
glib_cv_stack_grows=no
Then i got the following error message.
checking for preceeding underscore in symbols... configure: error: cannot run test program while cross compiling.
What could be the problem ?any idea?
Any suggestions will be greately welcome.
Thanks In advance.
Regards,
Harsha
|