maildev@lists.thunderbird.net

Thunderbird email developers

View all threads

Re: [Maildev] llvm-config?

JK
Jörg Knobloch
Thu, Sep 7, 2017 6:40 AM

On 07/09/2017 08:20, Andrei Hajdukewycz wrote:

So I'm trying to build Thunderbird on my XPS 15. I installed Visual
Studio 2017 Community Edition, which maybe wasn't the best choice
since most docs seem to assume 2015, but the Firefox build docs say it
works fine, so...

Unfortunately I get an error:

0:05.28 checking for llvm-config... not found
 0:05.28 ERROR: Could not find LLVM/Clang installation for compiling
stylo build-time
 0:05.28 bindgen.  Please specify the 'LLVM_CONFIG' environment variable
 0:05.28 (recommended), pass the '--with-libclang-path' and
'--with-clang-path'
 0:05.28 options to configure, or put 'llvm-config' in your PATH.
Altering your
 0:05.28 PATH may expose 'clang' as well, potentially altering your
compiler,
 0:05.28 which may not be what you intended.
 0:05.31 *** Fix above errors and then restart with
 0:05.31                "c:/mozilla-build/mozmake/mozmake.EXE -f
client.mk build"
 0:05.31 mozmake.EXE: *** [client.mk:362: configure] Error 1

Where am I actually supposed to get this from? The LLVM snapshot at
https://llvm.org/builds/ doesn't seem to include llvm-config. Do I
have to build it myself? None of this is mentioned in the
documentation at all whatsoever so I assume something in my install
process was messed up.

Hi Andrei,

If you got to this error, you're doing great!

You need LLVM to compile Stylo, Mozilla's new rendering engine based on
Rust. Currently no on on the project knows how to handle that (on
Windows), so we all have

ac_add_options --disable-stylo
unset LLVM_CONFIG

in our .mozconfig files.

It would be nice if our build/release engineer could advise us further.

Jörg.

On 07/09/2017 08:20, Andrei Hajdukewycz wrote: > So I'm trying to build Thunderbird on my XPS 15. I installed Visual > Studio 2017 Community Edition, which maybe wasn't the best choice > since most docs seem to assume 2015, but the Firefox build docs say it > works fine, so... > > Unfortunately I get an error: > > 0:05.28 checking for llvm-config... not found >  0:05.28 ERROR: Could not find LLVM/Clang installation for compiling > stylo build-time >  0:05.28 bindgen.  Please specify the 'LLVM_CONFIG' environment variable >  0:05.28 (recommended), pass the '--with-libclang-path' and > '--with-clang-path' >  0:05.28 options to configure, or put 'llvm-config' in your PATH. > Altering your >  0:05.28 PATH may expose 'clang' as well, potentially altering your > compiler, >  0:05.28 which may not be what you intended. >  0:05.31 *** Fix above errors and then restart with\ >  0:05.31                "c:/mozilla-build/mozmake/mozmake.EXE -f > client.mk build" >  0:05.31 mozmake.EXE: *** [client.mk:362: configure] Error 1 > > Where am I actually supposed to get this from? The LLVM snapshot at > https://llvm.org/builds/ doesn't seem to include llvm-config. Do I > have to build it myself? None of this is mentioned in the > documentation at all whatsoever so I assume something in my install > process was messed up. > Hi Andrei, If you got to this error, you're doing great! You need LLVM to compile Stylo, Mozilla's new rendering engine based on Rust. Currently no on on the project knows how to handle that (on Windows), so we all have ac_add_options --disable-stylo unset LLVM_CONFIG in our .mozconfig files. It would be nice if our build/release engineer could advise us further. Jörg.
AH
Andrei Hajdukewycz
Thu, Sep 7, 2017 8:42 AM

Hi Andrei,

If you got to this error, you're doing great!

You need LLVM to compile Stylo, Mozilla's new rendering engine based
on Rust. Currently no on on the project knows how to handle that (on
Windows), so we all have

ac_add_options --disable-stylo
unset LLVM_CONFIG

in our .mozconfig files.

Thanks! I still had some error messages, and after fighting for a while
and googling I figured out that I was running into Bug 1383578
https://bugzilla.mozilla.org/show_bug.cgi?id=1383578.

After removing the quotes from line 42 of start-shell.bat in the Mozilla
Build 3.0 package, my build completed successfully.

Perhaps this might be helpful to anyone else who does a build on Windows
for the first time.

Hi Andrei, > > If you got to this error, you're doing great! > > You need LLVM to compile Stylo, Mozilla's new rendering engine based > on Rust. Currently no on on the project knows how to handle that (on > Windows), so we all have > > ac_add_options --disable-stylo > unset LLVM_CONFIG > > in our .mozconfig files. Thanks! I still had some error messages, and after fighting for a while and googling I figured out that I was running into Bug 1383578 <https://bugzilla.mozilla.org/show_bug.cgi?id=1383578>. After removing the quotes from line 42 of start-shell.bat in the Mozilla Build 3.0 package, my build completed successfully. Perhaps this might be helpful to anyone else who does a build on Windows for the first time.
JK
Jörg Knobloch
Thu, Sep 7, 2017 12:05 PM

On 07/09/2017 10:42, Andrei Hajdukewycz wrote:

After removing the quotes from line 42 of start-shell.bat in the
Mozilla Build 3.0 package, my build completed successfully.

Perhaps this might be helpful to anyone else who does a build on
Windows for the first time.

I'm a lazy person still on Mozilla Build 2.x. So that information will
come in handy later.

Jörg.

On 07/09/2017 10:42, Andrei Hajdukewycz wrote: > After removing the quotes from line 42 of start-shell.bat in the > Mozilla Build 3.0 package, my build completed successfully. > > Perhaps this might be helpful to anyone else who does a build on > Windows for the first time. I'm a lazy person still on Mozilla Build 2.x. So that information will come in handy later. Jörg.