Closed Bug 1520311 Opened 5 years ago Closed 5 years ago

Remove binutils from mingw-clang build script

Categories

(Firefox Build System :: General: Unsupported Platforms, enhancement, P5)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tjr, Assigned: tjr)

References

(Blocks 1 open bug)

Details

(Whiteboard: [no-nag])

Attachments

(1 file)

Georg noticed that binutils doesn't seem to be used anymore. A try run confirms that nothing seems to break. I believe we can remove it.

Sorry; the observation was that we can use llvm-nm instead of binutil's nm.

The original need for binutils' nm was we needed it to perform the NSModule check; but we switched that over to use readobj when we started generating pdbs.

I think the patch is fine for nm itsel, but we should probably resolve bug 1471698 before going forward with this patch. It has a pending patch patch adding binutils objcopy and strip to the toolchain. While it should be possible to do the build without them (clang-cl toolchain doesn't have them), I think you mentioned at some point that it's needed to run tests for some reason (bug 1475994). llvm-objcopy exists, but doesn't support Windows targets yet, so if we want to use it, we will need binutils for that.

Comment on attachment 9036715 [details] [diff] [review]
Bug 1520311 - Remove binutils from the mingw-clang toolchain build r?jacek,Build

llvm-objcopy supports COFF files, to it looks like we won't need binutils for that. The patch looks fine then.
Attachment #9036715 - Flags: review?(jacek) → review+

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:tjr, could you have a look please?

Flags: needinfo?(tom)

This needs more investigation and work.

Flags: needinfo?(tom)

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:tjr, could you have a look please?

Flags: needinfo?(tom)

No change. Can we disable the bot for this bug?

Flags: needinfo?(tom) → needinfo?(sledru)

302 to calixte

Flags: needinfo?(sledru) → needinfo?(cdenizet)
Whiteboard: [no-nag]

I'll fix that, sorry for the noise.

Flags: needinfo?(cdenizet)
Priority: -- → P5

Done as part of Bug 1471698

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: