Closed Bug 1682660 Opened 5 years ago Closed 5 years ago

build-compiler-rt isn't using the right target for some files

Categories

(Firefox Build System :: Toolchains, defect)

defect

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: away, Assigned: away)

Details

Attachments

(2 files)

The cflags are getting through to some files, but not others. In the compilations that don't receive a mac -target, clang doesn't know what to do with -mmacosx-version-min :

[task 2020-12-07T05:25:40.349Z] [203/684] Building C object lib/builtins/CMakeFiles/clang_rt.builtins_arm64_osx.dir/fixtfsi.c.o
[task 2020-12-07T05:25:40.350Z] clang: warning: argument unused during compilation: '-arch arm64' [-Wunused-command-line-argument]
[task 2020-12-07T05:25:40.351Z] clang: warning: argument unused during compilation: '-mmacosx-version-min=10.5' [-Wunused-command-line-argument]
[task 2020-12-07T05:25:40.351Z] clang: warning: argument unused during compilation: '-arch arm64' [-Wunused-command-line-argument]
[task 2020-12-07T05:25:40.351Z] [204/684] Building C object lib/builtins/CMakeFiles/clang_rt.builtins_arm64_osx.dir/fixtfti.c.o
[task 2020-12-07T05:25:40.359Z] clang: warning: argument unused during compilation: '-arch arm64' [-Wunused-command-line-argument]
[task 2020-12-07T05:25:40.359Z] clang: warning: argument unused during compilation: '-mmacosx-version-min=10.5' [-Wunused-command-line-argument]
[task 2020-12-07T05:25:40.359Z] clang: warning: argument unused during compilation: '-arch arm64' [-Wunused-command-line-argument]
[task 2020-12-07T05:25:40.359Z] [205/684] Building C object lib/builtins/CMakeFiles/clang_rt.builtins_arm64_osx.dir/fixunstfdi.c.o
[task 2020-12-07T05:25:40.360Z] clang: warning: argument unused during compilation: '-arch arm64' [-Wunused-command-line-argument]
[task 2020-12-07T05:25:40.360Z] clang: warning: argument unused during compilation: '-mmacosx-version-min=10.5' [-Wunused-command-line-argument]
[task 2020-12-07T05:25:40.360Z] clang: warning: argument unused during compilation: '-arch arm64' [-Wunused-command-line-argument]
[task 2020-12-07T05:25:40.360Z] [206/684] Building C object lib/builtins/CMakeFiles/clang_rt.builtins_arm64_osx.dir/fixunstfsi.c.o

For reasons that I haven't been able to figure out, some compilations aren't getting the -target flag passed to them from the cmake flags. This patch forces the target by using a prefixed tool name.

Assignee: nobody → dmajor
Status: NEW → ASSIGNED
Attachment #9193368 - Attachment description: Use a target-prefixed clang in build-compiler-rt.sh → Bug 1682660 - Wrap clang to pass all the necessary flags when building compiler-rt.

Without it, the build uses /usr/bin/ranlib, which, for some reason,
doesn't fail, but does weird things.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/61081ada2d26 Wrap clang to pass all the necessary flags when building compiler-rt. r=dmajor https://hg.mozilla.org/integration/autoland/rev/fadedbba0655 Set CMAKE_RANLIB when building compiler-rt. r=dmajor
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: