Closed Bug 1535490 Opened 6 years ago Closed 6 years ago

Build failure with js shells on Windows

Categories

(Firefox Build System :: General, defect)

All
Windows
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: gkw, Unassigned)

References

Details

Attachments

(1 file)

Attached file stack

This command seems to fail for me at not finding llvm-config:

LINKER=lld-link.exe 'CXX="clang-cl.exe -fallback"' 'CC="clang-cl.exe -fallback"' MAKE=mozmake 'LIBCLANG_PATH="C:/Program Files/LLVM/bin"' sh c://Users//fuzz1//trees//mozilla-central//js//src//configure --host=x86_64-pc-mingw32 --target=x86_64-pc-mingw32 --disable-jemalloc --enable-debug --enable-gczeal --enable-debug-symbols --disable-tests --disable-cranelift

See the build failure stack.

autobisectjs shows this is probably related to the following changeset:

The first bad revision is:
changeset: https://hg.mozilla.org/mozilla-central/rev/2185356fb2af
user: Mike Hommey
date: Mon Feb 11 22:04:06 2019 +0000
summary: Bug 1526497 - Always get clang information for bindgen. r=ted

:glandium, is bug 1526497 a likely regressor? I only found this out recently as I was on PTO for end-Feb/start-Mar.

Let me know if I should add something to my configuration line instead.

Flags: needinfo?(mh+mozilla)

That changeset only made the lack of llvm-config more apparent on your machine, AFAICT. The build would probably have failed at another stage because llvm-config is not found, and the clang-path is None. There's clearly something wrong with the failure mode, but presumably, your setup is currently missing something.

I do intend to change things in bug 1526857, hopefully next week, so this should be addressed. In the meantime, you can try setting LLVM_CONFIG or CLANG_PATH.

Flags: needinfo?(mh+mozilla)
Severity: blocker → normal

Historically I have been using LLVM builds downloaded off llvm.org - which I think do not have llvm-config. This method now broke as can be seen in this bug. Is there a way I can get llvm-config release binaries on Windows somewhere? Then I'll go compile the js shell via configure, after cloning m-c.

Or am I just missing something obvious?

Flags: needinfo?(mh+mozilla)

For now, I guess you should use the clang from mach bootstrap.

Flags: needinfo?(mh+mozilla)

(In reply to Mike Hommey [:glandium] from comment #3)

For now, I guess you should use the clang from mach bootstrap.

This suggestion worked for me - I set LIBCLANG_PATH to point to ~/.mozbuild/clang/bin and the shells seemed to compile.

Resolving INVALID.

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

Attachment

General

Created:
Updated:
Size: