=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for rust-1.11.0nb1 cfg: version 1.11.0 cfg: build triple x86_64-unknown-netbsd cfg: host triples x86_64-unknown-netbsd cfg: target triples x86_64-unknown-netbsd cfg: host for x86_64-unknown-netbsd is x86_64 cfg: os for x86_64-unknown-netbsd is unknown-netbsd cfg: no good valgrind for x86_64-unknown-netbsd cfg: disabling valgrind run-pass tests cfg: disabling unstable features (CFG_DISABLE_UNSTABLE_FEATURES) cfg: disabling doc build (CFG_DISABLE_DOCS) fetch: x86_64-unknown-netbsd/stage0/bin/rustc cmake: compiler-rt cp: /data/scratch/lang/rust/work/rust-1.10.0-x86_64-unknown-netbsd/rustc/lib/rustlib/x86_64-unknown-netbsd/lib/*: No such file or directory cp: /data/scratch/lang/rust/work/rust-1.10.0-x86_64-unknown-netbsd/rustc/lib/libextra*.so: No such file or directory configure: libbacktrace for x86_64-unknown-netbsd compile: x86_64-unknown-netbsd/rt/miniz.o -- The C compiler identification is GNU 4.8.4 cp: /data/scratch/lang/rust/work/rust-1.10.0-x86_64-unknown-netbsd/rustc/lib/libgcc_s*.so*: No such file or directory cp: /data/scratch/lang/rust/work/rust-1.10.0-x86_64-unknown-netbsd/rustc/lib/libssp*.so*: No such file or directory cp: /data/scratch/lang/rust/work/rust-1.10.0-x86_64-unknown-netbsd/rustc/lib/libstdc++*.so*: No such file or directory compile: x86_64-unknown-netbsd/rustllvm/ExecutionEngineWrapper.o -- The CXX compiler identification is GNU 4.8.4 -- The ASM compiler identification is GNU -- Found assembler: /data/scratch/lang/rust/work/.cwrapper/bin/gcc -- Check for working C compiler: /data/scratch/lang/rust/work/.cwrapper/bin/gcc checking build system type... x86_64-unknown-netbsd checking host system type... x86_64-unknown-netbsd checking target system type... x86_64-unknown-netbsd checking for x86_64-unknown-netbsd-gcc... gcc checking for C compiler default output file name... -- Check for working C compiler: /data/scratch/lang/rust/work/.cwrapper/bin/gcc -- works -- Detecting C compiler ABI info a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... -- Detecting C compiler ABI info - done -- Detecting C compile features yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... /data/scratch/lang/rust/work/.tools/bin/grep checking for egrep... /data/scratch/lang/rust/work/.tools/bin/grep -E checking for ANSI C header files... -- Detecting C compile features - done -- Check for working CXX compiler: /data/scratch/lang/rust/work/.cwrapper/bin/c++ compile: x86_64-unknown-netbsd/rustllvm/RustWrapper.o -- Check for working CXX compiler: /data/scratch/lang/rust/work/.cwrapper/bin/c++ -- works -- Detecting CXX compiler ABI info yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for a BSD-compatible install... /data/scratch/lang/rust/work/.tools/bin/install -c checking whether build environment is sane... -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:113 (include): include could not find load file: /usr/pkg/share/llvm/cmake/LLVMConfig.cmake -- Found PythonInterp: /data/scratch/lang/rust/work/.buildlink/bin/python (found version "2.7.13") -- Looking for unwind.h yes /bin/sh: Can't open /data/scratch/lang/rust/work/rustc-1.11.0/src/libbacktrace/missing configure: WARNING: `missing' script is too old or missing checking for a thread-safe mkdir -p... /data/scratch/lang/rust/work/rustc-1.11.0/src/libbacktrace/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-unknown-netbsd-gcc... (cached) gcc -- Looking for unwind.h - found -- Performing Test COMPILER_RT_HAS_FPIC_FLAG checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for x86_64-unknown-netbsd-ranlib... ar s checking for gawk... (cached) awk checking how to print strings... print: not found printf checking for a sed that does not truncate output... /data/scratch/lang/rust/work/.tools/bin/sed checking for fgrep... /data/scratch/lang/rust/work/.tools/bin/grep -F checking for ld used by gcc... /data/scratch/lang/rust/work/.cwrapper/bin/ld checking if the linker (/data/scratch/lang/rust/work/.cwrapper/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... -- Performing Test COMPILER_RT_HAS_FPIC_FLAG - Success -- Performing Test COMPILER_RT_HAS_FPIE_FLAG BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... no checking for /data/scratch/lang/rust/work/.cwrapper/bin/ld option to reload object files... -r checking for x86_64-unknown-netbsd-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$ checking for x86_64-unknown-netbsd-ar... ar checking for x86_64-unknown-netbsd-strip... no checking for strip... strip checking for x86_64-unknown-netbsd-ranlib... (cached) ar s checking command to parse /usr/bin/nm -B output from gcc object... ok checking for dlfcn.h... yes checking for objdir... .libs -- Performing Test COMPILER_RT_HAS_FPIE_FLAG - Success -- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG checking if gcc supports -fno-rtti -fno-exceptions... -- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG - Success -- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... -- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG - Success -- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/data/scratch/lang/rust/work/.cwrapper/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... -- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG - Success -- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG NetBSD ld.elf_so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking unwind.h usability... yes checking unwind.h presence... yes checking for unwind.h... yes /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/RustWrapper.cpp: In function 'void LLVMAddCallSiteAttribute(LLVMValueRef, unsigned int, __uint64_t)': /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/RustWrapper.cpp:102:90: error: declaration of C function 'void LLVMAddCallSiteAttribute(LLVMValueRef, unsigned int, __uint64_t)' conflicts with extern "C" void LLVMAddCallSiteAttribute(LLVMValueRef Instr, unsigned index, uint64_t Val) { ^ checking for _Unwind_Backtrace... In file included from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:43:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/RustWrapper.cpp:11: /data/scratch/lang/rust/work/.buildlink/include/llvm-c/Core.h:2604:6: error: previous declaration 'void LLVMAddCallSiteAttribute(LLVMValueRef, LLVMAttributeIndex, LLVMAttributeRef)' here void LLVMAddCallSiteAttribute(LLVMValueRef C, LLVMAttributeIndex Idx, ^ yes checking for -funwind-tables option... yes checking for -frandom-seed=string option... yes checking whether gcc supports -W... /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/RustWrapper.cpp: In function 'LLVMOpaqueValue* LLVMBuildAtomicCmpXchg(LLVMBuilderRef, LLVMValueRef, LLVMValueRef, LLVMValueRef, llvm::AtomicOrdering, llvm::AtomicOrdering, LLVMBool)': /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/RustWrapper.cpp:212:61: error: declaration of C function 'LLVMOpaqueValue* LLVMBuildAtomicCmpXchg(LLVMBuilderRef, LLVMValueRef, LLVMValueRef, LLVMValueRef, llvm::AtomicOrdering, llvm::AtomicOrdering, LLVMBool)' conflicts with LLVMBool weak) { ^ In file included from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:43:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/RustWrapper.cpp:11: /data/scratch/lang/rust/work/.buildlink/include/llvm-c/Core.h:3114:14: error: previous declaration 'LLVMOpaqueValue* LLVMBuildAtomicCmpXchg(LLVMBuilderRef, LLVMValueRef, LLVMValueRef, LLVMValueRef, LLVMAtomicOrdering, LLVMAtomicOrdering, LLVMBool)' here LLVMValueRef LLVMBuildAtomicCmpXchg(LLVMBuilderRef B, LLVMValueRef Ptr, ^ -- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG - Success yes -- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG checking whether gcc supports -Wall... yes checking whether gcc supports -Wwrite-strings... yes checking whether gcc supports -Wstrict-prototypes... yes checking whether gcc supports -Wmissing-prototypes... yes checking whether gcc supports -Wold-style-definition... yes checking whether gcc supports -Wmissing-format-attribute... yes checking whether gcc supports -Wcast-qual... yes checking for _Unwind_GetIPInfo... yes checking __sync extensions... yes checking __atomic extensions... yes checking output filetype... -- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG - Success -- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG elf64 looking for a compliant stdint.h in stdint.h, checking for uintmax_t... -- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG - Failed -- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG yes checking for uintptr_t... -- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG - Success -- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG compile: x86_64-unknown-netbsd/rustllvm/PassWrapper.o yes checking for int_least32_t... yes checking for int_fast32_t... -- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG - Success -- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG yes checking for uint64_t... /data/scratch/lang/rust/work/rustc-1.11.0/mk/rustllvm.mk:62: recipe for target 'x86_64-unknown-netbsd/rustllvm/RustWrapper.o' failed gmake: *** [x86_64-unknown-netbsd/rustllvm/RustWrapper.o] Error 1 gmake: *** Waiting for unfinished jobs.... yes checking what to include in gstdint.h... stdint.h (already complete) checking sys/mman.h usability... -- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG - Success -- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for mmap... yes checking link.h usability... yes checking link.h presence... yes checking for link.h... yes checking for dl_iterate_phdr... yes checking for fcntl... yes checking whether strnlen is declared... yes checking for getexecname... no checking whether tests can run... yes configure: creating ./config.status -- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG - Success -- Performing Test COMPILER_RT_HAS_STD_CXX11_FLAG -- Performing Test COMPILER_RT_HAS_STD_CXX11_FLAG - Success -- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC -- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC - Success -- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG -- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG - Success -- Performing Test COMPILER_RT_HAS_MSSE3_FLAG config.status: creating Makefile config.status: creating backtrace-supported.h config.status: creating config.h config.status: executing libtool commands -- Performing Test COMPILER_RT_HAS_MSSE3_FLAG - Success -- Performing Test COMPILER_RT_HAS_STD_C99_FLAG config.status: executing gstdint.h commands config.status: executing default commands -- Performing Test COMPILER_RT_HAS_STD_C99_FLAG - Failed -- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG -- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG - Success -- Performing Test COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_FLAG -- Performing Test COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success -- 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 /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp: In function 'LLVMOpaqueTargetMachine* LLVMRustCreateTargetMachine(const char*, const char*, const char*, llvm::CodeModel::Model, llvm::Reloc::Model, llvm::CodeGenOpt::Level, bool, bool, bool, bool)': /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:191:13: error: 'class llvm::TargetOptions' has no member named 'PositionIndependentExecutable' Options.PositionIndependentExecutable = PositionIndependentExecutable; ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp: In function 'void LLVMRustRunFunctionPassManager(LLVMPassManagerRef, LLVMModuleRef)': /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:5: error: reference to 'FunctionPassManager' is ambiguous FunctionPassManager *P = unwrap(PM); ^ In file included from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:49:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:68:7: note: candidates are: class llvm::legacy::FunctionPassManager class FunctionPassManager : public PassManagerBase { ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/Analysis/TargetLibraryInfo.h:18:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:18: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/PassManager.h:303:31: note: typedef class llvm::PassManager llvm::FunctionPassManager typedef PassManager FunctionPassManager; ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:26: error: 'P' was not declared in this scope FunctionPassManager *P = unwrap(PM); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:30: error: parse error in template argument list FunctionPassManager *P = unwrap(PM); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: error: no matching function for call to 'unwrap(LLVMOpaquePassManager*&)' FunctionPassManager *P = unwrap(PM); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: note: candidates are: In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* unwrap(LLVMPassRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:35:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(Pass, LLVMPassRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:35:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(Pass, LLVMPassRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: error: template argument 1 is invalid FunctionPassManager *P = unwrap(PM); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* unwrap(LLVMTargetMachineRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:36:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(TargetMachine, LLVMTargetMachineRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:36:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(TargetMachine, LLVMTargetMachineRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: error: template argument 1 is invalid FunctionPassManager *P = unwrap(PM); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* unwrap(LLVMPassManagerBuilderRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:37:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassManagerBuilder, LLVMPassManagerBuilderRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:37:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassManagerBuilder, LLVMPassManagerBuilderRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: error: template argument 1 is invalid FunctionPassManager *P = unwrap(PM); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* llvm::unwrap(LLVMPassManagerRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:99:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(legacy::PassManagerBase, LLVMPassManagerRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:99:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(legacy::PassManagerBase, LLVMPassManagerRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: error: template argument 1 is invalid FunctionPassManager *P = unwrap(PM); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* llvm::unwrap(LLVMPassRegistryRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/PassRegistry.h:95:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/PassRegistry.h:95:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: error: template argument 1 is invalid FunctionPassManager *P = unwrap(PM); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template T* llvm::unwrap(LLVMTypeRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Type.h:458:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Type, LLVMTypeRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Type.h:458:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Type, LLVMTypeRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: error: template argument 1 is invalid FunctionPassManager *P = unwrap(PM); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:807:12: note: template T** llvm::unwrap(LLVMOpaqueValue**, unsigned int) inline T **unwrap(LLVMValueRef *Vals, unsigned Length) { ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:807:12: note: template argument deduction/substitution failed: /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: error: template argument 1 is invalid FunctionPassManager *P = unwrap(PM); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template T* llvm::unwrap(LLVMValueRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:799:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Value, LLVMValueRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:799:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Value, LLVMValueRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:270:60: error: template argument 1 is invalid FunctionPassManager *P = unwrap(PM); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp: In function 'bool LLVMRustWriteOutputFile(LLVMTargetMachineRef, LLVMPassManagerRef, LLVMModuleRef, const char*, llvm::TargetMachine::CodeGenFileType)': /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:3: error: reference to 'PassManager' is ambiguous PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:49:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:49:7: note: candidates are: class llvm::legacy::PassManager class PassManager : public PassManagerBase { ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/Analysis/TargetLibraryInfo.h:18:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:18: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/PassManager.h:226:7: note: template class llvm::PassManager class PassManager : public PassInfoMixin> { ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:16: error: 'PM' was not declared in this scope PassManager *PM = unwrap(PMR); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:21: error: parse error in template argument list PassManager *PM = unwrap(PMR); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: error: no matching function for call to 'unwrap(LLVMOpaquePassManager*&)' PassManager *PM = unwrap(PMR); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: note: candidates are: In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* unwrap(LLVMPassRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:35:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(Pass, LLVMPassRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:35:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(Pass, LLVMPassRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* unwrap(LLVMTargetMachineRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:36:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(TargetMachine, LLVMTargetMachineRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:36:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(TargetMachine, LLVMTargetMachineRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* unwrap(LLVMPassManagerBuilderRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:37:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassManagerBuilder, LLVMPassManagerBuilderRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:37:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassManagerBuilder, LLVMPassManagerBuilderRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* llvm::unwrap(LLVMPassManagerRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:99:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(legacy::PassManagerBase, LLVMPassManagerRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:99:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(legacy::PassManagerBase, LLVMPassManagerRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* llvm::unwrap(LLVMPassRegistryRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/PassRegistry.h:95:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/PassRegistry.h:95:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template T* llvm::unwrap(LLVMTypeRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Type.h:458:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Type, LLVMTypeRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Type.h:458:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Type, LLVMTypeRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:807:12: note: template T** llvm::unwrap(LLVMOpaqueValue**, unsigned int) inline T **unwrap(LLVMValueRef *Vals, unsigned Length) { ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:807:12: note: template argument deduction/substitution failed: /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template T* llvm::unwrap(LLVMValueRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:799:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Value, LLVMValueRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:799:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Value, LLVMValueRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:297:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:315:10: error: type '' argument given to 'delete', expected pointer delete PM; ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp: In function 'void LLVMRustPrintModule(LLVMPassManagerRef, LLVMModuleRef, const char*)': /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:3: error: reference to 'PassManager' is ambiguous PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:49:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:49:7: note: candidates are: class llvm::legacy::PassManager class PassManager : public PassManagerBase { ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/Analysis/TargetLibraryInfo.h:18:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:18: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/PassManager.h:226:7: note: template class llvm::PassManager class PassManager : public PassInfoMixin> { ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:16: error: 'PM' was not declared in this scope PassManager *PM = unwrap(PMR); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:21: error: parse error in template argument list PassManager *PM = unwrap(PMR); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: error: no matching function for call to 'unwrap(LLVMOpaquePassManager*&)' PassManager *PM = unwrap(PMR); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: note: candidates are: In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* unwrap(LLVMPassRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:35:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(Pass, LLVMPassRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:35:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(Pass, LLVMPassRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* unwrap(LLVMTargetMachineRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:36:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(TargetMachine, LLVMTargetMachineRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:36:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(TargetMachine, LLVMTargetMachineRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* unwrap(LLVMPassManagerBuilderRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:37:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassManagerBuilder, LLVMPassManagerBuilderRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:37:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassManagerBuilder, LLVMPassManagerBuilderRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* llvm::unwrap(LLVMPassManagerRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:99:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(legacy::PassManagerBase, LLVMPassManagerRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:99:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(legacy::PassManagerBase, LLVMPassManagerRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template T* llvm::unwrap(LLVMPassRegistryRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/PassRegistry.h:95:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:41:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/PassRegistry.h:95:1: note: in expansion of macro 'DEFINE_STDCXX_CONVERSION_FUNCTIONS' DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template T* llvm::unwrap(LLVMTypeRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Type.h:458:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Type, LLVMTypeRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Type.h:458:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Type, LLVMTypeRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:807:12: note: template T** llvm::unwrap(LLVMOpaqueValue**, unsigned int) inline T **unwrap(LLVMValueRef *Vals, unsigned Length) { ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:807:12: note: template argument deduction/substitution failed: /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Use.h:29:0, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/User.h:24, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Constant.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Metadata.h:25, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/TrackingMDRef.h:17, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/DebugLoc.h:18, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Instruction.h:20, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/BasicBlock.h:19, from /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/IRBuilder.h:23, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:11, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template T* llvm::unwrap(LLVMValueRef) inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:799:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Value, LLVMValueRef) ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Support/CBindingWrapping.h:33:13: note: template argument deduction/substitution failed: inline T *unwrap(ref P) { \ ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/Value.h:799:1: note: in expansion of macro 'DEFINE_ISA_CONVERSION_FUNCTIONS' DEFINE_ISA_CONVERSION_FUNCTIONS(Value, LLVMValueRef) ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:323:44: error: template argument 1 is invalid PassManager *PM = unwrap(PMR); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp: In function 'void LLVMRustRunRestrictionPass(LLVMModuleRef, char**, size_t)': /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:361:5: error: reference to 'PassManager' is ambiguous PassManager passes; ^ In file included from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:49:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/LegacyPassManager.h:49:7: note: candidates are: class llvm::legacy::PassManager class PassManager : public PassManagerBase { ^ In file included from /data/scratch/lang/rust/work/.buildlink/include/llvm/Analysis/TargetLibraryInfo.h:18:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:18: /data/scratch/lang/rust/work/.buildlink/include/llvm/IR/PassManager.h:226:7: note: template class llvm::PassManager class PassManager : public PassInfoMixin> { ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:361:17: error: expected ';' before 'passes' PassManager passes; ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:363:5: error: 'passes' was not declared in this scope passes.add(llvm::createInternalizePass(ref)); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:363:47: error: no matching function for call to 'createInternalizePass(llvm::ArrayRef&)' passes.add(llvm::createInternalizePass(ref)); ^ /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:363:47: note: candidates are: In file included from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/rustllvm.h:39:0, from /data/scratch/lang/rust/work/rustc-1.11.0/src/rustllvm/PassWrapper.cpp:13: /data/scratch/lang/rust/work/.buildlink/include/llvm/Transforms/IPO.h:132:1: note: llvm::ModulePass* llvm::createInternalizePass(std::function) createInternalizePass(std::function MustPreserveGV); ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Transforms/IPO.h:132:1: note: no known conversion for argument 1 from 'llvm::ArrayRef' to 'std::function' /data/scratch/lang/rust/work/.buildlink/include/llvm/Transforms/IPO.h:135:13: note: llvm::ModulePass* llvm::createInternalizePass() ModulePass *createInternalizePass(); ^ /data/scratch/lang/rust/work/.buildlink/include/llvm/Transforms/IPO.h:135:13: note: candidate expects 0 arguments, 1 provided -- Performing Test COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG - Failed -- Performing Test COMPILER_RT_HAS_G_FLAG -- Performing Test COMPILER_RT_HAS_G_FLAG - Success -- 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 - Success -- Performing Test COMPILER_RT_HAS_WERROR_FLAG /data/scratch/lang/rust/work/rustc-1.11.0/mk/rustllvm.mk:62: recipe for target 'x86_64-unknown-netbsd/rustllvm/PassWrapper.o' failed gmake: *** [x86_64-unknown-netbsd/rustllvm/PassWrapper.o] Error 1 -- Performing Test COMPILER_RT_HAS_WERROR_FLAG - Success -- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG -- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG - Success -- 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 - Success -- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG -- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG - Success -- Performing Test COMPILER_RT_HAS_W3_FLAG -- Performing Test COMPILER_RT_HAS_W3_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_WD4291_FLAG -- Performing Test COMPILER_RT_HAS_WD4291_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 -- Looking for __func__ -- Looking for __func__ - found -- Looking for fopen in c -- Looking for fopen in c - 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 - found -- Looking for pow in m -- Looking for pow in m - found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Looking for __cxa_throw in stdc++ -- Looking for __cxa_throw in stdc++ - found -- Looking for __i686__ -- Looking for __i686__ - not found -- Looking for __i386__ -- Looking for __i386__ - found -- Compiler-RT supported architectures: x86_64;i386 CMake Error at cmake/Modules/AddCompilerRT.cmake:1 (include): include could not find load file: AddLLVM Call Stack (most recent call first): lib/CMakeLists.txt:4 (include) -- Configuring incomplete, errors occurred! See also "/data/scratch/lang/rust/work/rustc-1.11.0/x86_64-unknown-netbsd/rt/compiler-rt/CMakeFiles/CMakeOutput.log". See also "/data/scratch/lang/rust/work/rustc-1.11.0/x86_64-unknown-netbsd/rt/compiler-rt/CMakeFiles/CMakeError.log". /data/scratch/lang/rust/work/rustc-1.11.0/mk/rt.mk:475: recipe for target 'x86_64-unknown-netbsd/rt/libcompiler-rt.a' failed gmake: *** [x86_64-unknown-netbsd/rt/libcompiler-rt.a] Error 1 *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc-current/lang/rust *** Error code 1 Stop. make: stopped in /data/pkgsrc-current/lang/rust