LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-07-2006, 09:33 AM   #1
m.harshavardhan
Member
 
Registered: May 2005
Location: Bangalore(india)
Posts: 44

Rep: Reputation: 15
Glib cross compile error


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
 
Old 12-04-2007, 03:31 AM   #2
swap.kamble
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
Urgent glib cross compilation problem

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 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xmms install (needs glib>1.22), just installed glib 2.4.8 and still get error message eskiled Linux - Software 2 12-19-2005 09:12 PM
GTK+ compile error : glib-mkenums Sjaaksken Suse/Novell 6 12-11-2005 03:16 PM
How to cross compile? jiyun0121 Linux - General 3 09-01-2005 06:15 PM
Qt Cross Compile werewolfolondon Linux - Software 2 02-25-2005 01:01 PM
glib-2.4.0 compile error trollman Linux - Software 2 04-09-2004 09:37 AM


All times are GMT -5. The time now is 07:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration