Closed
Bug 1723009
Opened 3 years ago
Closed 3 years ago
nspr not found on developer system with --with-system-nspr
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1722442
People
(Reporter: sfink, Unassigned)
Details
My build with the following mozconfig is failing to find nspr:
ac_add_options --enable-project=js --with-project=js
ac_add_options --disable-debug
ac_add_options --enable-optimize
ac_add_options --enable-ctypes
ac_add_options --enable-js-shell
ac_add_options --with-system-nspr
ac_add_options --enable-fuzzing
ac_add_options --enable-tests
ac_add_options --enable-linker=lld
ac_add_options --without-sysroot
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-opt-js
Note that I added --without-sysroot
in a failed attempt to fix this problem.
The error is:
checking for llvm_profdata... /home/sfink/.mozbuild/clang/bin/llvm-profdata
checking for nspr >= 4.10... no
ERROR: Package nspr was not found in the pkg-config search path.
ERROR: Perhaps you should add the directory containing `nspr.pc'
ERROR: to the PKG_CONFIG_PATH environment variable
ERROR: Package 'nspr', required by 'virtual:world', not found
What appears to be happening is that configure is setting PKG_CONFIG_SYSROOT_DIR=/home/sfink/.mozbuild/sysroot-x86_64-linux-gnu
and that sysroot does not contain nspr.pc. My system does have it:
% pkg-config --cflags nspr
-I/usr/include/nspr4
I'm not sure how this is supposed to work.
Comment 1•3 years ago
|
||
It's supposed to fail with an explicit error message that you need to disable bootstrap or disable sysroot, but there was a condition error. So I suspect this is a dupe of bug 1722442.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•