LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2009, 01:28 AM   #1
satishku
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
CrossCompiler Setup Question


Hi
I have a cross-compiler toolchain for Arm processor. The toolchain
folder hierarchy looks like this:

4.2.2.-eabi
-- bin
-- sbin
-- usr [arm-unknown-linux-gnueabi, bin, lib, libexec, include, etc.]
-- sbin
-- lib
etc.

i am able to compile my code for the hardware by giving relateive paths of the cross-compiler in the 4.2.2.-eabi/usr/arm-unknow-linux-g nueabi/bin . Compilation works fine.

but when i link, it searches for libc.so.6 library in the Host Computer [UBUNTU] /usr/lib folder instead of 4.2.2.-eabi/usr/lib . It gives me an error "incompatible library" and crashes. how can i sort this link error ?? how can i make sure that the library is searched in the toolchain folder and not the /usr/lib.

i do not have the packages for ARM process to build a native CROSS-Compiler Environment. How can I circumvent this issue.

Any advice will be helpful.

thanks
satishku

Last edited by satishku; 09-04-2009 at 01:33 AM. Reason: incomplete question
 
Old 09-08-2009, 05:28 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,429

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Examples , using cross tools :
./configure CC="<path-to-armgcc> -L/<path-to-arm-tools>/lib/"
or
./configure \
CC="<path-to-armgcc> -L/<path-to-arm-tools>/lib/ \
-L/<path-to-other-cross-compiled-files>/lib/"

.. and / or ..
make CC="<path-to-armgcc> -L/<path-to-arm-tools>/lib/"

.....

I wonder, if it is also possible to set up a 'chroot environment' ,
thus hiding all system libraries , etc.
http://jblevins.org/computing/linux/ubuntu-chroot
.....

Last edited by knudfl; 09-08-2009 at 05:31 AM.
 
  


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
os/setup question photomaster Linux - Hardware 1 12-30-2006 09:58 PM
GNU crosscompiler tools for ARM11 m.harshavardhan Linux - Hardware 0 07-21-2006 12:57 AM
Yet another Gateway setup question ;p Last Attacker Linux - Networking 3 05-20-2006 10:32 AM
NFS setup question: No password setup? ksgill Linux - General 4 12-04-2005 11:50 AM
Setup Squid question... hct224 Linux - Newbie 0 05-02-2004 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:47 AM.

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