This is an archive of the discontinued LLVM Phabricator instance.

Support cross compiling to arm on ubuntu.
ClosedPublic

Authored by rafael on Oct 27 2013, 5:13 AM.

Details

Reviewers
chandlerc
logan

Diff Detail

Event Timeline

logan added a comment.Oct 27 2013, 7:01 AM

Besides, I feel it will be even better to add the test cases for arm-linux-gnueabi as well.

FYI. I have created a patch for this change:
https://github.com/loganchien/clang/compare/b0e00c2...630a9e3

test/Driver/linux-ld.c
260

It seems that SYSROOT/lib is not added to version control. Maybe you have to put a placeholder such as .keep?

e.g.
mkdir -p Inputs/x86-64_ubuntu_13.10/lib
touch Inputs/x86-64_ubuntu_13.10/lib/.keep
git add Inputs/x86-64_ubuntu_13.10/lib/.keep

262

It seems we can add two more checks after this line:
CHECK-X86-64-UBUNTU-13-10-ARM-HF: "-L[[SYSROOT]]/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../.."
CHECK-X86-64-UBUNTU-13-10-ARM-HF: "-L[[SYSROOT]]/usr/lib"

rafael updated this revision to Unknown Object (????).Oct 27 2013, 8:02 AM

Add a missing .keep

rafael updated this revision to Unknown Object (????).Oct 27 2013, 8:33 AM

Add a test for arm-linux-gnueabi

rafael updated this revision to Unknown Object (????).Oct 27 2013, 8:38 AM

Actually include the test for arm-linux-gnueabi.

logan added a comment.Oct 28 2013, 7:56 AM

The changes related to Ubuntu LGTM now. I have verified the change on Ubuntu 12.04, 13.04, and 13.10. All of them are working without any problem. However, I am not familiar with Fedora. Any comments from Fedora users?

  • {F12432, layout=link}
  • {F12431, layout=link}
logan accepted this revision.Oct 28 2013, 9:37 AM

LGTM. Thanks for your work.

rafael closed this revision.Oct 28 2013, 11:57 AM

Fixed in r193528.