Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 22 Jan 2009 03:33 PM by  mikee@logicpd.com
cross compiling
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
dsanders16@gmail.com
New Member
New Member
Posts:


--
09 Jan 2009 11:02 AM
    Does anyone know of an easy way to do this. I have python compiled into the file system, but the problem is I need to add a library PyCrypto. The problem is that it is looking for gcc when I try to compile it on the board. And I don't know how to tell the python script to use the arm-gcc in /opt/....

    mx31# python setup.py build
    running build
    running build_py
    running build_ext
    building 'Crypto.Hash.MD2' extension
    gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -Isrc/ -I/usr/include/python2.4 -c src/MD2.c -o build/temp.linux-armv6l-2.4/src/MD2.o
    unable to execute gcc: No such file or directory
    error: command 'gcc' failed with exit status 1
    dsanders16@gmail.com
    New Member
    New Member
    Posts:


    --
    10 Jan 2009 02:00 PM
    I guess what I really need is a way to compile gcc natively for the board. Anyone have any thoughts?
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    22 Jan 2009 03:33 PM
    So, you want to compile GCC to run on an ARM and generate code for an ARM? I think you should check out the cross-gcc faq and search around. That would sort of be a "Canadian Cross" if I'm not mistaken.

    I know that I've done this once using "buildroot" a few years back on a PXA270. Basically in the buildroot configuration there is (or was) an option to build a native toolchain.
    You are not authorized to post a reply.