You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Infer version v1.2.0-1b1366e64a
-Mac OS ventura, version 13.0
Gettting error when trying to buikdd clang using this command
./build-infer.sh clang
Following is the detailed output:
muqaddasnaz@Muqaddass-MacBook-Pro infer % ./build-infer.sh clang
initializing opam...
looking if switch 5.2.1+flambda exists in this list:
4.14.0+flambda
5.2.1+flambda
verdict: yes
installing infer dependencies; this can take up to 30 minutes...
[NOTE] Package stdcompat is already pinned to
file:///Users/muqaddasnaz/infer/dependencies/stdcompat (version 19).
[stdcompat.19] synchronised (file:///Users/muqaddasnaz/infer/dependencies/stdcompat)
Cannot remove /Users/muqaddasnaz/.opam/5.2.1+flambda/.opam-switch/overlay/stdcompat/opam (/opt/homebrew/bin/opam: "unlink" failed on /Users/muqaddasnaz/.opam/5.2.1+flambda/.opam-switch/overlay/stdcompat/opam: Permission denied).
Nothing to do.
preparing build...
./configure --disable-erlang-analyzers --disable-hack-analyzers --disable-java-analyzers --disable-python-analyzers
checking for .release... no
checking for .facebook... no
checking for .git... yes
checking for build platform... Darwin
checking for build cpu... arm64
checking for Windows build... no
checking for realpath... grealpath
checking for the name of the plugin setup script... setup.sh
checking whether to use the compilers in /Users/muqaddasnaz/infer/facebook-clang-plugins/clang/install/bin... no
checking for shasum... shasum
checking for cmake... cmake
checking for python3... python3
checking for xcode-select... xcode-select
checking for xcrun... xcrun
checking for clang... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a race-free mkdir -p... mkdir -p
checking how to run the C preprocessor... clang -E
checking for clang++... clang++
checking whether the compiler supports GNU C++... yes
checking whether clang++ accepts -g... yes
checking for clang++ option to enable C++11 features... none needed
checking if the C/C++ compiler is recent enough... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking for limits.h... yes
checking for locale.h... yes
checking for malloc.h... no
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/mount.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for sys/statfs.h... no
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for wchar.h... yes
checking for wctype.h... yes
checking for ocamlc... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlc
OCaml version is 5.2.1
OCaml library path is /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/ocaml
checking for ocamlopt... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlopt
checking for ocamlc.opt... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlc.opt
checking for ocamlopt.opt... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlopt.opt
checking for dynlink.cmxa... no
checking for ocaml... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocaml
checking for ocamldep... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamldep
checking for ocamlmktop... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlmktop
checking for ocamlmklib... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlmklib
checking for ocamldoc... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamldoc
checking for ocamlbuild... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlbuild
checking if OCaml version is >= 4.06.1... yes
checking for ocamlbuild... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlbuild
checking for ocamlfind... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlfind
checking for ocamllex... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamllex
checking for ocamllex.opt... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamllex.opt
checking for menhir... menhir
checking for OCaml findlib package atdgen... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/atdgen
checking for OCaml findlib package biniou... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/biniou
checking for OCaml findlib package camlzip... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/camlzip
checking for OCaml findlib package easy-format... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/easy-format
checking for OCaml findlib package oUnit... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/oUnit
checking for utop... no
checking for OCaml findlib package yojson... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/yojson
checking for ocamlformat... no
checking for opam... opam
checking opam version... 2.3.0
checking current opam root... /Users/muqaddasnaz/.opam
checking current opam switch... 5.2.1+flambda
checking for hackc... no
checking if hackc can run... no
checking for atdgen... atdgen
checking for getconf... getconf
checking the number of cpus the build host has... 12
checking for ant... no
checking for buck1... no
checking for emacs... no
checking for mvn... no
checking for ndk-build... no
checking for ndk-build... no
checking for ninja... no
checking for xcpretty... no
checking for sed... sed
checking if sed is GNU sed... no
checking for gsed... no
checking for brew... brew
checking for install_name_tool... install_name_tool
checking for ldd... no
checking for otool... otool
checking for patchelf... no
checking for hh_single_type_check... no
configure: creating ./config.status
config.status: creating Makefile.autoconf
configure: enabled language frontends: clang
configure: disabled language frontends: erlang, hack, java, python
set +x
Warning: you are not using a release of Infer. The C and
Objective-C analyses require a custom clang to be compiled
now. This step takes ~30-60 minutes, possibly more.
cmake -G 'Unix Makefiles' /Users/muqaddasnaz/infer/facebook-clang-plugins/clang/src/download/llvm-project/llvm -DCMAKE_BUILD_TYPE=Release '-DCMAKE_C_FLAGS=-g -O2 ' '-DCMAKE_CXX_FLAGS=-g -O2 ' -DCMAKE_INSTALL_PREFIX=/Users/muqaddasnaz/infer/facebook-clang-plugins/clang/install -DLLVM_BUILD_TOOLS=Off -DLLVM_ENABLE_ASSERTIONS=Off -DLLVM_ENABLE_EH=On -DLLVM_ENABLE_RTTI=On -DLLVM_BUILD_DOCS=Off -DLLVM_INCLUDE_BENCHMARKS=Off -DLLVM_INCLUDE_EXAMPLES=Off -DLLVM_INCLUDE_TESTS=Off '-DLLVM_TARGETS_TO_BUILD=X86;AArch64;ARM;Mips' '-DCMAKE_SHARED_LINKER_FLAGS= ' -DLLVM_BUILD_LLVM_DYLIB=ON '-DLLVM_ENABLE_PROJECTS=clang;openmp' '-DLLVM_ENABLE_RUNTIMES=compiler-rt;libcxx;libcxxabi;libunwind'
CMake Deprecation Warning at /Users/muqaddasnaz/infer/facebook-clang-plugins/clang/src/download/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0114 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
CMake Deprecation Warning at /Users/muqaddasnaz/infer/facebook-clang-plugins/clang/src/download/llvm-project/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
-- The C compiler identification is Clang 19.1.6
-- The CXX compiler identification is Clang 19.1.6
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /opt/homebrew/opt/llvm/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/opt/llvm/bin/clang - 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: /opt/homebrew/opt/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is disabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is enabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
-- Found Python3: /opt/homebrew/Frameworks/Python.framework/Versions/3.13/bin/python3.13 (found suitable version "3.13.1", minimum required is "3.0") found components: Interpreter
-- Performing Test LLVM_LIBSTDCXX_MIN
-- Performing Test LLVM_LIBSTDCXX_MIN - Success
-- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR
-- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR - Success
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sysexits.h
-- Looking for sysexits.h - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Performing Test HAVE_BUILTIN_THREAD_POINTER
-- Performing Test HAVE_BUILTIN_THREAD_POINTER - Success
-- Looking for mach/mach.h
-- Looking for mach/mach.h - found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Performing Test HAVE_CRASHREPORTER_INFO
-- Performing Test HAVE_CRASHREPORTER_INFO - Success
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
-- Looking for pthread_mutex_lock in pthread
-- Looking for pthread_mutex_lock in pthread - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libz.tbd (found version "1.2.11")
-- Looking for compress2
-- Looking for compress2 - found
-- Found LibXml2: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libxml2.tbd (found version "2.9.13")
-- Looking for xmlReadMemory
-- Looking for xmlReadMemory - found
-- Looking for histedit.h
-- Looking for histedit.h - found
-- Found LibEdit: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include (found version "2.11")
-- Looking for arc4random
-- Looking for arc4random - found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
-- Looking for __register_frame
-- Looking for __register_frame - found
-- Looking for __deregister_frame
-- Looking for __deregister_frame - found
-- Looking for __unw_add_dynamic_fde
-- Looking for __unw_add_dynamic_fde - found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for mallinfo2
-- Looking for mallinfo2 - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for posix_spawn
-- Looking for posix_spawn - found
-- Looking for pread
-- Looking for pread - found
-- Looking for sbrk
"std::exception_ptr::__from_native_exception_pointer(void*)", referenced from:
std::__1::promisellvm::orc::shared::WrapperFunctionResult::~promise() in libLLVMOrcTargetProcess.a(SimpleRemoteEPCServer.cpp.o)
"___cxa_init_primary_exception", referenced from:
std::__1::promisellvm::orc::shared::WrapperFunctionResult::~promise() in libLLVMOrcTargetProcess.a(SimpleRemoteEPCServer.cpp.o)
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [bin/llvm-jitlink-executor] Error 1
make[3]: *** [tools/llvm-jitlink/llvm-jitlink-executor/CMakeFiles/llvm-jitlink-executor.dir/all] Error 2
make[3]: *** Waiting for unfinished jobs....
[ 16%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/DXILEmitter.cpp.o
[ 16%] Linking CXX executable ../../bin/llvm-rust-demangle-fuzzer
[ 16%] Built target llvm-rust-demangle-fuzzer
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/ExegesisEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/FastISelEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelCombinerEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/InstrDocsEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/InstrInfoEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/IntrinsicEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/MacroFusionPredicatorEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/OptParserEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/OptRSTEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/PseudoLoweringEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/RegisterBankEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/RegisterInfoEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/RISCVTargetDefEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/SearchableTableEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/SubtargetEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/TableGen.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/VTEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/WebAssemblyDisassemblerEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86InstrMappingEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86DisassemblerTables.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86FoldTablesEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86MnemonicTables.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86ModRMFilters.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86RecognizableInstr.cpp.o
[ 17%] Linking CXX executable ../../bin/llvm-tblgen
[ 17%] Built target llvm-tblgen
make[2]: *** [all] Error 2
make[1]: *** [clang_setup] Error 2
make: *** [opt] Error 2
compilation failure; you can try running
make clean
'./build-infer.sh' clang
The text was updated successfully, but these errors were encountered:
-Mac OS ventura, version 13.0
muqaddasnaz@Muqaddass-MacBook-Pro infer % ./build-infer.sh clang
initializing opam...
looking if switch 5.2.1+flambda exists in this list:
4.14.0+flambda
5.2.1+flambda
verdict: yes
installing infer dependencies; this can take up to 30 minutes...
[NOTE] Package stdcompat is already pinned to
file:///Users/muqaddasnaz/infer/dependencies/stdcompat (version 19).
[stdcompat.19] synchronised (file:///Users/muqaddasnaz/infer/dependencies/stdcompat)
Cannot remove /Users/muqaddasnaz/.opam/5.2.1+flambda/.opam-switch/overlay/stdcompat/opam (/opt/homebrew/bin/opam: "unlink" failed on /Users/muqaddasnaz/.opam/5.2.1+flambda/.opam-switch/overlay/stdcompat/opam: Permission denied).
Nothing to do.
preparing build...
./configure --disable-erlang-analyzers --disable-hack-analyzers --disable-java-analyzers --disable-python-analyzers
checking for .release... no
checking for .facebook... no
checking for .git... yes
checking for build platform... Darwin
checking for build cpu... arm64
checking for Windows build... no
checking for realpath... grealpath
checking for the name of the plugin setup script... setup.sh
checking whether to use the compilers in /Users/muqaddasnaz/infer/facebook-clang-plugins/clang/install/bin... no
checking for shasum... shasum
checking for cmake... cmake
checking for python3... python3
checking for xcode-select... xcode-select
checking for xcrun... xcrun
checking for clang... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a race-free mkdir -p... mkdir -p
checking how to run the C preprocessor... clang -E
checking for clang++... clang++
checking whether the compiler supports GNU C++... yes
checking whether clang++ accepts -g... yes
checking for clang++ option to enable C++11 features... none needed
checking if the C/C++ compiler is recent enough... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking for limits.h... yes
checking for locale.h... yes
checking for malloc.h... no
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/mount.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for sys/statfs.h... no
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for wchar.h... yes
checking for wctype.h... yes
checking for ocamlc... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlc
OCaml version is 5.2.1
OCaml library path is /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/ocaml
checking for ocamlopt... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlopt
checking for ocamlc.opt... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlc.opt
checking for ocamlopt.opt... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlopt.opt
checking for dynlink.cmxa... no
checking for ocaml... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocaml
checking for ocamldep... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamldep
checking for ocamlmktop... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlmktop
checking for ocamlmklib... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlmklib
checking for ocamldoc... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamldoc
checking for ocamlbuild... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlbuild
checking if OCaml version is >= 4.06.1... yes
checking for ocamlbuild... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlbuild
checking for ocamlfind... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamlfind
checking for ocamllex... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamllex
checking for ocamllex.opt... /Users/muqaddasnaz/.opam/5.2.1+flambda/bin/ocamllex.opt
checking for menhir... menhir
checking for OCaml findlib package atdgen... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/atdgen
checking for OCaml findlib package biniou... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/biniou
checking for OCaml findlib package camlzip... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/camlzip
checking for OCaml findlib package easy-format... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/easy-format
checking for OCaml findlib package oUnit... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/oUnit
checking for utop... no
checking for OCaml findlib package yojson... /Users/muqaddasnaz/.opam/5.2.1+flambda/lib/yojson
checking for ocamlformat... no
checking for opam... opam
checking opam version... 2.3.0
checking current opam root... /Users/muqaddasnaz/.opam
checking current opam switch... 5.2.1+flambda
checking for hackc... no
checking if hackc can run... no
checking for atdgen... atdgen
checking for getconf... getconf
checking the number of cpus the build host has... 12
checking for ant... no
checking for buck1... no
checking for emacs... no
checking for mvn... no
checking for ndk-build... no
checking for ndk-build... no
checking for ninja... no
checking for xcpretty... no
checking for sed... sed
checking if sed is GNU sed... no
checking for gsed... no
checking for brew... brew
checking for install_name_tool... install_name_tool
checking for ldd... no
checking for otool... otool
checking for patchelf... no
checking for hh_single_type_check... no
configure: creating ./config.status
config.status: creating Makefile.autoconf
configure: enabled language frontends: clang
configure: disabled language frontends: erlang, hack, java, python
set +x
Warning: you are not using a release of Infer. The C and
Objective-C analyses require a custom clang to be compiled
now. This step takes ~30-60 minutes, possibly more.
unset MAKEFLAGS
[[ x != x ]]
[[ Darwin = \L\i\n\u\x ]]
CMAKE_ARGS=(-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="$CFLAGS $CMAKE_C_FLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS $CPPFLAGS $CMAKE_CXX_FLAGS" -DCMAKE_INSTALL_PREFIX="$CLANG_PREFIX" -DLLVM_BUILD_TOOLS=Off -DLLVM_ENABLE_ASSERTIONS=Off -DLLVM_ENABLE_EH=On -DLLVM_ENABLE_RTTI=On -DLLVM_BUILD_DOCS=Off -DLLVM_INCLUDE_BENCHMARKS=Off -DLLVM_INCLUDE_EXAMPLES=Off -DLLVM_INCLUDE_TESTS=Off -DLLVM_TARGETS_TO_BUILD="X86;AArch64;ARM;Mips")
'[' Darwin = Darwin ']'
CMAKE_ARGS+=(-DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS $CMAKE_SHARED_LINKER_FLAGS" -DLLVM_BUILD_LLVM_DYLIB=ON)
'[' -n '' ']'
[[ Darwin = \L\i\n\u\x ]]
CMAKE_ARGS+=(-DLLVM_ENABLE_PROJECTS="clang;openmp" -DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi;libunwind")
'[' '' = yes ']'
CMAKE_GENERATOR='Unix Makefiles'
BUILD_BIN=make
BUILD_ARGS='-j 3'
'[' '' = yes ']'
'[' '!' -d /Users/muqaddasnaz/infer/facebook-clang-plugins/clang/src/download/llvm-project/llvm ']'
'[' -n '' ']'
++ mktemp -d /var/folders/nr/959_81hn2bj7p6ssth69qmrw0000gn/T//clang-setup.XXXXXX
TMP=/var/folders/nr/959_81hn2bj7p6ssth69qmrw0000gn/T//clang-setup.IiAeRs
pushd /var/folders/nr/959_81hn2bj7p6ssth69qmrw0000gn/T//clang-setup.IiAeRs
/var/folders/nr/959_81hn2bj7p6ssth69qmrw0000gn/T/clang-setup.IiAeRs ~/infer
mkdir -p build
pushd build
/var/folders/nr/959_81hn2bj7p6ssth69qmrw0000gn/T/clang-setup.IiAeRs/build /var/folders/nr/959_81hn2bj7p6ssth69qmrw0000gn/T/clang-setup.IiAeRs ~/infer
mkdir -p docs/ocamldoc/html
cmake -G 'Unix Makefiles' /Users/muqaddasnaz/infer/facebook-clang-plugins/clang/src/download/llvm-project/llvm -DCMAKE_BUILD_TYPE=Release '-DCMAKE_C_FLAGS=-g -O2 ' '-DCMAKE_CXX_FLAGS=-g -O2 ' -DCMAKE_INSTALL_PREFIX=/Users/muqaddasnaz/infer/facebook-clang-plugins/clang/install -DLLVM_BUILD_TOOLS=Off -DLLVM_ENABLE_ASSERTIONS=Off -DLLVM_ENABLE_EH=On -DLLVM_ENABLE_RTTI=On -DLLVM_BUILD_DOCS=Off -DLLVM_INCLUDE_BENCHMARKS=Off -DLLVM_INCLUDE_EXAMPLES=Off -DLLVM_INCLUDE_TESTS=Off '-DLLVM_TARGETS_TO_BUILD=X86;AArch64;ARM;Mips' '-DCMAKE_SHARED_LINKER_FLAGS= ' -DLLVM_BUILD_LLVM_DYLIB=ON '-DLLVM_ENABLE_PROJECTS=clang;openmp' '-DLLVM_ENABLE_RUNTIMES=compiler-rt;libcxx;libcxxabi;libunwind'
CMake Deprecation Warning at /Users/muqaddasnaz/infer/facebook-clang-plugins/clang/src/download/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0114 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
CMake Deprecation Warning at /Users/muqaddasnaz/infer/facebook-clang-plugins/clang/src/download/llvm-project/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
-- The C compiler identification is Clang 19.1.6
-- The CXX compiler identification is Clang 19.1.6
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /opt/homebrew/opt/llvm/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/opt/llvm/bin/clang - 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: /opt/homebrew/opt/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is disabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is enabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
-- Found Python3: /opt/homebrew/Frameworks/Python.framework/Versions/3.13/bin/python3.13 (found suitable version "3.13.1", minimum required is "3.0") found components: Interpreter
-- Performing Test LLVM_LIBSTDCXX_MIN
-- Performing Test LLVM_LIBSTDCXX_MIN - Success
-- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR
-- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR - Success
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sysexits.h
-- Looking for sysexits.h - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Performing Test HAVE_BUILTIN_THREAD_POINTER
-- Performing Test HAVE_BUILTIN_THREAD_POINTER - Success
-- Looking for mach/mach.h
-- Looking for mach/mach.h - found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Performing Test HAVE_CRASHREPORTER_INFO
-- Performing Test HAVE_CRASHREPORTER_INFO - Success
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
-- Looking for pthread_mutex_lock in pthread
-- Looking for pthread_mutex_lock in pthread - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libz.tbd (found version "1.2.11")
-- Looking for compress2
-- Looking for compress2 - found
-- Found LibXml2: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libxml2.tbd (found version "2.9.13")
-- Looking for xmlReadMemory
-- Looking for xmlReadMemory - found
-- Looking for histedit.h
-- Looking for histedit.h - found
-- Found LibEdit: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include (found version "2.11")
-- Looking for arc4random
-- Looking for arc4random - found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
-- Looking for __register_frame
-- Looking for __register_frame - found
-- Looking for __deregister_frame
-- Looking for __deregister_frame - found
-- Looking for __unw_add_dynamic_fde
-- Looking for __unw_add_dynamic_fde - found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for mallinfo2
-- Looking for mallinfo2 - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for posix_spawn
-- Looking for posix_spawn - found
-- Looking for pread
-- Looking for pread - found
-- Looking for sbrk
"std::exception_ptr::__from_native_exception_pointer(void*)", referenced from:
std::__1::promisellvm::orc::shared::WrapperFunctionResult::~promise() in libLLVMOrcTargetProcess.a(SimpleRemoteEPCServer.cpp.o)
"___cxa_init_primary_exception", referenced from:
std::__1::promisellvm::orc::shared::WrapperFunctionResult::~promise() in libLLVMOrcTargetProcess.a(SimpleRemoteEPCServer.cpp.o)
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [bin/llvm-jitlink-executor] Error 1
make[3]: *** [tools/llvm-jitlink/llvm-jitlink-executor/CMakeFiles/llvm-jitlink-executor.dir/all] Error 2
make[3]: *** Waiting for unfinished jobs....
[ 16%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/DXILEmitter.cpp.o
[ 16%] Linking CXX executable ../../bin/llvm-rust-demangle-fuzzer
[ 16%] Built target llvm-rust-demangle-fuzzer
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/ExegesisEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/FastISelEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelCombinerEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/InstrDocsEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/InstrInfoEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/IntrinsicEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/MacroFusionPredicatorEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/OptParserEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/OptRSTEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/PseudoLoweringEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/RegisterBankEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/RegisterInfoEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/RISCVTargetDefEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/SearchableTableEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/SubtargetEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/TableGen.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/VTEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/WebAssemblyDisassemblerEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86InstrMappingEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86DisassemblerTables.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86FoldTablesEmitter.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86MnemonicTables.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86ModRMFilters.cpp.o
[ 17%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86RecognizableInstr.cpp.o
[ 17%] Linking CXX executable ../../bin/llvm-tblgen
[ 17%] Built target llvm-tblgen
make[2]: *** [all] Error 2
make[1]: *** [clang_setup] Error 2
make: *** [opt] Error 2
compilation failure; you can try running
The text was updated successfully, but these errors were encountered: