Skip to content

musl libc build failure #380

@bl4ckb0ne

Description

@bl4ckb0ne

Building on AlpineLinux, tested v2.22.2, 2.22.3, 2.23.1 & 2.24.2

ninja: job failed: /usr/lib/ccache/bin/c++ -DBIF_LINK_BC -DCL_KHR_FP64_EXT -DDLL_MODE -DGHAL3D=USC -DGIT_COMMIT_HASH=\"\" -DICBE_LINUX -DIGA_DISABLE_ENCODER_EXCEPTIONS -DIGC_CMAKE -DIGC_EXPORTS=1 -DIGC_SPIRV_ENABLED -DIGC_SPIRV_TOOLS_ENABLED -DIGC_VC_ENABLED -DINSIDE_PLUGIN -DISTDLIB_UMD -DLINUX -DLLVM_VERSION_MAJOR=16 -DNDEBUG -DNOMINMAX -DSTD_CALL -DUSC_EXPORTS=1 -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -DUSE_SSE3 -DUSE_SSSE3 -D_AMD64_ -D_COMPILER_DLL_ -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_IGC_ -D_SCL_SECURE_NO_WARNINGS -D__IGC_OPAQUE_POINTERS_API_ENABLED=false -D__IGC_OPAQUE_POINTERS_DEFAULT_ARG_CLANG=\"-no-opaque-pointers\" -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/src/intel-graphics-compiler-2.23.1/build/IGC/llvm-deps-16.0.6/src/lld/ELF/../include -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/WrapperLLVM/include -I/tmp/src/intel-graphics-compiler-2.23.1/build/IGC/autogen -I/tmp/src/intel-graphics-compiler-2.23.1/IGC -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/common -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/.. -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../Common -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../3d/common -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../inc -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../inc/common -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../inc/common/Compiler -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../inc/common/Compiler/API -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../visa/include -I/tmp/src/intel-graphics-compiler-2.23.1/build/IGC/Release -I/tmp/src/intel-graphics-compiler-2.23.1/build/IGC -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/AdaptorOCL/ocl_igc_shared/executable_format -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/AdaptorOCL -I/tmp/src/intel-graphics-compiler-2.23.1/build/IGC/AdaptorOCL/ocl_igc_interface/impl -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/Options -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/Options/include -I/tmp/src/intel-graphics-compiler-2.23.1/build/IGC/Options/include -I/tmp/src/intel-graphics-compiler-2.23.1/build/IGC/AdaptorOCL/ocl_igc_interface/extensions -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../inc/common/Compiler/common -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/AdaptorOCL/cif/cif/.. -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../../../SPIRV-LLVM-Translator/include -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../../../SPIRV-LLVM-Translator/lib/SPIRV -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/../../../SPIRV-LLVM-Translator/lib/SPIRV/Mangler -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/ZEBinWriter/zebin/source -I/tmp/src/intel-graphics-compiler-2.23.1/IGC/ZEBinWriter/zebin/source/autogen -I/include -I/tmp/src/intel-graphics-compiler-2.23.1/build/IGC/visa -I/tmp/src/intel-graphics-compiler-2.23.1/visa -I/tmp/src/intel-graphics-compiler-2.23.1/visa/include -isystem /tmp/src/intel-graphics-compiler-2.23.1/build/IGC/llvm-deps-16.0.6/src/llvm/include -isystem /tmp/src/intel-graphics-compiler-2.23.1/build/IGC/llvm-deps-16.0.6/build/src/include -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -I/tmp/src/llvm-project/llvm/projects/llvm-spirv/include -fexceptions -fdata-sections -ffunction-sections -O2 -pipe -fmessage-length=0 -march=corei7 -mstackrealign -fms-extensions -Werror -Wno-unused-parameter -Wno-missing-field-initializers -Wwrite-strings -Wno-long-long -Wswitch -Wno-sign-compare -Wno-unused-result -Wno-enum-compare -Wno-type-limits -Wno-ignored-qualifiers -Wno-shadow -Wformat-security -Wno-extra -Wno-write-strings -finline -fno-strict-aliasing -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -Wno-unknown-pragmas -fPIC -Bsymbolic -fstack-protector -D_FORTIFY_SOURCE=2 -finline-functions -funswitch-loops -Wno-maybe-uninitialized -lrt -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -g -std=gnu++20 -MD -MT IGC/visa/CMakeFiles/GenX_IR.dir/Passes/AccSubstitution.cpp.o -MF IGC/visa/CMakeFiles/GenX_IR.dir/Passes/AccSubstitution.cpp.o.d -o IGC/visa/CMakeFiles/GenX_IR.dir/Passes/AccSubstitution.cpp.o -c /tmp/src/intel-graphics-compiler-2.23.1/visa/Passes/AccSubstitution.cpp
In file included from /usr/include/c++/15.2.0/x86_64-alpine-linux-musl/bits/c++allocator.h:33,
                 from /usr/include/c++/15.2.0/bits/allocator.h:46,
                 from /usr/include/c++/15.2.0/list:65,
                 from /tmp/src/intel-graphics-compiler-2.23.1/visa/Passes/../BuildIR.h:13,
                 from /tmp/src/intel-graphics-compiler-2.23.1/visa/Passes/AccSubstitution.hpp:12,
                 from /tmp/src/intel-graphics-compiler-2.23.1/visa/Passes/AccSubstitution.cpp:9:
