Closed
Bug 1416058
Opened 7 years ago
Closed 7 years ago
Error when full build - ould not find LLVM/Clang installation
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Firefox Build System
Android Studio and Gradle Integration
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: cnevinchen, Unassigned)
References
Details
I got this error when I do a full build today.
I've run ./mach bootstrap succesfully.
Here's my mozconfig
ac_add_options --enable-application=mobile/android
ac_add_options --target=arm-linux-androideabi
ac_add_options --with-android-sdk="/Users/nechen/.mozbuild/android-sdk-macosx"
ac_add_options --with-android-ndk="/Users/nechen/.mozbuild/android-ndk-r15c"
mk_add_options MOZ_OBJDIR=./objdir-full-b04669e98
and error message:
0:07.47 ERROR: Could not find LLVM/Clang installation for compiling stylo build-time
0:07.47 bindgen. Please specify the 'LLVM_CONFIG' environment variable
0:07.47 (recommended), pass the '--with-libclang-path' and '--with-clang-path'
0:07.47 options to configure, or put 'llvm-config' in your PATH. Altering your
0:07.47 PATH may expose 'clang' as well, potentially altering your compiler,
0:07.47 which may not be what you intended.
0:07.49 *** Fix above errors and then restart with "/Applications/Xcode.app/Contents/Developer/usr/bin/make -f client.mk build"
0:07.49 make: *** [configure] Error 1
Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(cnevinchen)
Comment 2•7 years ago
|
||
What are the contents of ~/.mozbuild/?
I guess we need to start installing clang for Android bootstraps as well...if we haven't already. Another option would be seeing if the NDK's clang could be used. What happens if you do something like:
ac_add_options --with-libclang-path=/Users/nechen/.mozbuild/android-ndk-r15c/toolchains/llvm/prebuilt/linux-x86_64/lib64/
ac_add_options --with-clang-path=?Users/nechen/.mozbuild/android-ndk-r15c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
(I think those options are correct...) Does that work?
Flags: needinfo?(nfroyd)
Reporter | ||
Comment 3•7 years ago
|
||
(In reply to Nathan Froyd [:froydnj] from comment #2)
> What are the contents of ~/.mozbuild/?
> ac_add_options --with-libclang-path=/Users/nechen/.mozbuild/android-ndk-r15c/toolchains/llvm/prebuilt/linux-x86_64/lib64/
> ac_add_options --with-clang-path=?Users/nechen/.mozbuild/android-ndk-r15c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
>
> (I think those options are correct...) Does that work?
Above works ( although I should use darwin-x86_64 since I'm on Mac)
But I got an error here:
24:33.41 TestUnicodeArguments
24:33.96 3 warnings generated.
24:33.98 libgflags.a.desc
24:34.27 libplugin-container-pie.so
24:34.59 In file included from /Users/nechen/Desktop/mozilla-central/layout/style/test/ListCSSProperties.cpp:11:
24:34.59 In file included from /Users/nechen/Desktop/mozilla-central/objdir-full-b04669e98/dist/include/mozilla/ArrayUtils.h:14:
24:34.59 In file included from /Users/nechen/Desktop/mozilla-central/objdir-full-b04669e98/dist/include/mozilla/Assertions.h:16:
24:34.59 In file included from /Users/nechen/Desktop/mozilla-central/objdir-full-b04669e98/dist/include/mozilla/Attributes.h:12:
24:34.59 /Users/nechen/Desktop/mozilla-central/objdir-full-b04669e98/dist/include/mozilla/Compiler.h:49:12: fatal error: 'cstddef' file not found
24:34.59 # include <cstddef>
24:34.59 ^~~~~~~~~
24:34.67 1 error generated.
24:34.67 make[4]: *** [host_ListCSSProperties.o] Error 1
24:34.67 make[3]: *** [layout/style/test/host] Error 2
24:34.67 make[3]: *** Waiting for unfinished jobs....
24:35.90 libclearkey.so
24:38.87 libgfx_ots_src.a.desc
24:39.98 brotli
Flags: needinfo?(cnevinchen) → needinfo?(nfroyd)
Comment 4•7 years ago
|
||
You are now running into bug 1412983. If you would try the patch stack in that bug, and see if that fixes things for you, that would be great!
I guess we can see about auto-detecting the NDK's clang for bindgen purposes.
Flags: needinfo?(nfroyd)
Reporter | ||
Comment 5•7 years ago
|
||
this is fixed now
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Updated•5 years ago
|
Product: Firefox for Android → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•