tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: llvm suite 16.0.2



Nikita Ronja Gillmann transcribed 1.2K bytes:
Adam transcribed 0.5K bytes:
Rust 1.69.0 doesn't build for me with external LLVM 16.0.3. It complains about some deprecations.

Odd. I'll try a rebuild to see if I can replicate this, but I have to look into thunderbird failing before.

Do you have logs or anything more than deprecation errors?

I got better luck with Rust and LLVM 16.0.4. Now it builds correctly. I have no clue what went wrong previously.

There is a problem with LLDB that does not link against curses on Darwin. And compiler-rt can't be build on Apple Silicon.

Did you make any changes about the curses and terminfo? This is what I get on NetBSD now:

CMake Error at /usr/work/wip/lldb/work/.buildlink/lib/cmake/llvm/LLVMExports.cmake:64 (set_target_properties):
 The link interface of target "LLVMSupport" contains:

   Terminfo::terminfo

 but the target was not found.  Possible reasons include:

   * There is a typo in the target name.
   * A find_package call is missing for an IMPORTED target.
   * An ALIAS target is missing.

Call Stack (most recent call first):
 /usr/work/wip/lldb/work/.buildlink/lib/cmake/llvm/LLVMConfig.cmake:344 (include)
 cmake/modules/LLDBStandalone.cmake:9 (find_package)
 CMakeLists.txt:37 (include)

compiler-rt:

-- The C compiler identification is Clang 16.0.4
-- The CXX compiler identification is Clang 16.0.4
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /usr/work/wip/wasi-compiler-rt/work/.cwrapper/bin/gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for unwind.h
-- Looking for unwind.h - not found
-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - not found
CMake Warning at cmake/Modules/CompilerRTUtils.cmake:281 (message):
  LLVM_CONFIG_PATH is deprecated, please use LLVM_CMAKE_DIR instead
Call Stack (most recent call first):
  CMakeLists.txt:92 (load_llvm_config)


CMake Warning at cmake/Modules/CompilerRTUtils.cmake:298 (message):
  LLVM source tree not found at "/usr/work/wip/wasi-compiler-rt/work/llvm".
  You are not using the monorepo layout.  This configuration is DEPRECATED.
Call Stack (most recent call first):
  CMakeLists.txt:92 (load_llvm_config)


-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Failed
-- Could NOT find Terminfo (missing: Terminfo_LINKABLE) -- Found ZLIB: /usr/lib/libz.so (found version "1.2.13") -- Found zstd: /usr/pkg/lib/libzstd.so -- Found LibXml2: /usr/pkg/lib/libxml2.so (found version "2.10.4") CMake Warning at cmake/Modules/CompilerRTUtils.cmake:326 (message):
  LLVMTestingSupport not found in LLVM_AVAILABLE_LIBS
Call Stack (most recent call first):
  CMakeLists.txt:92 (load_llvm_config)


-- LLVM_MAIN_SRC_DIR: "/usr/work/wip/wasi-compiler-rt/work/llvm"
CMake Warning at cmake/Modules/CompilerRTUtils.cmake:338 (message):
  LLVM_MAIN_SRC_DIR (/usr/work/wip/wasi-compiler-rt/work/llvm) does not
  exist.  You can override the inferred path by adding
  `-DLLVM_MAIN_SRC_DIR=<path_to_llvm_src>` to your CMake invocation where
  `<path_to_llvm_src>` is the path to the `llvm` directory in the
  `llvm-project` repo.  This will be treated as error in the future.
Call Stack (most recent call first):
  CMakeLists.txt:92 (load_llvm_config)


