On 5/25/23 8:02 AM, Brian Reichert wrote:
On Thu, May 25, 2023 at 02:14:46PM +0100, Dennis Jackson wrote:
Are you sure that your
environment is configured to use the correct gcc version? It might be you
have gcc 9 installed but not selected.
I think you're on to something; I did already install gcc 9, as I
was aware is was necessary to build the source.
"rpm -qa '^gcc*" shows me several versions of gcc RPMs are installed.
Oddly, this distribution doesn't use 'update-alternatives' to manage
which version is in use, and indeed 4.8.5 is the default version
in play.
It looks like gcc 9's binary is named '/usr/bin/gcc-9'. Similarly,
g++ is '/usr/bin/g++-9'.
build.sh doesn't seem to directly support overriding the name of
the C compiler, but it looks like it honors some environment variables
(e.g. CC):
env CC=gcc-9 CXX=g++-9 nss/build.sh --with-nspr=/usr/include/nspr4 -v >&
build.log
And that gets me much farther. My new failure is in compiling
nss_bogo_shim.cc.
I will sometimes have to disable gtests when building on older
platforms, but it doesn't look like there's a gyp option to do this (we
build with gmake and the option there is NSS_DISABLE_GTESTS)
bob
If you're willing to cast an eye on this:
FAILED: obj/gtests/nss_bogo_shim/nss_bogo_shim.nss_bogo_shim.o
g++-9 -MMD -MF obj/gtests/nss_bogo_shim/nss_bogo_shim.nss_bogo_shim.o.d
-DNSS_USE_STATIC_LIBS -DNSS_FIPS_DISABLED -DNSS_NO_INIT_SUPPORT
-DNSS_X86_OR_X64 -DNSS_X64 -DNSS_USE_64 -DUSE_UTIL_DIRECTLY
-DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DLINUX2_1
-DLINUX -Dlinux -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE
-DSDB_MEASURE_USE_TEMP_DIR -DHAVE_STRERROR -DXP_UNIX -D_REENTRANT
-DNSS_DISABLE_DBM -DNSS_DISABLE_LIBPKIX -DDEBUG -I../../lib/ssl
-
--
You received this message because you are subscribed to the Google Groups
"dev-tech-crypto@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dev-tech-crypto+unsubscr...@mozilla.org.
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-tech-crypto/d5927c4a-ce72-09ab-8f63-eb849cf8c7da%40redhat.com.