In member function 'void std::__new_allocator<_Tp>::deallocate(_Tp*, size_type) [with _Tp = std::_List_node<AccInterval*>]',
    inlined from 'constexpr void std::allocator< <template-parameter-1-1> >::deallocate(_Tp*, std::size_t) [with _Tp = std::_List_node<AccInterval*>]' at /usr/include/c++/15.2.0/bits/allocator.h:215:35,
    inlined from 'static constexpr void std::allocator_traits<std::allocator<_Up> >::deallocate(allocator_type&, pointer, size_type) [with _Tp = std::_List_node<AccInterval*>]' at /usr/include/c++/15.2.0/bits/alloc_traits.h:649:23,
    inlined from 'void std::__cxx11::_List_base<_Tp, _Alloc>::_M_put_node(_Node_ptr) [with _Tp = AccInterval*; _Alloc = std::allocator<AccInterval*>]' at /usr/include/c++/15.2.0/bits/stl_list.h:820:32,
    inlined from 'void std::__cxx11::_List_base<_Tp, _Alloc>::_M_destroy_node(_Node_ptr) [with _Tp = AccInterval*; _Alloc = std::allocator<AccInterval*>]' at /usr/include/c++/15.2.0/bits/stl_list.h:855:19,
    inlined from 'void std::__cxx11::list<_Tp, _Allocator>::_M_erase(iterator) [with _Tp = AccInterval*; _Alloc = std::allocator<AccInterval*>]' at /usr/include/c++/15.2.0/bits/stl_list.h:2486:23,
    inlined from 'std::__cxx11::list<_Tp, _Allocator>::iterator std::__cxx11::list<_Tp, _Allocator>::erase(const_iterator) [with _Tp = AccInterval*; _Alloc = std::allocator<AccInterval*>]' at /usr/include/c++/15.2.0/bits/list.tcc:153:15,
    inlined from 'void AccAssignment::spillInterval(int)' at /tmp/src/intel-graphics-compiler-2.23.1/visa/Passes/AccSubstitution.cpp:919:26:
/usr/include/c++/15.2.0/bits/new_allocator.h:172:66: error: 'void operator delete(void*, std::size_t)' called on pointer '<unknown>' with nonzero offset 40 [-Werror=free-nonheap-object]
  172 |         _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
      |                                                                  ^
cc1plus: all warnings being treated as errors
ninja: subcommand failed

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