Closed Bug 1540882 Opened 5 months ago Closed 5 months ago

Align binutils aarch64 target with build time clang --target

Categories

(Firefox Build System :: Toolchains, defect)

defect
Not set

Tracking

(firefox68 fixed)

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

No description provided.
Assignee: nobody → mh+mozilla

When cross-building with clang, we use --target with a target that is
derived from the configure target, with the vendor removed. So for
configure --target=aarch64-unknown-linux-gnu, we use
clang --target=aarch64-linux-gnu.

Then, clang itself looks for tools as $target-$tool first, then
$tool, which means for the assembler, it's looking for
aarch64-linux-gnu-as before as, but not
aarch64-unknown-linux-gnu-as.

Building GNU as with --target=aarch64-unknown-linux-gnu creates the
aarch64-unknown-linux-gnu-as, but we really want aarch64-linux-gnu,
so we adjust the target in the binutils build script.

Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/27b13459f214
Align binutils aarch64 target with build time clang --target. r=froydnj
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.