-- Found Python3: /usr/pkg/bin/python3.11 (found version "3.11.3") found components: Interpreter -- Performing Test CXX_SUPPORTS_UNWINDLIB_NONE_FLAG
-- Performing Test CXX_SUPPORTS_UNWINDLIB_NONE_FLAG - Failed
-- Looking for fopen in c
-- Looking for fopen in c - not found
-- Looking for __gcc_personality_v0 in gcc_s
-- Looking for __gcc_personality_v0 in gcc_s - not found
-- Performing Test C_SUPPORTS_NODEFAULTLIBS_FLAG
-- Performing Test C_SUPPORTS_NODEFAULTLIBS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FCF_PROTECTION_FLAG
-- Performing Test COMPILER_RT_HAS_FCF_PROTECTION_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG
-- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG
-- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FRTTI_FLAG
-- Performing Test COMPILER_RT_HAS_FRTTI_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC
-- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC - Failed
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_GENERATE_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_GENERATE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_GENERATE_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_GENERATE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_USE_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_USE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_COVERAGE_MAPPING_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_COVERAGE_MAPPING_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MCRC32_FLAG
-- Performing Test COMPILER_RT_HAS_MCRC32_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MSSE3_FLAG
-- Performing Test COMPILER_RT_HAS_MSSE3_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MSSE4_2_FLAG
-- Performing Test COMPILER_RT_HAS_MSSE4_2_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG
-- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MCRC_FLAG
-- Performing Test COMPILER_RT_HAS_MCRC_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_PARTIAL_INLINING_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PARTIAL_INLINING_FLAG - Failed
-- Performing Test -ftrivial-auto-var-init=pattern
-- Performing Test -ftrivial-auto-var-init=pattern - Failed
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_GR_FLAG
-- Performing Test COMPILER_RT_HAS_GR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_GS_FLAG
-- Performing Test COMPILER_RT_HAS_GS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MT_FLAG
-- Performing Test COMPILER_RT_HAS_MT_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_Oy_FLAG
-- Performing Test COMPILER_RT_HAS_Oy_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG
-- Performing Test COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_G_FLAG
-- Performing Test COMPILER_RT_HAS_G_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_Zi_FLAG
-- Performing Test COMPILER_RT_HAS_Zi_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WALL_FLAG
-- Performing Test COMPILER_RT_HAS_WALL_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WERROR_FLAG
-- Performing Test COMPILER_RT_HAS_WERROR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG
-- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG
-- Performing Test COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG
-- Performing Test COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WGNU_FLAG
-- Performing Test COMPILER_RT_HAS_WGNU_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WNON_VIRTUAL_DTOR_FLAG
-- Performing Test COMPILER_RT_HAS_WNON_VIRTUAL_DTOR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG
-- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG
-- Performing Test COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WCOVERED_SWITCH_DEFAULT_FLAG
-- Performing Test COMPILER_RT_HAS_WCOVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WSUGGEST_OVERRIDE_FLAG
-- Performing Test COMPILER_RT_HAS_WSUGGEST_OVERRIDE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_FLAG
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_REFERENCE_FLAG
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_REFERENCE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_BETA_FLAG
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_BETA_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WNO_PEDANTIC
-- Performing Test COMPILER_RT_HAS_WNO_PEDANTIC - Failed
-- Performing Test COMPILER_RT_HAS_WNO_FORMAT
-- Performing Test COMPILER_RT_HAS_WNO_FORMAT - Failed
-- Performing Test COMPILER_RT_HAS_WNO_FORMAT_PEDANTIC
-- Performing Test COMPILER_RT_HAS_WNO_FORMAT_PEDANTIC - Failed
-- Performing Test COMPILER_RT_HAS_EXTERNAL_FLAG
-- Performing Test COMPILER_RT_HAS_EXTERNAL_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_W4_FLAG
-- Performing Test COMPILER_RT_HAS_W4_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WX_FLAG
-- Performing Test COMPILER_RT_HAS_WX_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4146_FLAG
-- Performing Test COMPILER_RT_HAS_WD4146_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4206_FLAG
-- Performing Test COMPILER_RT_HAS_WD4206_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4291_FLAG
-- Performing Test COMPILER_RT_HAS_WD4291_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4221_FLAG
-- Performing Test COMPILER_RT_HAS_WD4221_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4391_FLAG
-- Performing Test COMPILER_RT_HAS_WD4391_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4722_FLAG
-- Performing Test COMPILER_RT_HAS_WD4722_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4800_FLAG
-- Performing Test COMPILER_RT_HAS_WD4800_FLAG - Failed
-- Performing Test -Warray-bounds
-- Performing Test -Warray-bounds - Failed
-- Performing Test -Wuninitialized
-- Performing Test -Wuninitialized - Failed
-- Performing Test -Wshadow
-- Performing Test -Wshadow - Failed
-- Performing Test -Wempty-body
-- Performing Test -Wempty-body - Failed
-- Performing Test -Wsizeof-pointer-memaccess
-- Performing Test -Wsizeof-pointer-memaccess - Failed
-- Performing Test -Wsizeof-array-argument
-- Performing Test -Wsizeof-array-argument - Failed
-- Performing Test -Wsuspicious-memaccess
-- Performing Test -Wsuspicious-memaccess - Failed
-- Performing Test -Wbuiltin-memcpy-chk-size
-- Performing Test -Wbuiltin-memcpy-chk-size - Failed
-- Performing Test -Warray-bounds-pointer-arithmetic
-- Performing Test -Warray-bounds-pointer-arithmetic - Failed
-- Performing Test -Wreturn-stack-address
-- Performing Test -Wreturn-stack-address - Failed
-- Performing Test -Wsizeof-array-decay
-- Performing Test -Wsizeof-array-decay - Failed
-- Performing Test -Wformat-insufficient-args
-- Performing Test -Wformat-insufficient-args - Failed
-- Performing Test -Wformat-security
-- Performing Test -Wformat-security - Failed
-- Performing Test -Wsizeof-array-div
-- Performing Test -Wsizeof-array-div - Failed
-- Performing Test -Wsizeof-pointer-div
-- Performing Test -Wsizeof-pointer-div - Failed
-- Looking for __func__
-- Looking for __func__ - not found
-- Performing Test COMPILER_RT_HAS_NOSTDINCXX_FLAG
-- Performing Test COMPILER_RT_HAS_NOSTDINCXX_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_NOSTDLIBXX_FLAG
-- Performing Test COMPILER_RT_HAS_NOSTDLIBXX_FLAG - Failed
-- Looking for include file sys/auxv.h
-- Looking for include file sys/auxv.h - not found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - not found
-- Looking for shm_open in rt
-- Looking for shm_open in rt - not found
-- Looking for pow in m
-- Looking for pow in m - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Looking for backtrace in execinfo
-- Looking for backtrace in execinfo - not found
-- Looking for __cxa_throw in c++
-- Looking for __cxa_throw in c++ - not found
-- Looking for __cxa_throw in stdc++
-- Looking for __cxa_throw in stdc++ - not found
-- Performing Test COMPILER_RT_HAS_Z_TEXT
-- Performing Test COMPILER_RT_HAS_Z_TEXT - Failed
-- Performing Test COMPILER_RT_HAS_FUSE_LD_LLD_FLAG
-- Performing Test COMPILER_RT_HAS_FUSE_LD_LLD_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_VERSION_SCRIPT
-- Performing Test COMPILER_RT_HAS_VERSION_SCRIPT - Failed
CMake Error at cmake/Modules/CompilerRTUtils.cmake:144 (message):
  Cannot compile for wasm32:

  Change Dir:
  /usr/work/wip/wasi-compiler-rt/work/compiler-rt-16.0.4.src/cmake-pkgsrc-build/CMakeFiles/CMakeTmp



  Run Build Command(s):/usr/pkg/bin/cmake -E env VERBOSE=1 /usr/pkg/bin/gmake
  -f Makefile cmTC_f90fd/fast && make -f CMakeFiles/cmTC_f90fd.dir/build.make
  CMakeFiles/cmTC_f90fd.dir/build

  Building CXX object CMakeFiles/cmTC_f90fd.dir/simple.cc.o

  /usr/work/wip/wasi-compiler-rt/work/.cwrapper/bin/c++
  --sysroot=/usr/work/wip/wasi-compiler-rt/work/.buildlink/wasi -O2
  -I/usr/pkg/include -I/usr/include -std=c++17
  --target=wasm32-unknown-unknown -MD -MT
  CMakeFiles/cmTC_f90fd.dir/simple.cc.o -MF
  CMakeFiles/cmTC_f90fd.dir/simple.cc.o.d -o
  CMakeFiles/cmTC_f90fd.dir/simple.cc.o -c
  /usr/work/wip/wasi-compiler-rt/work/compiler-rt-16.0.4.src/cmake-pkgsrc-build/CMakeFiles/simple.cc


  In file included from
  /usr/work/wip/wasi-compiler-rt/work/compiler-rt-16.0.4.src/cmake-pkgsrc-build/CMakeFiles/simple.cc:2:


  In file included from
  /usr/work/wip/wasi-compiler-rt/work/.buildlink/wasi/include/stdio.h:52:

  In file included from
  /usr/work/wip/wasi-compiler-rt/work/.buildlink/wasi/include/__seek.h:4:

  /usr/work/wip/wasi-compiler-rt/work/.buildlink/wasi/include/wasi/api.h:27:2:
  error: <wasi/api.h> is only supported on WASI platforms.

  #error <wasi/api.h> is only supported on WASI platforms.

   ^

  1 error generated.

  *** Error code 1



  Stop.

  make[1]: stopped in
  /usr/work/wip/wasi-compiler-rt/work/compiler-rt-16.0.4.src/cmake-pkgsrc-build/CMakeFiles/CMakeTmp


  gmake: *** [Makefile:127: cmTC_f90fd/fast] Error 1



Call Stack (most recent call first):
  cmake/base-config-ix.cmake:267 (test_target_arch)
  cmake/config-ix.cmake:242 (test_targets)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/wip/wasi-compiler-rt
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/wasi-compiler-rt



Cheers,
Adam


Home | Main Index | Thread Index | Old Index