Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix build on Raspberry Pi2. #75
Conversation
|
Output of running vanilla: --- stderr |
|
As is, I believe this patch breaks android, whose target triple is |
|
Added the change where it will test for: gnueabihf. |
As the debian based linux distro uses 'alternatives' to allow selecting tools (i.e. compiler), hardcoding the CC compiler to arm-linux-gnueabihf-gcc may not point to the user selected default compiler. After discussion, it makes sense to only set the tools if you are crosscompiling.
|
I'm going to try this on my board, will report back. |
|
Any feedback on this? |
|
Sorry, my board is a tiny bit slow, took several hours to build the latest rust and servo. I have a weird configuration error right now, even if I apply this patch, modify or even delete build.rs, my changes don't get used at all. I've double checked my paths, so I'm not really sure how this happened. Anyway, this issue probably affects most dependencies, so I'll apply the other ARM patches and see how many of them fail. Again, sorry for the delay. PS. The link in the comment section throws 404, it should be |
|
You don't need to compile servo & Inc to test this, just compile rust-png. :-) And I faced the same error (i.e. pointing to wrong compiler) in libfreetype2 and rust-stb-image after the ARM specific patches. I'm working on fixing those as we speak, but I would really like to get this landed ASAP. |
|
If it helps, I can share the servo required rustc (i.e. specific hash) as it takes 8hs to compile it. |
|
Ok, this patch works for me, for both on board and cross compile. As for the other patches, in most makefiles CC is set like |
|
@bors-servo r+ |
Further details on the issue, check discussion at: servo/rust-png#75
|
@bors-servo r+ |
bors-servo
commented
Jun 18, 2015
|
|
bors-servo
commented
Jun 18, 2015
Fix build on Raspberry Pi2. As the debian based linux distro uses 'alternatives' to allow selecting tools (i.e. compiler), hardcoding the CC compiler to arm-linux-gnueabihf-gcc may not point to the user selected default compiler.
bors-servo
commented
Jun 18, 2015
|
|
Fix build in Raspberry Pi2. Further details on the issue, check discussion at: servo/rust-png#75
Adenilson commentedJun 16, 2015
As the debian based linux distro uses 'alternatives' to allow selecting
tools (i.e. compiler), hardcoding the CC compiler to arm-linux-gnueabihf-gcc
may not point to the user selected default compiler.