-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems building the SDK for Mac #18
Comments
To clarify the change I recommended was overriding by hand the CROSS_COMPILE variable in build-libs.sh. One for Ben to look at. |
With the latest sources you can define the environment variable CROSS_PREFIX prior to building the epiphany-libs tree. Set the prefix to your specific toolchain prefix. Regards, ----- Original Message ----- To clarify the change I recommended was overriding by hand the CROSS_COMPILE variable in build-libs.sh . One for Ben to look at. — |
sorry if I'm a little obtuse here, but could you elaborate what that prefix would be for a Mac build and where exactly I should set it? Line 141 in build-libs.sh? thanks, Sukandar |
Ben: if you want to try it use the MAC in my office Mikael
|
glouis14, I'm not familiar with the arm toolchain for OSX, but the toolchain binaries should contain a prefix. Fo example, on Linux the arm cross tools have the prefix 'arm-linux-gnueabihf-'. So, for example: [ben@benvm epiphany_workspace]$ ls -1 /usr/bin/arm-linux-gnueabihf-* So, on Linux under the Bourne shell, I would export the environment variable CROSS_PREFIX as follows: export CROSS_PREFIX=arm-linux-gnueabihf- |
Dear Ben, So are the arm cross tools something I have to install separately from the steps outlined in https://github.com/adapteva/epiphany-sdk/wiki/Building-the-SDK ? Also, on a different note - if Jeremy directs these questions at you, but you're saying you're not familiar with the Mac OS X toolchain, is there anyone else who is?? thanks, |
Dear Ben and Sukandar I agree with Sukandar though that something should be done to note the dependencies for both linux and macs and not everyone getting their parallella boards would have an ARM embedded systems setup ready. On that note - I also found 1) having and sdk inside a the epiphany-sdk directory extremely confusing and lost 1-2 hours figuring out what was wrong with my computers, 2) it should have been made clear that gmp, mpfr and mpc should have been downloaded, placed in the gcc/ folder BUT NOT INSTALLED. Just my 2 cents. |
Hi Sukandar, In order to cross compile the epiphany-sdk (Epiphany toolchain, epiphany-libs, etc.) you will need a ARM cross toolchain that executes on your build host and generates code for the Parallella Linux ARM platform. The Epiphany toolchain is built as part of the Epiphany-SDK and is used for generating code that executes on the Epiphany cores. The epiphany-libs (eXml, eHal, eLoader, etc.), and the epiphany-examples must be compiled for the Parallella ARM/Linux platform. In order to build these from a build platform other than ARM/Linux, you will need an ARM cross toolchain for the particular host platform. I'll try to determine the appropriate toolchain package, and process, required for building the epiphany-sdk under Mac OSX and get the documentation updated. Regards, ----- Original Message ----- Dear Ben, So are the arm cross tools something I have to install separately from the steps outlined in https://github.com/adapteva/epiphany-sdk/wiki/Building-the-SDK ? Also, on a different note - if Jeremy directs these questions at you, but you're saying you're not familiar with the Mac OS X toolchain, is there anyone else who is?? thanks, — |
Thanks Ben for the extended explanation! |
Thanks Zhong Liang Ong for your remarks and thanks Ben for looking into the toolchain. I must say though that I'm a bit taken aback by the assumption that everyone already has an ARM toolchain installed and not even mention it on the page with the prerequisites. About 2) About Mac development in general: I do appreciate the effort, but if it'll always be a second-class citizen I suggest we safe all each other's time and stick with Linux (or migrate there in my case) thanks, arm-aout-binutils @2.22_1 (cross, devel), FSF Binutils for arm-aout cross development |
FYI, I've been trying to install the arm-none-linux-gnuabi-gcc cross tools package on OSX via MacPorts but I'm running into build issues. It seems that the Macports arm-none-linux-gnuabi-gcc package is currently broken. It does not appear that this package is being maintained by anyone. -ben |
Mac build doesn't work for me.
Initial error message was:
ld: 255 duplicate symbols for architecture x86_64
After following suggestions by user rsneekes the toolchain builds OK.
The SDK however stopped with this message:
make: arm-linux-gnueabihf-g++: No such file or directory
After applying the changes made by jeremeybennett this changed to:
/bin/sh: -Wall: command not found
Please check this forum discussion for details:
http://forums.parallella.org/viewtopic.php?f=13&t=966
Thanks,
Sukandar
OS X 10.9.2
XCode 5.1.1
The text was updated successfully, but these errors were encountered: