Sign up here and you can log into the forum!

App Development - Cross Compile env question

General WDLXTV-Plus forum

App Development - Cross Compile env question   

Postby SpEnTBoY » Mon Dec 19, 2011 4:02 am

I've been trying to set up a cross compile env for a little while now but for some reason I can't actually execute any of the binaries from the toolchain. When I was monkeying around with iPaq and opie I don't recall having problems with the toolchain so I'm either having a massive brain fart, or have no idea what's going on.

Originally in my configure I got this:
Code: Select all
checking build system type... mips-unknown-linux-gnu
checking host system type... mips-unknown-linux-gnu
checking target system type... mips-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking for mips-linux-gnu-gcc... mips-linux-gnu-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
check `config.log' for details.


Checking the log it shows that it can not even run the compiler:

Code: Select all
./configure: line 2059: /opt/mips-4.3/bin/mips-linux-gnu-gcc: No such file or directory


Ok so probably a stupid permissions thing? maybe library? ownership?:
Code: Select all
# ls -lrt /opt/mips-4.3/bin/mips-linux-gnu-gcc
-rwxr-xr-x 1 root root 195880 2010-04-03 04:29 /opt/mips-4.3/bin/mips-linux-gnu-gcc
# whoami
root
# ./opt/mips-4.3/bin/mips-linux-gnu-gcc
bash: ./opt/mips-4.3/bin/mips-linux-gnu-gcc: No such file or directory
# ldd /opt/mips-4.3/bin/mips-linux-gnu-gcc
        not a dynamic executable
# file /opt/mips-4.3/bin/mips-linux-gnu-gcc
/opt/mips-4.3/bin/mips-linux-gnu-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped


I've gotten all kinds of errors trying to run binaries before on unlike systems etc ... but never a No such file or directory unless it actually didn't exist or unless it was a script or something. Any pointers?
SpEnTBoY
WDTVer
 
Posts: 27
Joined: Thu Dec 08, 2011 8:01 pm

Re: App Development - Cross Compile env question   

Postby recliq » Mon Dec 19, 2011 4:15 am

what does uname -a give you on that system?

seems to be a binary for a different plattform, are you trying this on Ubuntu 9.10 32Bit (as recommended by WD for their toolchain)?
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: App Development - Cross Compile env question   

Postby SpEnTBoY » Mon Dec 19, 2011 4:24 am

gah ... oneric AND it's 64bit ... thought I was on my virtual box image ... I'll go create a 9.10 image now
SpEnTBoY
WDTVer
 
Posts: 27
Joined: Thu Dec 08, 2011 8:01 pm

Re: App Development - Cross Compile env question   

Postby b-rad.cc » Mon Dec 19, 2011 10:37 am

Code: Select all
sudo apt-get install ia32-libs

:ugeek:
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3003
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: App Development - Cross Compile env question   

Postby SpEnTBoY » Mon Dec 19, 2011 12:15 pm

b-rad.cc wrote:
Code: Select all
sudo apt-get install ia32-libs

:ugeek:


yeah had the 32bit libs installed it seems ... just as easy to create a new dedicated dev slice on the preferred release :D

EDIT: OK that's a lie ... trying to find a decent 9.10 mirror was almost impossible lol ... upgrading so I can actually install some packages :roll:
SpEnTBoY
WDTVer
 
Posts: 27
Joined: Thu Dec 08, 2011 8:01 pm

Re: App Development - Cross Compile env question   

Postby SpEnTBoY » Tue Dec 20, 2011 9:39 am

Ok cross compiler working bring on the headaches!! lol :D
SpEnTBoY
WDTVer
 
Posts: 27
Joined: Thu Dec 08, 2011 8:01 pm

Re: App Development - Cross Compile env question   

Postby recliq » Wed Dec 21, 2011 1:32 am

­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: App Development - Cross Compile env question   

Postby SpEnTBoY » Wed Dec 21, 2011 3:08 am

recliq wrote:http://old-releases.ubuntu.com/releases/ :ugeek:


Oh I had 9.10 installed ... but try and find some repos that actually have packages. I could find from 8.04 10.x and 11.x but no 9.10 for sources. For some silly reason Ubuntu doesn't install ssh by default so after creating my vbox I couldn't get to it other than through the GUI. I upgraded to 10.04 and started my builds ... although I always have linker/linking issues wen using toolchains. I've built some libraries and want to statically compile a couple of apps but even providing the location of the libs (and using the toolchain root as PREFIX) doesn't seem to work for all libraries.

Anyway I'm rambling :shock: I'll keep hacking around
SpEnTBoY
WDTVer
 
Posts: 27
Joined: Thu Dec 08, 2011 8:01 pm

Re: App Development - Cross Compile env question   

Postby recliq » Wed Dec 21, 2011 4:42 am

Code: Select all
apt-get install ssh
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: App Development - Cross Compile env question   

Postby SpEnTBoY » Wed Dec 21, 2011 4:49 am

recliq wrote:
Code: Select all
apt-get install ssh


LOL I'm not that new ;) actually it would be apt-get intall openssh-server .. .the problem was there were no servers in the sources.list that have files for 9.10 anymore (see last post) so I couldn't install any packages. I hunted for a while looking for repos but 9.10 has been removed from the mirrors even though you can download the CD image.

Managed to get iftop built but I get a syntax error when trying to run it. I think I'm just going to hack some code from scratch if I get a chance. I wanted to see what the realtime data rate was on the primary interface and possibly populate a cell on the web page that would show throughput. Should be simple enough but I really need to blow the dust off of my coding skills lol :mrgreen:
SpEnTBoY
WDTVer
 
Posts: 27
Joined: Thu Dec 08, 2011 8:01 pm

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 1 guest