Skip to content

can't build head on my os x 10.8 machine #10941

@cartazio

Description

@cartazio

I recently installed rust head a few days ago, and today I did a clone into a directory so i could peruse rustc source. I just tried to build that clone today, at commit 1b12dca and the install fails.

heres the relevant build log

nb: i have xcode 5 installed, but the gcc in my path is gcc 4.8.


compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/libstd.dylib
link: x86_64-apple-darwin/rustllvm/librustllvm.a
cp: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustllvm.a
cp: x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/librustllvm.a
cp: x86_64-apple-darwin/stage2/lib/rustc/x86_64-apple-darwin/lib/librustllvm.a
/Users/carter/Desktop/repoScratcher/rust/src/libstd/lib.rs:46:0: 46:23 warning: unknown crate attribute, #[warn(attribute_usage)] on by default
/Users/carter/Desktop/repoScratcher/rust/src/libstd/lib.rs:46 #[pkgid="std#0.9-pre"];
                                                              ^~~~~~~~~~~~~~~~~~~~~~~
compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/libextra.dylib
compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustuv.dylib
/Users/carter/Desktop/repoScratcher/rust/src/librustuv/lib.rs:37:0: 37:26 warning: unknown crate attribute, #[warn(attribute_usage)] on by default
/Users/carter/Desktop/repoScratcher/rust/src/librustuv/lib.rs:37 #[pkgid="rustuv#0.9-pre"];
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/carter/Desktop/repoScratcher/rust/src/libextra/lib.rs:23:0: 23:25 warning: unknown crate attribute, #[warn(attribute_usage)] on by default
/Users/carter/Desktop/repoScratcher/rust/src/libextra/lib.rs:23 #[pkgid="extra#0.9-pre"];
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~
cp: x86_64-apple-darwin/stage1/lib/libstd.dylib
cp: x86_64-apple-darwin/stage1/lib/librustuv.dylib
compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/libsyntax.dylib
cp: x86_64-apple-darwin/stage1/lib/libextra.dylib
/Users/carter/Desktop/repoScratcher/rust/src/libsyntax/lib.rs:16:0: 16:26 warning: unknown crate attribute, #[warn(attribute_usage)] on by default
/Users/carter/Desktop/repoScratcher/rust/src/libsyntax/lib.rs:16 #[pkgid="syntax#0.9-pre"];
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc.dylib
cp: x86_64-apple-darwin/stage1/lib/libsyntax.dylib
/Users/carter/Desktop/repoScratcher/rust/src/librustc/lib.rs:11:0: 11:25 warning: unknown crate attribute, #[warn(attribute_usage)] on by default
/Users/carter/Desktop/repoScratcher/rust/src/librustc/lib.rs:11 #[pkgid="rustc#0.9-pre"];
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~
error: linking with `cc` failed: exit code: 1
note: cc arguments: '-m64' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-o' 'x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc-8581899a03b03e-0.9-pre.dylib' 'x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/rustc.o' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/llvm/Release+Asserts/lib' '-L/Users/carter/Desktop/repoScratcher/rust/.rust' '-L/Users/carter/Desktop/repoScratcher/rust' '-lrustllvm' '-lstdc++' '-lLLVMInstrumentation' '-lLLVMInterpreter' '-lLLVMMCJIT' '-lLLVMJIT' '-lLLVMRuntimeDyld' '-lLLVMExecutionEngine' '-lLLVMAsmParser' '-lLLVMLinker' '-lLLVMBitWriter' '-lLLVMBitReader' '-lLLVMipo' '-lLLVMVectorize' '-lLLVMMipsDisassembler' '-lLLVMMipsCodeGen' '-lLLVMMipsAsmParser' '-lLLVMMipsDesc' '-lLLVMMipsInfo' '-lLLVMMipsAsmPrinter' '-lLLVMARMDisassembler' '-lLLVMARMCodeGen' '-lLLVMARMAsmParser' '-lLLVMARMDesc' '-lLLVMARMInfo' '-lLLVMARMAsmPrinter' '-lLLVMX86Disassembler' '-lLLVMX86AsmParser' '-lLLVMX86CodeGen' '-lLLVMSelectionDAG' '-lLLVMAsmPrinter' '-lLLVMMCParser' '-lLLVMCodeGen' '-lLLVMObjCARCOpts' '-lLLVMScalarOpts' '-lLLVMInstCombine' '-lLLVMTransformUtils' '-lLLVMipa' '-lLLVMAnalysis' '-lLLVMX86Desc' '-lLLVMX86Info' '-lLLVMTarget' '-lLLVMX86AsmPrinter' '-lLLVMMC' '-lLLVMObject' '-lLLVMX86Utils' '-lLLVMCore' '-lLLVMSupport' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-lstd-6425b930ca146ae9-0.9-pre' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-lextra-aaa96aab146eb38e-0.9-pre' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-lsyntax-2bb2d559d93ae8f0-0.9-pre' '-lpthread' '-lstdc++' '-dynamiclib' '-Wl,-dylib' '-Wl,-install_name,@rpath/librustc-8581899a03b03e-0.9-pre.dylib' '-lmorestack' '-Wl,-rpath,@loader_path/.' '-Wl,-rpath,/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-Wl,-rpath,/usr/local/lib/rustc/x86_64-apple-darwin/lib'
note: ld: warning: directory not found for option '-L/Users/carter/Desktop/repoScratcher/rust/.rust'
Undefined symbols for architecture x86_64:
  "std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)", referenced from:
      (anonymous namespace)::MemsetRanges::addRange(long long, long long, llvm::Value*, unsigned int, llvm::Instruction*) in libLLVMScalarOpts.a(MemCpyOptimizer.o)
      (anonymous namespace)::RegToMem::runOnFunction(llvm::Function&) in libLLVMScalarOpts.a(Reg2Mem.o)
      (anonymous namespace)::MipsELFObjectWriter::sortRelocs(llvm::MCAssembler const&, std::vector<llvm::ELFRelocationEntry, std::allocator<llvm::ELFRelocationEntry> >&) in libLLVMMipsDesc.a(MipsELFObjectWriter.o)
  "std::__detail::_List_node_base::_M_unhook()", referenced from:
      (anonymous namespace)::MemsetRanges::addRange(long long, long long, llvm::Value*, unsigned int, llvm::Instruction*) in libLLVMScalarOpts.a(MemCpyOptimizer.o)
      (anonymous namespace)::MipsELFObjectWriter::sortRelocs(llvm::MCAssembler const&, std::vector<llvm::ELFRelocationEntry, std::allocator<llvm::ELFRelocationEntry> >&) in libLLVMMipsDesc.a(MipsELFObjectWriter.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
task 'rustc' failed at 'explicit failure', /Users/rustbuild/src/rust-buildbot/slave/snap3-mac/build/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /Users/rustbuild/src/rust-buildbot/slave/snap3-mac/build/src/librustc/lib.rs:393
make: *** [x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc.dylib] Error 101
carter repoScratcher/rust ‹master› » make                                                                                                        2 ↵
cfg: build triple x86_64-apple-darwin
cfg: host triples x86_64-apple-darwin
cfg: target triples x86_64-apple-darwin
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for x86_64-apple-darwin is x86_64
cfg: os for x86_64-apple-darwin is apple-darwin
cfg: using gcc
cfg: no llnextgen found, omitting grammar-verification
compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc.dylib
/Users/carter/Desktop/repoScratcher/rust/src/librustc/lib.rs:11:0: 11:25 warning: unknown crate attribute, #[warn(attribute_usage)] on by default
/Users/carter/Desktop/repoScratcher/rust/src/librustc/lib.rs:11 #[pkgid="rustc#0.9-pre"];
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~
error: linking with `cc` failed: exit code: 1
note: cc arguments: '-m64' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-o' 'x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc-8581899a03b03e-0.9-pre.dylib' 'x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/rustc.o' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/llvm/Release+Asserts/lib' '-L/Users/carter/Desktop/repoScratcher/rust/.rust' '-L/Users/carter/Desktop/repoScratcher/rust' '-lrustllvm' '-lstdc++' '-lLLVMInstrumentation' '-lLLVMInterpreter' '-lLLVMMCJIT' '-lLLVMJIT' '-lLLVMRuntimeDyld' '-lLLVMExecutionEngine' '-lLLVMAsmParser' '-lLLVMLinker' '-lLLVMBitWriter' '-lLLVMBitReader' '-lLLVMipo' '-lLLVMVectorize' '-lLLVMMipsDisassembler' '-lLLVMMipsCodeGen' '-lLLVMMipsAsmParser' '-lLLVMMipsDesc' '-lLLVMMipsInfo' '-lLLVMMipsAsmPrinter' '-lLLVMARMDisassembler' '-lLLVMARMCodeGen' '-lLLVMARMAsmParser' '-lLLVMARMDesc' '-lLLVMARMInfo' '-lLLVMARMAsmPrinter' '-lLLVMX86Disassembler' '-lLLVMX86AsmParser' '-lLLVMX86CodeGen' '-lLLVMSelectionDAG' '-lLLVMAsmPrinter' '-lLLVMMCParser' '-lLLVMCodeGen' '-lLLVMObjCARCOpts' '-lLLVMScalarOpts' '-lLLVMInstCombine' '-lLLVMTransformUtils' '-lLLVMipa' '-lLLVMAnalysis' '-lLLVMX86Desc' '-lLLVMX86Info' '-lLLVMTarget' '-lLLVMX86AsmPrinter' '-lLLVMMC' '-lLLVMObject' '-lLLVMX86Utils' '-lLLVMCore' '-lLLVMSupport' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-lstd-6425b930ca146ae9-0.9-pre' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-lextra-aaa96aab146eb38e-0.9-pre' '-L/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-lsyntax-2bb2d559d93ae8f0-0.9-pre' '-lpthread' '-lstdc++' '-dynamiclib' '-Wl,-dylib' '-Wl,-install_name,@rpath/librustc-8581899a03b03e-0.9-pre.dylib' '-lmorestack' '-Wl,-rpath,@loader_path/.' '-Wl,-rpath,/Users/carter/Desktop/repoScratcher/rust/x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib' '-Wl,-rpath,/usr/local/lib/rustc/x86_64-apple-darwin/lib'
note: ld: warning: directory not found for option '-L/Users/carter/Desktop/repoScratcher/rust/.rust'
Undefined symbols for architecture x86_64:
  "std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)", referenced from:
      (anonymous namespace)::MemsetRanges::addRange(long long, long long, llvm::Value*, unsigned int, llvm::Instruction*) in libLLVMScalarOpts.a(MemCpyOptimizer.o)
      (anonymous namespace)::RegToMem::runOnFunction(llvm::Function&) in libLLVMScalarOpts.a(Reg2Mem.o)
      (anonymous namespace)::MipsELFObjectWriter::sortRelocs(llvm::MCAssembler const&, std::vector<llvm::ELFRelocationEntry, std::allocator<llvm::ELFRelocationEntry> >&) in libLLVMMipsDesc.a(MipsELFObjectWriter.o)
  "std::__detail::_List_node_base::_M_unhook()", referenced from:
      (anonymous namespace)::MemsetRanges::addRange(long long, long long, llvm::Value*, unsigned int, llvm::Instruction*) in libLLVMScalarOpts.a(MemCpyOptimizer.o)
      (anonymous namespace)::MipsELFObjectWriter::sortRelocs(llvm::MCAssembler const&, std::vector<llvm::ELFRelocationEntry, std::allocator<llvm::ELFRelocationEntry> >&) in libLLVMMipsDesc.a(MipsELFObjectWriter.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
task 'rustc' failed at 'explicit failure', /Users/rustbuild/src/rust-buildbot/slave/snap3-mac/build/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /Users/rustbuild/src/rust-buildbot/slave/snap3-mac/build/src/librustc/lib.rs:393
make: *** [x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc.dylib] Error 101


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions