swi-prolog 8.4.1 wouldn't compile (amd64/Centos7/gcc-10.2)
by NevemTeve from LinuxQuestions.org on (#5STBR)
Oh well, why would it compile?
Here is the build script I tried:
Code:#!/bin/bash
rm -rf build/
mkdir -p man/archive
mkdir -p build; cd build
set -e
set -o pipefail
export CFLAGS="$COMMON_CFLAGS64 -std=c17 $COMMON_CPPFLAGS"
export LDFLAGS="$COMMON_LDFLAGS64 -L/usr/local/lib64 -Wl,-R/usr/local/lib64"
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. 2>&1 | tee ../log.cmake
make VERBOSE=yes 2>&1 | tee ../log.make.all
ctest -j 4 2>&1 | tee ../log.ctest
make VERBOSE=yes install 2>&1 | tee ../log.make.install
Here is the build script I tried:
Code:#!/bin/bash
rm -rf build/
mkdir -p man/archive
mkdir -p build; cd build
set -e
set -o pipefail
export CFLAGS="$COMMON_CFLAGS64 -std=c17 $COMMON_CPPFLAGS"
export LDFLAGS="$COMMON_LDFLAGS64 -L/usr/local/lib64 -Wl,-R/usr/local/lib64"
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. 2>&1 | tee ../log.cmake
make VERBOSE=yes 2>&1 | tee ../log.make.all
ctest -j 4 2>&1 | tee ../log.ctest
make VERBOSE=yes install 2>&1 | tee ../log.make.install