Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-19-2011, 09:56 PM   #1
Registered: Nov 2003
Posts: 51

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 .
tar -xvjf OpenWrt-Toolchain-ixp4xx-for-armeb_v5te-gcc-4.3.3+cs_uClibc-
ln -s OpenWrt-Toolchain-ixp4xx-for-armeb_v5te-gcc-4.3.3+cs_uClibc- toolchain
export PATH=$PATH:~/toolchain/usr/bin
export CONCURRENCY_LEVEL=5; # got 4 cores+1

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

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- 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 (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, 10 views)
Old 11-22-2011, 10:17 PM   #2
Registered: Nov 2003
Posts: 51

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


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

All times are GMT -5. The time now is 05:30 AM.

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