pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
llvm build fail when Linux kernel/openssl in FIPS 140-2 compliance mode
Can someone point me to the appropriate upstream forum to resolve llvm
not building when OpenSSL is in FIPS mode? The build script attempts
to invoke md5 function which is linked to OpenSSL on Linux and that is
not a FIPS 140-2 certified hash function. Maybe Iain, as you're in
.gov-space?
Thanks
===> Extracting for llvm-10.0.1nb4
/bin/mkdir -p /mnt/data/pkg/src/lang/llvm/work/build
cp ../../mk/gnu-config/config.guess
/mnt/data/pkg/src/lang/llvm/work/llvm-10.0.1.src/cmake/config.guess
cp ../../mk/gnu-config/config.sub
/mnt/data/pkg/src/lang/llvm/work/llvm-10.0.1.src/cmake/config.sub
===> Patching for llvm-10.0.1nb4
=> Applying pkgsrc patches for llvm-10.0.1nb4
===> Creating toolchain wrappers for llvm-10.0.1nb4
===> Configuring for llvm-10.0.1nb4
=> Replacing python interpreter in tools/opt-viewer/*.py
tools/sancov/*.py utils/*.py utils/Misc/zkill utils/bisect
utils/clang-parse-diagnostics-file
utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py
utils/llvm-build/llvm-build utils/llvm-compilers-check
utils/llvm-lit/llvm-lit.in.
INFO: [replace-interpreter] Nothing changed in tools/opt-viewer/optpmap.py.
INFO: [replace-interpreter] Nothing changed in utils/demangle_tree.py.
INFO: [replace-interpreter] Nothing changed in utils/lldbDataFormatters.py.
=> Replacing Perl interpreter in utils/*.pl utils/codegen-diff
utils/llvm-native-gxx.
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
INFO: [subst.mk:cmake] Nothing changed in "CMakeLists.txt".
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /mnt/data/pkg/src/lang/llvm/work/.cwrapper/bin/cc
md5_dgst.c(82): OpenSSL internal error, assertion failed: Digest MD5
forbidden in FIPS mode!
/bin/sh: line 1: 15180 Aborted /usr/bin/env
BUILDLINK_DIR=/mnt/data/pkg/src/lang/llvm/work/.buildlink
PTHREAD_CFLAGS=\ -pthread\ PTHREAD_LDFLAGS=\ -pthread
PTHREAD_LIBS=-lpthread\ -lrt PTHREADBASE=/usr DL_CFLAGS= DL_LDFLAGS=
DL_LIBS= INSTALL_INFO=
MAKEINFO=/mnt/data/pkg/src/lang/llvm/work/.tools/bin/makeinfo FLEX=
BISON= ITSTOOL=/mnt/data/pkg/src/lang/llvm/work/.tools/bin/itstool
GDBUS_CODEGEN=/mnt/data/pkg/src/lang/llvm/work/.tools/bin/gdbus-codegen
PKG_CONFIG= PKG_CONFIG_LIBDIR=/mnt/data/pkg/src/lang/llvm/work/.buildlink/lib64/pkgconfig:/mnt/data/pkg/src/lang/llvm/work/.buildlink/lib/pkgconfig:/mnt/data/pkg/src/lang/llvm/work/.buildlink/share/pkgconfig
PKG_CONFIG_LOG=/mnt/data/pkg/src/lang/llvm/work/.pkg-config.log
PKG_CONFIG_PATH= MAKE=make
CWRAPPERS_CONFIG_DIR=/mnt/data/pkg/src/lang/llvm/work/.cwrapper/config
PYTHON=/mnt/data/pkg/bin/python3.8 CC=cc CFLAGS=-O2\
-D_FORTIFY_SOURCE=2\ -I/mnt/data/pkg/include\ -I/usr/include\
-I/mnt/data/pkg/include/python3.8 CPPFLAGS=-I/mnt/data/pkg/include\
-I/usr/include\ -I/mnt/data/pkg/include/python3.8 CXX=c++
CXXFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/mnt/data/pkg/include\
-I/usr/include\ -I/mnt/data/pkg/include/python3.8
COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_ALL=C
LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C
LC_TIME=C LDFLAGS=-L/mnt/data/pkg/lib\ -Wl,-R/mnt/data/pkg/lib\
-L/usr/lib64\ -Wl,-R/usr/lib64 LINKER_RPATH_FLAG=-R
PATH=/mnt/data/pkg/src/lang/llvm/work/.cwrapper/bin:/mnt/data/pkg/src/lang/llvm/work/.buildlink/bin:/mnt/data/pkg/src/lang/llvm/work/.gcc/bin:/mnt/data/pkg/src/lang/llvm/work/.tools/bin:/mnt/data/pkg/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/mnt/data/pkg/bin:/mnt/data/pkg/bin
PREFIX=/mnt/data/pkg MAKELEVEL=0 CONFIG_SITE=
PKG_SYSCONFDIR=/mnt/data/pkg/etc
HOME=/mnt/data/pkg/src/lang/llvm/work/.home
CWRAPPERS_CONFIG_DIR=/mnt/data/pkg/src/lang/llvm/work/.cwrapper/config
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=cc
-DCMAKE_CXX_COMPILER=c++ -DCMAKE_CXX_LINK_FLAGS=\ \ \
-L/mnt/data/pkg/lib\ -Wl,-R/mnt/data/pkg/lib\ -L/usr/lib64\
-Wl,-R/usr/lib64 -DLLVM_BUILD_LLVM_DYLIB=ON
-DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_INSTALL_UTILS=ON
-DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON
-DLLVM_ENABLE_TERMINFO=OFF
-DLLVM_TARGETS_TO_BUILD="AArch64;AMDGPU;ARM;BPF;Hexagon;Lanai;Mips;MSP430;NVPTX;PowerPC;RISCV;Sparc;SystemZ;WebAssembly;X86;XCore"
-DPython_EXECUTABLE:FILEPATH=/mnt/data/pkg/bin/python3.8
-DPython_INCLUDE_DIR:PATH=/mnt/data/pkg/src/lang/llvm/work/.buildlink/include/python3.8
-DPython3_EXECUTABLE:FILEPATH=/mnt/data/pkg/bin/python3.8
-DPython3_INCLUDE_DIR:PATH=/mnt/data/pkg/src/lang/llvm/work/.buildlink/include/python3.8
-DPYVERSSUFFIX:STRING=3.8
-DPYTHON_INCLUDE_DIR:PATH=/mnt/data/pkg/src/lang/llvm/work/.buildlink/include/python3.8
-DPYTHON_INCLUDE_PATH:PATH=/mnt/data/pkg/src/lang/llvm/work/.buildlink/include/python3.8
-DPYTHON_EXECUTABLE:FILEPATH=/mnt/data/pkg/bin/python3.8
-DCMAKE_INSTALL_PREFIX:PATH=/mnt/data/pkg
-DCMAKE_MODULE_PATH:PATH=/mnt/data/pkg/src/lang/llvm/work/.buildlink/cmake-Modules
-DCMAKE_PKGSRC_BUILD_FLAGS:BOOL=TRUE -DCMAKE_SKIP_RPATH:BOOL=TRUE
-DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_INSTALL_MANDIR:PATH=man
/mnt/data/pkg/src/lang/llvm/work/llvm-10.0.1.src
*** Error code 134
Stop.
bmake[1]: stopped in /mnt/data/pkg/src/lang/llvm
*** Error code 1
Stop.
bmake: stopped in /mnt/data/pkg/src/lang/llvm
Home |
Main Index |
Thread Index |
Old Index