LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 12-17-2009, 10:30 PM   #1
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Rep: Reputation: 0
Configure Error


Hi,

I am trying to cross compile Mono for an ARM target (XScale Intel PXA255). While cross compiling my ./configure breaks, I am pasting the last few lines of the error below.

checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking for isinf... yes
checking for void *... yes
checking size of void *... 4
checking for -Wdeclaration-after-statement option to gcc... no
checking integrity of package... ok
checking for pkg-config... /usr/bin/pkg-config
checking for arm-unknown-linux-gnu-pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... yes
checking for -mno-tls-direct-seg-refs option to gcc... no
checking for visibility __attribute__... yes
checking for library containing clock_gettime... -lrt
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for preceeding underscore in symbols... configure: error: cannot run test program while cross compiling
See `config.log' for more details.

Can anyone please let me know why is this happening.

Thanks.
 
Old 12-18-2009, 01:38 AM   #2
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
Your make file is wanting to run some type of test suite but it can't because the generated code is Arm not x86. Try "make help" to try and get a list of targets, if that doesn't work try "make mono" and it that doesn't work then create a pastebin of the makefile and post the link so I can look at it.
 
Old 12-18-2009, 01:43 AM   #3
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for replying..

But it isnt the make which I am stuck at.. I have still not reached the Make part yet.. I am stuck at ./configure itself.. I could also understand that it is trying to run some test suite but I am not sure if there was any way to make it stop testing it.. please advice..
 
Old 12-18-2009, 01:52 AM   #4
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
During the ./configure there is probably an option like --no-testsuite that could be entered to avoid this. Post the results of "./configure --help" as you seem to not understand that sometimes during configuration code is compiled and ran as a test to make sure your environment is ready to compile the project.
 
Old 12-18-2009, 11:32 AM   #5
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

I tried but it does not seem to be a valid option.

The ./configure -h output,

Output - http://pastebin.com/d572824e8


./configure CC='/home/kartik/stargate-linux/bin/arm-linux-gcc' CXX='/home/kartik/stargate-linux/bin/arm-linux-g++' --x-libraries=/home/kartik/stargate-linux/lib CPP='/home/kartik/stargate-linux/bin/arm-linux-cpp' --cache-file=config.cache --host=arm-unknown-linux-gnu --target=arm-unknown-linux-gnu --with-includes=/usr/local/arm.new/arm-unknown-linux-gnu/include/ --disable-mcs-build

Output - http://pastebin.com/m6fe09a07

Configure Log - http://pastebin.com/m3ab11f0a

Please let me know if you find what the issue is. Many thanks.

Last edited by kartiknatarajan; 12-18-2009 at 01:43 PM.
 
Old 12-18-2009, 01:37 PM   #6
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
Something is wrong with your -I or include path and I think you need to add --with-glib=embedded and maybe --disable-shared to your ./configure

What are you trying to get from mono, just moonlight?
 
Old 12-18-2009, 04:27 PM   #7
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I tried adding those to variables, it again did not work. It is stuck at the same place. Any ideas as to what could be wrong with -I.

I don't need Mono for Moonlight, I need the complete set of libraries and compilers because I need to run a C# based application on a device.

Actually I could compile the mono inside a scratchbox but the linux version in my device is 2.4 and the binaries were compiled for version 2.6. Later I realised by posting in LQ that Mono is not kernel dependent and the problem is because of glibc incompatibility. I want to compile mono with glibc version 2.2.5 (that is what my device has) but scratchbox only supports toolchain from glibc version 2.3 and above. So I am stuck here, is there any work around for this?

Last edited by kartiknatarajan; 12-18-2009 at 04:37 PM.
 
Old 12-18-2009, 04:41 PM   #8
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
I'm limited to my blackberry so I can't really help much more with such a complex project without downloading and checking it out first. You must have quite the capable Arm device to be running mono on it, all my stuff if MIPS32 which also hinders my knowledge of the compiler toolchain your using. I want to help you I just don't see how without having the source and toolchain your using....I know how frustrating it is to cross compile complex projects. I think I would post this question in the mono forum if they have one also.

What I was saying about -I is that I see in the pastebin that configure can't find some source files, so you need to find the files that are referenced by an error of not found and add the directory containing the files to your includes.
 
Old 12-18-2009, 04:48 PM   #9
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
Your work around is to build the needed glibc version with your cross compiler and build mono against it.
 
Old 12-18-2009, 04:56 PM   #10
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the concern, it indeed is frustrating.

Actually the toolchain which I am using as of now has the required glibc version and I know the fact that anything compiled using this toolchain runs on my device.

Please let me know if you get any inputs from other forums as well. If you need the toolchain I can send it to you. Besides that I am just compiling the Mono 2.0 source with the compiler in my tool chain.

Thanks again.
 
Old 12-18-2009, 05:21 PM   #11
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
I don't need the toolchain thanks, so now you have what you need your back to configuration again yes?
 
Old 12-18-2009, 05:25 PM   #12
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Yes, I do have the necessary toolchain but I am not sure how to fix this error and move to the next step.
 
Old 08-28-2015, 09:14 AM   #13
_n00b
Member
 
Registered: Aug 2015
Posts: 35

Rep: Reputation: Disabled
Did anyone fixed this error yet?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure error: configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld GunNam Linux - General 0 10-24-2008 09:26 PM
dpkg-buildpackage configure: error: can only configure for one host and one target at donnied Debian 0 05-26-2008 08:08 PM
./configure fails with: libz... configure: error: not found. erpe Linux - Software 17 10-11-2006 06:56 PM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 01:35 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration