LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-19-2011, 08:56 PM   #1
dolphs
Member
 
Registered: Nov 2003
Posts: 52

Rep: Reputation: 15
Crosscompiling on x64 in to x32 bits backfire


Hi, I am using on my Linksys NSLU2 backfire 10.03.1-rc6 ( ixp4xx ). I downloaded its toolchain to my 64bits lubuntu 11.10 environment
Yet I like to crosscompile a few packages in to the chain, to start with " openssl 0.9.8r " but did not succeed. Can one guide me thru (the last steps) please?

wget -P . http://downloads.openwrt.org/backfir...1_eabi.tar.bz2
tar -xvjf OpenWrt-Toolchain-ixp4xx-for-armeb_v5te-gcc-4.3.3+cs_uClibc-0.9.30.1_eabi.tar.bz2
ln -s OpenWrt-Toolchain-ixp4xx-for-armeb_v5te-gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/toolchain-armeb_v5te_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi toolchain
export PATH=$PATH:~/toolchain/usr/bin
export CONCURRENCY_LEVEL=5; # got 4 cores+1

# openssl 0.9.8
wget -P . http://www.openssl.org/source/openssl-0.9.8r.tar.gz
tar -xvzf openssl-0.9.8r.tar.gz
cd ~/openssl-0.9.8r
vi Makefile # instead of ./config to modify manually
make
make install

Makefile:
INSTALL_PREFIX=/home/dolphs/toolchain
INSTALLTOP=/home/dolphs/toolchain
CC= /home/dolphs/toolchain/usr/bin/armeb-openwrt-linux-gcc
AR= /home/dolphs/toolchain/usr/bin/armeb-openwrt-linux-ar $(ARFLAGS) r
RANLIB= /home/dolphs/toolchain/usr/bin/armeb-openwrt-linux-ranlib


The error message while running make is:

# /home/dolphs/OpenWrt-Toolchain-ixp4xx-for-armeb_v5te-gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/toolchain-armeb_v5te_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/usr/bin/../lib/gcc/armeb-openwrt-linux-uclibcgnueabi/4.3.3/../../../../armeb-openwrt-linux-uclibcgnueabi/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[2]: *** [link_app.] Error 1
make[2]: Leaving directory `/home/openwrt/openssl-0.9.8r/apps'
make[1]: *** [openssl] Error 2
make[1]: Leaving directory `/home/openwrt/openssl-0.9.8r/apps'
make: *** [build_apps] Error 1

Somewhere in Makefile the appropriate -L needs to be set to " L/home/dolphs/toolchain/lib " for libgcc_s.so (and .so.1), but I am simply overlooking it. Therefore attached the current Makefile, hope one can help out. Cheers!
Attached Files
File Type: log Makefile.log (46 Bytes, 13 views)
 
Old 11-22-2011, 09:17 PM   #2
dolphs
Member
 
Registered: Nov 2003
Posts: 52

Original Poster
Rep: Reputation: 15
downloaded compiled toolchain on my box and all works now as expected ...
 
  


Reply



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
64 bits or 32 bits on AMD athlon x2 ram 4gb? albertoburgos Linux - Newbie 13 08-15-2011 03:37 PM
x32 -> x64 ntfs device mount issues b_unix Linux - Hardware 0 12-11-2008 07:39 PM
ASM x32 vs ASM x64 Tegramon Programming 3 02-27-2008 02:26 PM
Where is java compiler in 10.2 x64 bits?? Camara SUSE / openSUSE 3 01-10-2007 09:17 PM
32 bits version distros running 64 bits CPU javb Linux - General 4 04-02-2006 07:21 AM

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

All times are GMT -5. The time now is 07:53 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