Skip to content

KPHP cannot be built on Ubuntu 24.04 LTS #1326

@henrywood

Description

@henrywood

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& mixed::as_array(const char*)’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/string.inl:274:10: error: array subscript 4 is outside array bounds of ‘const array::array_bucket [0]’ [-Werror=array-bounds=]
274 | return p == nullptr;
| ^
In file included from /home/henrik/kphp/./runtime-common/core/runtime-core.h:46:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
In file included from /home/henrik/kphp/./runtime-common/core/runtime-core.h:50:
/home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:136:10: error: array subscript 2 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
136 | return type_;
| ^~~~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
In file included from /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:7:
/home/henrik/kphp/./common/smart_ptrs/intrusive_ptr.h:63:9: error: array subscript 5 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
63 | if (ptr) {
| ^~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 40 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/./common/smart_ptrs/intrusive_ptr.h:66:3: error: array subscript 5 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
66 | }
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 40 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1924:14: error: array subscript 2 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
1924 | storage_ = 0;
| ~~~~~~~~~^~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1030:7: error: array subscript 5 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
1030 | if (p) {
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 40 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1038:1: error: array subscript 5 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
1038 | }
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 40 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1940:1: error: array subscript 2 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
1940 | }
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
In member function ‘bool string::is_dummy_string() const’,
inlined from ‘bool array::array_inner::is_string_hash_entry(const array::array_bucket*) const [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:205:42,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:295:33,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘static T& mixed::empty_value() [with T = array]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:181:9,
inlined from ‘const array& mixed::as_array(const char*) const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:881:37:
/home/henrik/kphp/./runtime-common/core/core-types/definition/string.inl:274:10: error: array subscript 4 is outside array bounds of ‘const array::array_bucket [0]’ [-Werror=array-bounds=]
274 | return p == nullptr;
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array& mixed::as_array(const char*) const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
In member function ‘mixed::type mixed::get_type() const’,
inlined from ‘void mixed::destroy()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1915:19,
inlined from ‘void mixed::clear()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1933:10,
inlined from ‘mixed::~mixed()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1939:8,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:286:32,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:280:6,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘static T& mixed::empty_value() [with T = array]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:181:9,
inlined from ‘const array& mixed::as_array(const char*) const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:881:37:
/home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:136:10: error: array subscript 2 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
136 | return type_;
| ^~~~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array& mixed::as_array(const char*) const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
In destructor ‘vk::intrusive_ptr::~intrusive_ptr() [with T = may_be_mixed_base]’,
inlined from ‘void mixed::destroy()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1923:106,
inlined from ‘void mixed::destroy()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1914:6,
inlined from ‘void mixed::clear()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1933:10,
inlined from ‘mixed::~mixed()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1939:8,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:286:32,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:280:6,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘static T& mixed::empty_value() [with T = array]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:181:9,
inlined from ‘const array& mixed::as_array(const char*) const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:881:37:
/home/henrik/kphp/./common/smart_ptrs/intrusive_ptr.h:63:9: error: array subscript 5 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
63 | if (ptr) {
| ^~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array& mixed::as_array(const char*) const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 40 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
In destructor ‘vk::intrusive_ptr::~intrusive_ptr() [with T = may_be_mixed_base]’,
inlined from ‘void mixed::destroy()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1923:106,
inlined from ‘void mixed::destroy()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1914:6,
inlined from ‘void mixed::clear()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1933:10,
inlined from ‘mixed::~mixed()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1939:8,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:286:32,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:280:6,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘static T& mixed::empty_value() [with T = array]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:181:9,
inlined from ‘const array& mixed::as_array(const char*) const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:881:37:
/home/henrik/kphp/./common/smart_ptrs/intrusive_ptr.h:66:3: error: array subscript 5 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
66 | }
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array& mixed::as_array(const char*) const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 40 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
In member function ‘void mixed::destroy()’,
inlined from ‘void mixed::destroy()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1914:6,
inlined from ‘void mixed::clear()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1933:10,
inlined from ‘mixed::~mixed()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1939:8,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:286:32,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:280:6,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘static T& mixed::empty_value() [with T = array]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:181:9,
inlined from ‘const array& mixed::as_array(const char*) const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:881:37:
/home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1924:14: error: array subscript 2 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
1924 | storage_ = 0;
| ~~~~~~~~~^~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array& mixed::as_array(const char*) const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
In member function ‘void array::destroy() [with T = mixed]’,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘void mixed::destroy()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1920:29,
inlined from ‘void mixed::clear()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1933:10,
inlined from ‘mixed::~mixed()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1939:8,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:286:32,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:280:6,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘static T& mixed::empty_value() [with T = array]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:181:9,
inlined from ‘const array& mixed::as_array(const char*) const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:881:37:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1030:7: error: array subscript 5 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
1030 | if (p) {
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array& mixed::as_array(const char*) const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 40 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
In destructor ‘array::~array() [with T = mixed]’,
inlined from ‘void mixed::destroy()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1920:29,
inlined from ‘void mixed::clear()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1933:10,
inlined from ‘mixed::~mixed()’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1939:8,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:286:32,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:280:6,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘static T& mixed::empty_value() [with T = array]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:181:9,
inlined from ‘const array& mixed::as_array(const char*) const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:881:37:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1038:1: error: array subscript 5 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
1038 | }
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array& mixed::as_array(const char*) const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 40 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
In destructor ‘mixed::~mixed()’,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:286:32,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:280:6,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘static T& mixed::empty_value() [with T = array]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:181:9,
inlined from ‘const array& mixed::as_array(const char*) const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:881:37:
/home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:1940:1: error: array subscript 2 is outside array bounds of ‘array_inner_control [1]’ [-Werror=array-bounds=]
1940 | }
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array& mixed::as_array(const char*) const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
[ 15%] Building CXX object CMakeFiles/tlo_parsing_src-no-pic.dir/common/tlo-parsing/tl-scheme-final-check.cpp.o
[ 15%] Building CXX object CMakeFiles/tlo_parsing_src-pic.dir/common/tlo-parsing/tl-dependency-graph.cpp.o
[ 15%] Building CXX object CMakeFiles/runtime-common-no-pic.dir/runtime-common/core/core-types/definition/string_cache.cpp.o
[ 15%] Building CXX object CMakeFiles/tlo_parsing_src-no-pic.dir/common/tlo-parsing/tlo-parser.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/runtime-common-no-pic.dir/build.make:90: CMakeFiles/runtime-common-no-pic.dir/runtime-common/core/core-types/definition/mixed.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 15%] Building CXX object CMakeFiles/tlo_parsing_src-pic.dir/common/tlo-parsing/tl-objects.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& mixed::as_array(const char*)’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/string.inl:274:10: error: array subscript 4 is outside array bounds of ‘const array::array_bucket [0]’ [-Werror=array-bounds=]
274 | return p == nullptr;
| ^
In file included from /home/henrik/kphp/./runtime-common/core/runtime-core.h:46:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
In member function ‘bool string::is_dummy_string() const’,
inlined from ‘bool array::array_inner::is_string_hash_entry(const array::array_bucket*) const [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:205:42,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:295:33,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘static T& mixed::empty_value() [with T = array]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/mixed.inl:181:9,
inlined from ‘const array& mixed::as_array(const char*) const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:881:37:
/home/henrik/kphp/./runtime-common/core/core-types/definition/string.inl:274:10: error: array subscript 4 is outside array bounds of ‘const array::array_bucket [0]’ [-Werror=array-bounds=]
274 | return p == nullptr;
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array& mixed::as_array(const char*) const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
[ 15%] Building CXX object CMakeFiles/tlo_parsing_src-pic.dir/common/tlo-parsing/tl-scheme-final-check.cpp.o
compiling static library
[ 15%] Performing install step for 'zstd-pic'
make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
Installing static library
Installing includes
compiling static library
[ 15%] Completed 'zstd-pic'
[ 15%] Built target zstd-pic
[ 15%] Creating directories for 'numactl-no-pic'
[ 15%] Performing install step for 'zstd-no-pic'
make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
[ 16%] No download step for 'numactl-no-pic'
Installing static library
[ 16%] No update step for 'numactl-no-pic'
Installing includes
[ 16%] No patch step for 'numactl-no-pic'
[ 16%] Performing configure step for 'numactl-no-pic'
[ 16%] Completed 'zstd-no-pic'
[ 16%] Built target zstd-no-pic
[ 17%] Creating directories for 'numactl-pic'
./autogen.sh: 5: autoreconf: not found
make[2]: *** [CMakeFiles/numactl-no-pic.dir/build.make:93: third-party/numactl-no-pic/build/src/numactl-no-pic-stamp/numactl-no-pic-configure] Error 127
make[1]: *** [CMakeFiles/Makefile2:1185: CMakeFiles/numactl-no-pic.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 17%] Building CXX object CMakeFiles/tlo_parsing_src-pic.dir/common/tlo-parsing/tlo-parser.cpp.o
[ 17%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/core-types/definition/string.cpp.o
[ 17%] No download step for 'numactl-pic'
[ 17%] No update step for 'numactl-pic'
[ 17%] No patch step for 'numactl-pic'
[ 17%] Performing configure step for 'numactl-pic'
In member function ‘bool string::is_dummy_string() const’,
inlined from ‘bool array::array_inner::is_string_hash_entry(const array::array_bucket*) const [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:205:42,
inlined from ‘void array::array_inner::dispose() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:295:33,
inlined from ‘void array::destroy() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1031:15,
inlined from ‘array::~array() [with T = mixed]’ at /home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:1037:10,
inlined from ‘const array mixed::to_array() const’ at /home/henrik/kphp/runtime-common/core/core-types/definition/mixed.cpp:588:3:
/home/henrik/kphp/./runtime-common/core/core-types/definition/string.inl:274:10: error: array subscript 4 is outside array bounds of ‘const array::array_bucket [0]’ [-Werror=array-bounds=]
274 | return p == nullptr;
| ^
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl: In member function ‘const array mixed::to_array() const’:
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
110 | static array_inner_control empty_array[1]{{
| ^~~~~~~~~~~
/home/henrik/kphp/./runtime-common/core/core-types/definition/array.inl:110:30: note: at offset 32 into object ‘empty_array’ of size 32
./autogen.sh: 5: autoreconf: not found
make[2]: *** [CMakeFiles/numactl-pic.dir/build.make:93: third-party/numactl-pic/build/src/numactl-pic-stamp/numactl-pic-configure] Error 127
make[1]: *** [CMakeFiles/Makefile2:1211: CMakeFiles/numactl-pic.dir/all] Error 2
[ 17%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/core-types/definition/string_buffer.cpp.o
[ 17%] Built target tlo_parsing_src-no-pic
[ 17%] Building CXX object CMakeFiles/runtime-common-pic.dir/runtime-common/core/core-types/definition/string_cache.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/runtime-common-pic.dir/build.make:90: CMakeFiles/runtime-common-pic.dir/runtime-common/core/core-types/definition/mixed.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 17%] Built target tlo_parsing_src-pic
make[1]: *** [CMakeFiles/Makefile2:1133: CMakeFiles/runtime-common-no-pic.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1159: CMakeFiles/runtime-common-pic.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Any ideas ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions