KPHP cannot be built on Ubuntu 24.04 LTS
When trying to build KPHP from sources on Ubuntu 24.04, I get this error:
0%] Built target openssl-pic
[ 10%] Building CXX object CMakeFiles/tlo_parsing_src-no-pic.dir/common/tlo-parsing/flat-optimization.cpp.o
[ 10%] Building CXX object CMakeFiles/tlo_parsing_src-pic.dir/common/tlo-parsing/flat-optimization.cpp.o
[ 10%] Building CXX object CMakeFiles/tlo_parsing_src-no-pic.dir/common/tlo-parsing/remove-odd-types.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-pic.dir/common/server/signals.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/rpc-headers.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/parallel/counter.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/parallel/maximum.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-pic.dir/common/server/relogin.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/parallel/thread-id.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/parallel/limit-counter.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/server/limits.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-pic.dir/common/server/crash-dump.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-pic.dir/common/server/engine-settings.cpp.o
[ 10%] Building CXX object CMakeFiles/tlo_parsing_src-no-pic.dir/common/tlo-parsing/replace-anonymous-args.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/server/signals.cpp.o
[ 10%] Building CXX object CMakeFiles/popular-common-pic.dir/common/stats/buffer.cpp.o
[ 11%] Building CXX object CMakeFiles/popular-common-pic.dir/common/stats/provider.cpp.o
[ 11%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/server/relogin.cpp.o
[ 12%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/server/crash-dump.cpp.o
[ 12%] Built target popular-common-pic
[ 13%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/core/utils/migration-php8.cpp.o
[ 13%] Building CXX object CMakeFiles/tlo_parsing_src-pic.dir/common/tlo-parsing/remove-odd-types.cpp.o
[ 13%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/core/core-types/definition/mixed.cpp.o
[ 13%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/server/engine-settings.cpp.o
[ 13%] Building CXX object CMakeFiles/tlo_parsing_src-no-pic.dir/common/tlo-parsing/tl-dependency-graph.cpp.o
[ 13%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/stats/buffer.cpp.o
[ 13%] Building CXX object CMakeFiles/popular-common-no-pic.dir/common/stats/provider.cpp.o
[ 13%] Building CXX object CMakeFiles/tlo_parsing_src-no-pic.dir/common/tlo-parsing/tl-objects.cpp.o
[ 13%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/core/core-types/definition/string.cpp.o
[ 13%] Built target popular-common-no-pic
[ 14%] Building CXX object CMakeFiles/tlo_parsing_src-pic.dir/common/tlo-parsing/replace-anonymous-args.cpp.o
[ 15%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/utils/migration-php8.cpp.o
[ 15%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/core-types/definition/mixed.cpp.o
[ 15%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/core/core-types/definition/string_buffer.cpp.o
In file included from /home/henrik/kphp/./runtime-common/core/runtime-core.h:44,
from /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:10:
/home/henrik/kphp/./runtime-common/core/core-types/definition/string.inl: In member function ‘array
Any ideas ?
Hi! It's known problem, sadly. We are going to fix it soon.
For now it's possible to compile it using older versions of g++, 10 or 11 versions, for example. Or using clang++.
Can you please reveal how to compile using clang - I managed to do it on one machine running Ubuntu 24.04 but it fails on another Ubuntu 24.04 machine - Especially with regards to pre-requisites ?
Can you please reveal how to compile using clang - I managed to do it on one machine running Ubuntu 24.04 but it fails on another Ubuntu 24.04 machine - Especially with regards to pre-requisites ?
$ cmake -S path/to/repo -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
$ make all -j8
Thanks !
Will try it out during the weekend I hope - a bit swamped now :( ...
Your command makes it compile/install/run on one Ubuntu 24 host (when compiled with clang) but on another Ubuntu 24 host it fails with:
[ 31%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/array/array-functions.cpp.o configure.ac:20: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:20: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:594: AS_CASE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... m4/ax_tls.m4:49: AX_TLS is expanded from... configure.ac:20: the top level [ 31%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/core-types/definition/string_buffer.cpp.o configure.ac:13: installing 'build-aux/compile' configure.ac:13: installing 'build-aux/config.guess' configure.ac:13: installing 'build-aux/config.sub' configure.ac:9: installing 'build-aux/install-sh' configure.ac:9: installing 'build-aux/missing' Makefile.am: installing 'build-aux/depcomp' parallel-tests: installing 'build-aux/test-driver' configure: error: working directory cannot be determined make[2]: *** [CMakeFiles/numactl-no-pic.dir/build.make:94: third-party/numactl-no-pic/build/src/numactl-no-pic-stamp/numactl-no-pic-configure] Error 255 make[1]: *** [CMakeFiles/Makefile2:1289: CMakeFiles/numactl-no-pic.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....
Any ideas ???
I've just successfully compiled kphp on Ubuntu 24 using g++-10
- First, you need to completely remove every bit of previous attempts to install/compile kphp.
apt list --installed | grep 'vk'
apt list --installed | grep 'kphp'
If you see there something like kphp-tools installed, remove it before you continue.
- Then, check you have clear environment.
env | grep 'KPHP'
Remove every related variable you find with unset KPHP_VAR.
- Then you need to checkout with submodules, because otherwise wrong version of dependency installed system-wide could be picked. First remove local copy of kphp completely, then.
$> git clone --recurse-submodules https://github.com/VKCOM/kphp.git
$> cd kphp
- And finally, configure cmake with g++10 and make.
$kphp> mkdir build
$kphp> cd build
$kphp/build> cmake .. -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_C_COMPILER=gcc-10
$kphp/build> make -j8`
(To install g++10, use $kphp/build> sudo apt install g++-10)
@hrissan Thank you very much ! I hope to get time to try it out this weekend - Will get back to you !
@hrissan I tried your steps but to no avail unfortunately: When running
# make -j8
configure.ac:13: installing 'build-aux/compile'
configure.ac:13: installing 'build-aux/config.guess'
configure.ac:13: installing 'build-aux/config.sub'
configure.ac:9: installing 'build-aux/install-sh'
configure.ac:9: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
[ 26%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/crypto/crypto-functions.cpp.o
[ 26%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/memory-resource/details/memory_chunk_tree.cpp.o
configure: error: working directory cannot be determined
make[2]: *** [CMakeFiles/numactl-no-pic.dir/build.make:94: third-party/numactl-no-pic/build/src/numactl-no-pic-stamp/numactl-no-pic-configure] Error 255
make[1]: *** [CMakeFiles/Makefile2:1299: CMakeFiles/numactl-no-pic.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 26%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/math/math-functions.cpp.o
[ 26%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/memory-resource/details/memory_ordered_chunk_list.cpp.o
configure.ac:20: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:20: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:594: AS_CASE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/ax_tls.m4:49: AX_TLS is expanded from...
configure.ac:20: the top level
[ 26%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/memory-resource/monotonic_buffer_resource.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/math/bcmath-functions.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/memory-resource/unsynchronized_pool_resource.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/math/math-context.cpp.o
configure.ac:13: installing 'build-aux/compile'
configure.ac:13: installing 'build-aux/config.guess'
configure.ac:13: installing 'build-aux/config.sub'
configure.ac:9: installing 'build-aux/install-sh'
configure.ac:9: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
[ 27%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/msgpack/object_visitor.cpp.o
configure: error: working directory cannot be determined
make[2]: *** [CMakeFiles/numactl-pic.dir/build.make:94: third-party/numactl-pic/build/src/numactl-pic-stamp/numactl-pic-configure] Error 255
make[1]: *** [CMakeFiles/Makefile2:1325: CMakeFiles/numactl-pic.dir/all] Error 2
[ 27%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/array/array-functions.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/crypto/crypto-functions.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/msgpack/packer.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/msgpack/parser.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/math/math-functions.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/msgpack/unpacker.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/msgpack/zone.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/serialization/json-functions.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/serialization/json-writer.cpp.o
[ 27%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/math/bcmath-functions.cpp.o
[ 28%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/math/math-context.cpp.o
[ 28%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/serialization/serialize-functions.cpp.o
[ 28%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/msgpack/object_visitor.cpp.o
[ 28%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/msgpack/packer.cpp.o
[ 28%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/msgpack/parser.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/string/mbstring-functions.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/string/regex-functions.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/string/string-functions.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/msgpack/unpacker.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/server/url-functions.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/msgpack/zone.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/serialization/json-functions.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/server/net-functions.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/serialization/json-writer.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/vkext/string-processing.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/serialization/serialize-functions.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/stdlib/vkext/vkext-functions.cpp.o
[ 29%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/string/mbstring-functions.cpp.o
[ 30%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/string/regex-functions.cpp.o
[ 30%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/string/string-functions.cpp.o
[ 30%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/server/url-functions.cpp.o
[ 30%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/server/net-functions.cpp.o
[ 30%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/vkext/string-processing.cpp.o
[ 30%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/stdlib/vkext/vkext-functions.cpp.o
[ 30%] Built target runtime-common-no-pic
[ 30%] Built target runtime-common-pic
[ 87%] Linking C static library /tmp/kphp/build/third-party/timelib-no-pic/source/objs/libkphp-timelib.a
[100%] Built target kphp-timelib
[ 31%] Performing install step for 'timelib-no-pic'
-- Installing: /tmp/kphp/build/third-party/timelib-no-pic/install/lib/libkphp-timelib.a
-- Installing: /tmp/kphp/build/third-party/timelib-no-pic/install/include/kphp/timelib/timelib.h
[ 31%] Completed 'timelib-no-pic'
[ 31%] Built target timelib-no-pic
make: *** [Makefile:166: all] Error 2
Any ideas ?
I was successful on another Ubuntu 24 but on this new host I am unsuccessful no matter what I try. (The only difference being A) the CPU and B) the amount of RAM that is installed - On the "success" machine I have Ubuntu 24 and 16 GB RAM and on the "failure" machine I have Ubuntu 24.04_01 and 8 GB RAM. The "success" machine has an Intel I7 and the "failure" machine has some kind of AMD processor.
The problem seems to be with the numactl ?
Output from the cmake command:
cmake .. -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_C_COMPILER=gcc-10
-- The C compiler identification is GNU 10.5.0
-- The CXX compiler identification is GNU 10.5.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc-10
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-10 - 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/g++-10 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.43.0")
-- Found Python3: /usr/bin/python3 (found version "3.12.3") found components: Interpreter
-- Found Perl: /usr/bin/perl (found version "5.38.2")
-- Performing Test NO_PIE_IS_FOUND
-- Performing Test NO_PIE_IS_FOUND - Success
-- GIT_BRANCH="master" ; GIT_COMMIT="d120443ad8595748f49fddc60f2bfbb2b89abf5e" ; BUILD_TIMESTAMP="1750782572"
-- CMAKE_INSTALL_PREFIX="/usr/local" ; CPACK_PACKAGING_INSTALL_PREFIX="/usr/local"
-- PDO_LIBS_STATIC_LINKING="OFF"
-- PDO_DRIVER_MYSQL="OFF"
-- PDO_DRIVER_PGSQL="OFF"
-- KPHP_TESTS="ON"
-- KPHP_CUSTOM_CMAKE="OFF"
-- COMPILE_RUNTIME_LIGHT="OFF"
-- DOWNLOAD_MISSING_LIBRARIES="OFF"
-- Google Mock found in GTest
-- CMAKE_CXX_STANDARD="17"
-- ADDRESS_SANITIZER="OFF" ; UNDEFINED_SANITIZER="OFF"
-- Setting build type to `ReleaseWithAsserts` as none was specified.
-- CMAKE_BUILD_TYPE="ReleaseWithAsserts"
-- Performing Test DEBUG_COMPRESSION_IS_FOUND
-- Performing Test DEBUG_COMPRESSION_IS_FOUND - Success
-- Updating Git submodule /tmp/kphp/third-party/zlib ...
-- Zlib Summary:
PIC enabled: OFF
Version: v1.3.1
Source: https://github.com/madler/zlib.git
Include dirs: /tmp/kphp/build/third-party/zlib-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/zlib-no-pic/install/lib/libz.a
Target name: ZLIB::no-pic::zlib
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -Wall -O3 -D_REENTRANT -fno-pic -static
-- Zlib Summary:
PIC enabled: ON
Version: v1.3.1
Source: https://github.com/madler/zlib.git
Include dirs: /tmp/kphp/build/third-party/zlib-pic/install/include
Libraries: /tmp/kphp/build/third-party/zlib-pic/install/lib/libz.a
Target name: ZLIB::pic::zlib
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -Wall -O3 -D_REENTRANT -fPIC
-- Updating Git submodule /tmp/kphp/third-party/openssl ...
-- OpenSSL Summary:
PIC enabled: OFF
Version: debian/openssl-1.1.1n-0+deb10u7
Source: https://github.com/VKCOM/openssl.git
Include dirs: /tmp/kphp/build/third-party/openssl-no-pic/install/include
Crypto lib: /tmp/kphp/build/third-party/openssl-no-pic/install/lib/libcrypto.a
Crypto target: OpenSSL::no-pic::Crypto
SSL lib: /tmp/kphp/build/third-party/openssl-no-pic/install/lib/libssl.a
SSL target: OpenSSL::no-pic::SSL
Configure:
Flags: --openssldir=/usr/lib/ssl;no-shared;no-idea;no-mdc2;no-rc5;no-zlib;no-ssl3;enable-unit-test;no-ssl3-method;enable-rfc3779;enable-cms;no-tests;no-pic;-static;enable-ec_nistp_64_gcc_128
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -fno-pic -static
-- OpenSSL Summary:
PIC enabled: ON
Version: debian/openssl-1.1.1n-0+deb10u7
Source: https://github.com/VKCOM/openssl.git
Include dirs: /tmp/kphp/build/third-party/openssl-pic/install/include
Crypto lib: /tmp/kphp/build/third-party/openssl-pic/install/lib/libcrypto.a
Crypto target: OpenSSL::pic::Crypto
SSL lib: /tmp/kphp/build/third-party/openssl-pic/install/lib/libssl.a
SSL target: OpenSSL::pic::SSL
Configure:
Flags: --openssldir=/usr/lib/ssl;no-shared;no-idea;no-mdc2;no-rc5;no-zlib;no-ssl3;enable-unit-test;no-ssl3-method;enable-rfc3779;enable-cms;no-tests;enable-ec_nistp_64_gcc_128
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -fPIC
-- Updating Git submodule /tmp/kphp/third-party/zstd ...
-- ZSTD Summary:
PIC enabled: OFF
Version: debian/1.4.8+dfsg-3
Source: https://github.com/VKCOM/libzstd.git
Include dirs: /tmp/kphp/build/third-party/zstd-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/zstd-no-pic/install/lib/libzstd.a
Target name: ZSTD::no-pic::zstd
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -Wno-unused-but-set-variable -fno-pic -static
-- ZSTD Summary:
PIC enabled: ON
Version: debian/1.4.8+dfsg-3
Source: https://github.com/VKCOM/libzstd.git
Include dirs: /tmp/kphp/build/third-party/zstd-pic/install/include
Libraries: /tmp/kphp/build/third-party/zstd-pic/install/lib/libzstd.a
Target name: ZSTD::pic::zstd
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -Wno-unused-but-set-variable -fPIC
-- Found Python3 package `six`
-- Updating Git submodule /tmp/kphp/third-party/re2 ...
-- RE2 Summary:
PIC enabled: OFF
Version: debian/20210201+dfsg-1
Source: https://github.com/VKCOM/re2.git
Include dirs: /tmp/kphp/build/third-party/re2-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/re2-no-pic/install/lib/libre2.a
Target name: RE2::no-pic::re2
Compiler:
CXX compiler: /usr/bin/g++-10
CXX flags: -g0 -Wall -std=c++11 -O3 -fno-pic -static
-- RE2 Summary:
PIC enabled: ON
Version: debian/20210201+dfsg-1
Source: https://github.com/VKCOM/re2.git
Include dirs: /tmp/kphp/build/third-party/re2-pic/install/include
Libraries: /tmp/kphp/build/third-party/re2-pic/install/lib/libre2.a
Target name: RE2::pic::re2
Compiler:
CXX compiler: /usr/bin/g++-10
CXX flags: -g0 -Wall -std=c++11 -O3 -fPIC
-- Updating Git submodule /tmp/kphp/third-party/yaml-cpp ...
-- YAML-cpp Summary:
PIC enabled: OFF
Version: yaml-cpp-0.6.2
Source: https://github.com/jbeder/yaml-cpp.git
Include dirs: /tmp/kphp/build/third-party/yaml-cpp-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/yaml-cpp-no-pic/install/lib/libyaml-cpp.a
Target name: YAML_CPP::no-pic::yaml-cpp
Compiler:
CXX compiler: /usr/bin/g++-10
CXX flags: -g0 -fno-pic -static -Wno-maybe-uninitialized
-- YAML-cpp Summary:
PIC enabled: ON
Version: yaml-cpp-0.6.2
Source: https://github.com/jbeder/yaml-cpp.git
Include dirs: /tmp/kphp/build/third-party/yaml-cpp-pic/install/include
Libraries: /tmp/kphp/build/third-party/yaml-cpp-pic/install/lib/libyaml-cpp.a
Target name: YAML_CPP::pic::yaml-cpp
Compiler:
CXX compiler: /usr/bin/g++-10
CXX flags: -g0 -fPIC -Wno-maybe-uninitialized
-- Performing Test NO_SANITIZE_IS_FOUND
-- Performing Test NO_SANITIZE_IS_FOUND - Success
-- /usr/bin/php-config found
-- /usr/bin/php-config8.2 found
-- phpize8.0 not found. You need at least 8.0 version to generate vkext_arginfo.h from stubs
-- Updating Git submodule /tmp/kphp/third-party/numactl ...
-- NUMA Summary:
PIC enabled: OFF
Version: v2.0.12
Source: https://github.com/numactl/numactl.git
Include dirs: /tmp/kphp/build/third-party/numactl-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/numactl-no-pic/install/lib/libnuma.a
Target name: NUMACTL::no-pic::numactl
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -Wno-unused-but-set-variable -g0 -fno-pic -static
-- NUMA Summary:
PIC enabled: ON
Version: v2.0.12
Source: https://github.com/numactl/numactl.git
Include dirs: /tmp/kphp/build/third-party/numactl-pic/install/include
Libraries: /tmp/kphp/build/third-party/numactl-pic/install/lib/libnuma.a
Target name: NUMACTL::pic::numactl
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -Wno-unused-but-set-variable -g0 -fPIC
-- Found re2c: /usr/bin/re2c
-- Updating Git submodule /tmp/kphp/third-party/timelib ...
-- Timelib Summary:
PIC enabled: OFF
Version: 2020.02-24-g624cc5b
Source: https://github.com/VKCOM/timelib.git
Include dirs: /tmp/kphp/build/third-party/timelib-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/timelib-no-pic/install/lib/libkphp-timelib.a
Target name: KPHP_TIMELIB::no-pic::timelib
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -fno-pic -static
-- Timelib Summary:
PIC enabled: ON
Version: 2020.02-24-g624cc5b
Source: https://github.com/VKCOM/timelib.git
Include dirs: /tmp/kphp/build/third-party/timelib-pic/install/include
Libraries: /tmp/kphp/build/third-party/timelib-pic/install/lib/libkphp-timelib.a
Target name: KPHP_TIMELIB::pic::timelib
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -fPIC
-- Updating Git submodule /tmp/kphp/third-party/uber-h3 ...
-- Uber-h3 Summary:
PIC enabled: OFF
Version: v3.7.1-4-gf923234
Source: https://github.com/VKCOM/uber-h3.git
Include dirs: /tmp/kphp/build/third-party/uber-h3-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/uber-h3-no-pic/install/lib/libh3.a
Target name: UBER_H3::no-pic::uber-h3
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -fno-pic -static
-- Uber-h3 Summary:
PIC enabled: ON
Version: v3.7.1-4-gf923234
Source: https://github.com/VKCOM/uber-h3.git
Include dirs: /tmp/kphp/build/third-party/uber-h3-pic/install/include
Libraries: /tmp/kphp/build/third-party/uber-h3-pic/install/lib/libh3.a
Target name: UBER_H3::pic::uber-h3
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -fPIC
-- Updating Git submodule /tmp/kphp/third-party/pcre ...
-- PCRE Summary:
PIC enabled: OFF
Version: 8.39-12
Source: https://github.com/VKCOM/PCRE.git
Include dirs: /tmp/kphp/build/third-party/pcre-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/pcre-no-pic/install/lib/libpcre.a
Target name: PCRE::no-pic::pcre
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -Wall -fno-pic -static
-- PCRE Summary:
PIC enabled: ON
Version: 8.39-12
Source: https://github.com/VKCOM/PCRE.git
Include dirs: /tmp/kphp/build/third-party/pcre-pic/install/include
Libraries: /tmp/kphp/build/third-party/pcre-pic/install/lib/libpcre.a
Target name: PCRE::pic::pcre
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -Wall -fPIC
-- Updating Git submodule /tmp/kphp/third-party/nghttp2 ...
-- NGHTTP2 Summary:
PIC enabled: OFF
Version: debian/1.36.0-2+deb10u1
Source: https://github.com/VKCOM/nghttp2.git
Include dirs: /tmp/kphp/build/third-party/nghttp2-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/nghttp2-no-pic/install/lib/libnghttp2.a
Target name: NGHTTP2::no-pic::nghttp2
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -fno-pic -static
-- NGHTTP2 Summary:
PIC enabled: ON
Version: debian/1.36.0-2+deb10u1
Source: https://github.com/VKCOM/nghttp2.git
Include dirs: /tmp/kphp/build/third-party/nghttp2-pic/install/include
Libraries: /tmp/kphp/build/third-party/nghttp2-pic/install/lib/libnghttp2.a
Target name: NGHTTP2::pic::nghttp2
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -fPIC
-- Updating Git submodule /tmp/kphp/third-party/curl ...
-- CURL Summary:
PIC enabled: OFF
Version: upstream/7.60.0-1-g00364cc6
Source: https://github.com/VKCOM/curl.git
Include dirs: /tmp/kphp/build/third-party/curl-no-pic/install/include
Libraries: /tmp/kphp/build/third-party/curl-no-pic/install/lib/libcurl.a
Target name: CURL::no-pic::curl
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -Wno-deprecated-declarations -fno-pic -static -Wno-stringop-truncation -Wno-maybe-uninitialized -Wno-stringop-overflow
-- CURL Summary:
PIC enabled: ON
Version: upstream/7.60.0-1-g00364cc6
Source: https://github.com/VKCOM/curl.git
Include dirs: /tmp/kphp/build/third-party/curl-pic/install/include
Libraries: /tmp/kphp/build/third-party/curl-pic/install/lib/libcurl.a
Target name: CURL::pic::curl
Compiler:
C compiler: /usr/bin/gcc-10
CFLAGS: -g0 -Wno-deprecated-declarations -fPIC -Wno-stringop-truncation -Wno-maybe-uninitialized -Wno-stringop-overflow
-- Found Python3 package `jsonschema`
-- Configuring done (7.4s)
-- Generating done (0.2s)
-- Build files have been written to: /tmp/kphp/build
That problem you have is way beyond my knowledge, sorry no ideas.
@hrissan Thank you for getting back to me though.
I am nearing the assumption that it has to do with some missing pre-requisites but the problem then of course is which pre-requisite.... Initially I thought it was a missing build_essential package but that package was installed when I tried the latest compile....
For anyone who cares, the reason it does not compile seems to be that gcc / clang cannot compile KPHP for certain AMD processors - Right now, I don't remember the exact name of the AMD CPU which caused the problems but the CPU model was more than 10 years old (may Phenom or something like that)