adapteva / epiphany-sdk

Epiphany SDK build scripts (start here!)
GNU General Public License v3.0
125 stars 35 forks source link

Cross compile issues(MacOSX) #11

Open DanielKristofKiss opened 10 years ago

DanielKristofKiss commented 10 years ago

Toolchain is compilable on Mac OSX. latest tested version by me(8171c73dba8c8c17a2b2db3f1a5cddf6bc488a2a)

The SDK is not compilable due to multiple issues in the build scripts: ln does not have -T option, it need to be removed target directory should not exist when the ln is called. mkdir is not required before ln. cp does not have -D option, also need to be removed

makefiles referes to the "gcc" as compiler for the sdk components. it should be the arm-parallella-host-gcc or the e-gcc. without specifying the gcc it will be the host(osx) default compiler.

jeremybennett commented 10 years ago

Hi Daniel,

Thanks for the bug report. Glad to hear the tool chain compiles OK for you.

We have scheduled work to fix the SDK build system, which should resolve all your issues. Please bear with us. I've labeled this issue as a bug and assigned it to me, so you can track it.

mtaveniku commented 10 years ago

We have fixed the cross compile and some other minor issues

It should be on the git after tests

Mikael From mobile device

On May 5, 2014, at 16:12, Jeremy Bennett notifications@github.com wrote:

Hi Daniel,

Thanks for the bug report. Glad to hear the tool chain compiles OK for you.

We have scheduled work to fix the SDK build system, which should resolve all your issues. Please bear with us. I've labeled this issue as a bug and assigned it to me, so you can track it.

— Reply to this email directly or view it on GitHub.

DanielKristofKiss commented 10 years ago

Sounds really good. Thanks! I will compile it when it will be on git.

zhongliangong commented 10 years ago

@jeremybennett - Unlike Daniel, I had the arm-linux-gnueabihf (I didn't check here before heading to the forums - my bad).

The build scripts assume that if you are not building on the ARM, then your compiler has the prefix arm-linux-gnueabihf-. Please would you raise this as an issue on the SDK issue tracker, so we can get it fixed. It ought to be something that is user configurable.
jeremybennett commented 10 years ago

I've reassigned to Ben Chaco, since he has been developing the build scripts.

glouis14 commented 10 years ago

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

jeremybennett commented 10 years ago

Sukandar,

I think you have a different problem. Would you raise it as a separate issue, so we can track independently.

Thanks,