Hi Brian,

The error you're seeing is in 3rd party code (gtest) and from a quick
search looks like it's caused by the GCC version being too old (see this
patch
<https://lists.buildroot.org/pipermail/buildroot/2022-June/644711.html>
identifying gcc 5 as a requirement). This SUSE article
<https://www.suse.com/c/suse-linux-essentials-where-are-the-compilers-understanding-the-development-tools-module/>states
that the default gcc version for SLES 12 is 4.8. 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.

Best,
Dennis

On Wed, 24 May 2023 at 20:57, Brian Reichert <reich...@numachi.com> wrote:

> I'm exploring building nss-3.89.1 under SLES12 SP5, but hitting a
> brick wall, right out of the gate.
>
> This host is fully updated, has gcc9-c++, gyp, and ninja installed.
>
> This also has mozilla-nspr-devel-4.35-19.12.0.x86_64 installed
> (locally built); that has put header files under /usr/include/nspr4.
>
> I've be happy to provide specific dev toolchain version numbers,
> if that would be helpful.
>
> Steps taken:
>
>   breichert@sles12breichert:~/build> wget
> https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_89_1_RTM/src/nss-3.89.1.tar.gz
>
>   breichert@sles12breichert:~/build> tar zxf nss-3.89.1.tar.gz
>
>   breichert@sles12breichert:~/build> cd nss-3.89.1/
>
>   breichert@sles12breichert:~/build/nss-3.89.1> nss/build.sh
> --with-nspr=/usr/include/nspr4 -v >& build.log
>
> The build starts to go wrong here; dunno if anyone has any feedback
> they can provide.  I'm not a C++ developer, and never have enjoyed
> untangling C++ build failures:
>
> [220/1256] c++ -MMD -MF
> obj/gtests/util_gtest/util_gtest.util_b64_unittest.o.d -DNSS_FIPS_DISABLED
> -DNSS_NO_INIT_SUPPORT -DNSS_X86_OR_X64 -DNSS_X64 -DNSS_USE_64
> -DNSS_USE_STATIC_LIBS -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/util -I/usr/include/nspr4
> -I/home/breichert/build/nss-3.89.1/dist/private/nss
> -I../../gtests/google_test/gtest/include -I../../gtests/common
> -I../../cpputil -I/home/breichert/build/nss-3.89.1/dist/public/nss
> -Wsign-compare -fPIC -pipe -ffunction-sections -fdata-sections -m64 -Werror
> -Wall -Wshadow -O0 -g -gdwarf-2 -std=c++11  -c
> ../../gtests/util_gtest/util_b64_unittest.cc -o
> obj/gtests/util_gtest/util_gtest.util_b64_unittest.o
> FAILED: obj/gtests/util_gtest/util_gtest.util_b64_unittest.o
> c++ -MMD -MF obj/gtests/util_gtest/util_gtest.util_b64_unittest.o.d
> -DNSS_FIPS_DISABLED -DNSS_NO_INIT_SUPPORT -DNSS_X86_OR_X64 -DNSS_X64
> -DNSS_USE_64 -DNSS_USE_STATIC_LIBS -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/util -I/usr/include/nspr4
> -I/home/breichert/build/nss-3.89.1/dist/private/nss
> -I../../gtests/google_test/gtest/include -I../../gtests/common
> -I../../cpputil -I/home/breichert/build/nss-3.89.1/dist/public/nss
> -Wsign-compare -fPIC -pipe -ffunction-sections -fdata-sections -m64 -Werror
> -Wall -Wshadow -O0 -g -gdwarf-2 -std=c++11  -c
> ../../gtests/util_gtest/util_b64_unittest.cc -o
> obj/gtests/util_gtest/util_gtest.util_b64_unittest.o
> In file included from
>
> ../../gtests/google_test/gtest/include/gtest/internal/gtest-death-test-internal.h:39:0,
>                  from
> ../../gtests/google_test/gtest/include/gtest/gtest-death-test.h:41,
>                  from
> ../../gtests/google_test/gtest/include/gtest/gtest.h:64,
>                  from ../../gtests/util_gtest/util_b64_unittest.cc:11:
> ../../gtests/google_test/gtest/include/gtest/gtest-matchers.h: In static
> member function ‘static constexpr bool
> testing::internal::MatcherBase<T>::IsInlined()’:
> ../../gtests/google_test/gtest/include/gtest/gtest-matchers.h:414:12:
> error:
> ‘is_trivially_copy_constructible’ is not a member of
> ‘std’
>             std::is_trivially_copy_constructible<M>::value &&
>             ^
> ../../gtests/google_test/gtest/include/gtest/gtest-matchers.h:414:50:
> error:
> expected primary-expression before ‘>’ token
>             std::is_trivially_copy_constructible<M>::value &&
>                                                   ^
> ../../gtests/google_test/gtest/include/gtest/gtest-matchers.h:414:51:
> error:
> ‘::value’ has not been declared
>             std::is_trivially_copy_constructible<M>::value &&
>
>
> --
> Brian Reichert                          <reich...@numachi.com>
> BSD admin/developer at large
>
> --
> 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/20230524184301.GA5612%40numachi.com
> .
>

-- 
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/CAON8YFPwK%3DO%2BXjHmKBinuMWe21fj-AatnQmDMQktpX_wjkmD2Q%40mail.gmail.com.

Reply via email to