pkgsrc-Bugs archive

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

pkg/57647: lang/clang 6.0.6 update not usable for building other packages



>Number:         57647
>Category:       pkg
>Synopsis:       lang/clang 6.0.6 update not usable for building other packages
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 08 15:10:00 +0000 2023
>Originator:     David Shao
>Release:        pkgsrc current
>Organization:
>Environment:
NetBSD xxxxxx.xxx 10.99.10 NetBSD 10.99.10 (GENERIC) #1: Sun Oct  8 04:32:15 PDT 2023  xxxxxx%xxxxxx.xxx@localhost:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
For both modular and native pkgsrc on current NetBSD and on DragonFly, the update to clang 6.0.6 builds and installs, but seems to have no functionality building other packages.  For NetBSD for example:

===> Cleaning for wasi-compiler-rt-16.0.6
...
-- 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/pkgsrc/lang/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/pkg/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/pkgsrc/lang/wasi-compiler-rt/work/llvm"
CMake Warning at cmake/Modules/CompilerRTUtils.cmake:338 (message):
  LLVM_MAIN_SRC_DIR (/usr/pkgsrc/lang/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.6") 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

... (many other Failed)

CMake Error at cmake/Modules/CompilerRTUtils.cmake:144 (message):
  Cannot compile for wasm32:

  Change Dir:
  '/usr/pkgsrc/lang/wasi-compiler-rt/work/compiler-rt-16.0.6.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_4462f/fast

  make -f CMakeFiles/cmTC_4462f.dir/build.make
  CMakeFiles/cmTC_4462f.dir/build

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

  /usr/pkgsrc/lang/wasi-compiler-rt/work/.cwrapper/bin/c++
  --sysroot=/usr/pkgsrc/lang/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_4462f.dir/simple.cc.o -MF
  CMakeFiles/cmTC_4462f.dir/simple.cc.o.d -o
  CMakeFiles/cmTC_4462f.dir/simple.cc.o -c
  /usr/pkgsrc/lang/wasi-compiler-rt/work/compiler-rt-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/simple.cc


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


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

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


  /usr/pkgsrc/lang/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.

>How-To-Repeat:
The above was for rebuilding using X11_TYPE=modular, but similar was observed for X11_TYPE=native on NetBSD.

/usr/pkgsrc/lang/wasi-compiler-rt
>Fix:



Home | Main Index | Thread Index | Old Index