Project

General

Profile

Compiler does not run in VM

Added by Tom Tatakis over 10 years ago

Hello- I'm new to the MityDSP platform and I am having trouble getting the development environment working. I have imported the VM into VirtualBox, and can run the VM. I'm trying to get the environment going for the L138F (ARM9). I followed the instructions in the Starter Guide (https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/Starter_Guide) to get the VM imported. The tool chain was not installed so I followed the link to install the tool chain and downloaded angstrom-eglibc-x86_64-armv5te-toolchain-qte-v2012.05.tar.bz2 and untar'ed everything into root (/). The compiler is there but I get the error "cannot execute binary file" when I try and run it. My PC is an i5 running 64-bit Windows 7. The error message indicates to me that the binary is not compatible with my platform which suggests it's the wrong tool chain. However, I do get reasonable output from the 'file' command on the file: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped

So my question is, what am I missing? Do I need to run the 32 bit version in the VM?

Thanks for any help
Tom


Replies (2)

RE: Compiler does not run in VM - Added by Michael Williamson over 10 years ago

Yes. You need to run the 32-bit version in the VM if your VM is a 32-bit architecture.

on your VM type "uname -a". It should tell you the version of the VM architecture.

-Mike

RE: Compiler does not run in VM - Added by Jonathan Cormier over 10 years ago

Also our vm does come with the toolchain installed. I'm unsure why you were unable to locate it.

Try looking in /usr/local/oecore-i686

The instructions seem to be missing that you need to run . /usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi to source the cross compile environment. I've updated the starter guide.

Note the Using-the-SDK section: https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/GCC_Toolchain#Using-the-SDK

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)