Skip to content

Link error in stage1 #2

Closed
Closed
@jokade

Description

@jokade

Hi, I tried to compile your branch avr-support with

./configure --prefix=/opt/local/avrrust && make

which results in a link error (for stage1?):

error: linking with `cc` failed: exit code: 1
note: cc '-m64' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-o' 'x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/librustc-4e7c5e5c.dylib' 'x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/rustc-4e7c5e5c.o' '-Wl,-force_load,/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' 'x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/rustc-4e7c5e5c.metadata.o' '-fno-lto' '-Wl,-dead_strip' '-nodefaultlibs' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lgraphviz-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lgetopts-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lrustc_llvm-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lrustc_back-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lsyntax-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lterm-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lfmt_macros-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-larena-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lrbml-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-ltime-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lserialize-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-llog-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lregex-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lflate-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lstd-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lsync-4e7c5e5c' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib' '-lrustrt-4e7c5e5c' '-L' 'x86_64-apple-darwin/rt' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/x86_64-apple-darwin/llvm/Release+Asserts/lib' '-L' '.' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust/.rust' '-L' '/Volumes/JKDATA/dev/tmp/avr-rust' '-lpthread' '-ledit' '-lm' '-lc++' '-lSystem' '-lpthread' '-lc' '-lm' '-dynamiclib' '-Wl,-dylib' '-lcompiler-rt'
note: ld: warning: directory not found for option '-L/Volumes/JKDATA/dev/tmp/avr-rust/.rust'
Undefined symbols for architecture x86_64:
  "_LLVMInitializeAVRTargetInfo", referenced from:
      back::write::configure_llvm::closure.105122 in rustc-4e7c5e5c.o
  "_LLVMInitializeAVRTarget", referenced from:
      back::write::configure_llvm::closure.105122 in rustc-4e7c5e5c.o
  "_LLVMInitializeAVRTargetMC", referenced from:
      back::write::configure_llvm::closure.105122 in rustc-4e7c5e5c.o
  "_LLVMInitializeAVRAsmPrinter", referenced from:
      back::write::configure_llvm::closure.105122 in rustc-4e7c5e5c.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
make: *** [x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/stamp.rustc] Error 101

Do I need addtional config flags? thx

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