Public bug reported:
he following error occurs when building jss on armhf platform:
./build.sh
CMake Warning (dev) at CMakeLists.txt:2 (project):
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 15.2.0
-- The CXX compiler identification is GNU 15.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Checking for module 'nspr'
-- Found nspr, version 4.38.2
-- Found NSPR: /usr/lib/arm-linux-gnueabihf
-- Checking for module 'nss'
-- Found nss, version 3.120
-- Found NSS: /usr/lib/arm-linux-gnueabihf
-- Found Java: /usr/bin/java (found version "25.0.2")
-- Found JNI: /usr/lib/jvm/default-java/include found components: AWT JVM
-- Performing Test HAVE_C_FLAG
-- Performing Test HAVE_C_FLAG - Success
-- JSS C FLAGS:
-O2;-Wall;-std=gnu99;-Wno-cast-function-type;-Wno-unused-parameter;-Wno-unknown-warning-option;-Wno-unused-but-set-variable;-Werror-implicit-function-declaration;-Wno-switch;-I/root/build/jss/include/jss;-I/usr/lib/jvm/default-java/include;-I/usr/lib/jvm/default-java/include/linux;-I/usr/lib/jvm/default-java/include;-I/usr/include/nspr;-I/usr/include/nss;-L/usr/lib/arm-linux-gnueabihf;-L/usr/lib/arm-linux-gnueabihf
-- JSS LD FLAGS:
-lsmime3;-lssl3;-lnss3;-lnssutil3;-lplc4;-lplds4;-lnspr4;-lpthread;-ldl
-- JSS LIBRARY FLAGS: -shared;-Wl,-z,defs;-Wl,-soname;-Wl,libjss.so
-- javac classpath:
/usr/share/java/slf4j-api.jar:/usr/share/java/commons-lang3.jar
-- JSS JAVAC FLAGS:
-classpath;/usr/share/java/slf4j-api.jar:/usr/share/java/commons-lang3.jar;-sourcepath;/build/magic1/upstream/jss/base/src/main/java;-target;17;-source;17;-O
-- tests classpath:
/root/build/jss/jss.jar:/root/build/jss/jss-tests.jar:/usr/share/java/slf4j-api.jar:/usr/share/java/commons-lang3.jar:/usr/share/java/slf4j-jdk14.jar:/usr/share/java/junit-jupiter-api.jar:/usr/share/java/junit-jupiter-engine.jar:/usr/share/java/junit-platform-commons.jar:/usr/share/java/junit-platform-engine.jar:/usr/share/java/junit-platform-launcher.jar:/usr/share/java/opentest4j.jar:/usr/share/java/hamcrest-core.jar
-- JSS TEST JAVAC FLAGS:
-classpath;/usr/share/java/slf4j-api.jar:/usr/share/java/commons-lang3.jar:/usr/share/java/junit-jupiter-api.jar:/usr/share/java/junit-platform-commons.jar:/usr/share/java/junit-platform-engine.jar:/usr/share/java/junit-platform-launcher.jar:/root/build/jss/classes/jss;-sourcepath;/build/magic1/upstream/jss/base/src/main/java:/build/magic1/upstream/jss/base/src/test/java;-target;17;-source;17;-O
-- Looking for CKM_AES_CMAC
-- Looking for CKM_AES_CMAC - found
-- Looking for CKM_SP800_108_COUNTER_KDF
-- Looking for CKM_SP800_108_COUNTER_KDF - found
CMake Warning at cmake/JSSConfig.cmake:366 (message):
Assuming OAEP support.
Call Stack (most recent call first):
cmake/JSSConfig.cmake:24 (jss_config_symbols)
CMakeLists.txt:91 (jss_config)
-- Performing Test HAVE_NSS_CIPHER_SUITE_INFO_KDFHASH
-- Performing Test HAVE_NSS_CIPHER_SUITE_INFO_KDFHASH - Success
-- Performing Test HAVE_NSS_CHANNEL_INFO_ORIGINAL_KEA_GROUP
-- Performing Test HAVE_NSS_CHANNEL_INFO_ORIGINAL_KEA_GROUP - Success
-- Performing Test HAVE_NSS_CHANNEL_INFO_PEER_DELEG_CRED
-- Performing Test HAVE_NSS_CHANNEL_INFO_PEER_DELEG_CRED - Success
-- Performing Test HAVE_NSS_PRELIMINARY_CHANNEL_INFO_ZERO_RTT_CIPHER_SUITE
-- Performing Test HAVE_NSS_PRELIMINARY_CHANNEL_INFO_ZERO_RTT_CIPHER_SUITE -
Success
-- Performing Test HAVE_NSS_PRELIMINARY_CHANNEL_INFO_PEER_DELEG_CRED
-- Performing Test HAVE_NSS_PRELIMINARY_CHANNEL_INFO_PEER_DELEG_CRED - Success
CMake Warning (dev) at cmake/JSSCommon.cmake:258 (add_custom_command):
Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given. Assuming
POST_BUILD to preserve backward compatibility.
Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/JSSCommon.cmake:33 (jss_build_test_jars)
CMakeLists.txt:92 (jss_build)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done (2.9s)
-- Generating done (0.1s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE
CMAKE_Fortran_FLAGS_RELEASE
CMAKE_INSTALL_DO_STRIP
INCLUDE_INSTALL_DIR
LIB_SUFFIX
PHASE
SBIN_INSTALL_DIR
SYSCONF_INSTALL_DIR
VERSION
-- Build files have been written to: /root/build/jss
....
/build/jss/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:
In function ‘oaep_GetSpecifiedSourceData’:
/build/magic1/upstream/jss/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:63:56:
error: passing argument 4 of ‘JSS_FromByteArray’ from incompatible pointer
type [-Wincompatible-pointer-types]
63 | if (!JSS_FromByteArray(env, data, (uint8_t **)ret, ret_len)) {
| ^~~~~~~
| |
| CK_ULONG * {aka
long unsigned int *}
In file included from
/build/magic1/upstream/jss/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:9:
/root/build/jss/include/jss/jssutil.h:350:13: note: expected ‘size_t *’ {aka
‘unsigned int *’} but argument is of type ‘CK_ULONG *’ {aka ‘long unsigned int
*’}
350 | size_t *length);
| ~~~~~~~~^~~~~~
At top level:
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may
have been intended to silence earlier diagnostics
make[3]: *** [CMakeFiles/generate_c.dir/build.make:164:
lib/JSSOAEPParameterSpec.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:2163: CMakeFiles/generate_c.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2719: CMakeFiles/native.dir/rule] Error 2
** Affects: jss (Ubuntu)
Importance: Undecided
Status: New
** Tags: update-excuse
** Bug watch added: github.com/dogtagpki/jss/issues #1077
https://github.com/dogtagpki/jss/issues/1077
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143687
Title:
jss fails to build from source on armhf platform
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jss/+bug/2143687/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs