Skip to content

Linking failure: linking with cc failed: exit code: 1 #14732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jauhien opened this issue Jun 7, 2014 · 3 comments
Closed

Linking failure: linking with cc failed: exit code: 1 #14732

jauhien opened this issue Jun 7, 2014 · 3 comments

Comments

@jauhien
Copy link
Contributor

jauhien commented Jun 7, 2014

I have this error while compiling rust from git repo both with gcc and clang:

error: linking with `cc` failed: exit code: 1
note: cc '-m64' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-o' 'x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin/rustc' 'x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin/rustc.o' '-lmorestack' '-nodefaultlibs' '-Wl,--gc-sections' '-Wl,--as-needed' '-Wl,-O1' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lrustc-d252d482-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-ltime-4bb3739b-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lsyntax-555559ea-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lterm-4e4945a5-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-ldebug-1e940314-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lgraphviz-7b3cf89d-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-larena-063bff73-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lnative-1fb5e2c0-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lgetopts-c94737d1-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lserialize-0352aab7-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lflate-92afea7e-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-llog-cd053230-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lsync-305341d2-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lfmt_macros-5125f3bd-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lstd-59beb4f7-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lrustrt-d8560cb2-0.11.0-pre' '-L' '/home/jauhien/work/rust/rust/.rust' '-L' '/home/jauhien/work/rust/rust' '-Wl,-Bdynamic' '-lz' '-lpthread' '-lffi' '-lcurses' '-ldl' '-lm' '-lstdc++' '-lrt' '-ldl' '-lpthread' '-lgcc_s' '-lpthread' '-lc' '-lm' '-Wl,-rpath,$ORIGIN/../lib' '-Wl,-rpath,/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lcompiler-rt'
note: /home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeMipsTarget'
/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeARMTarget'
/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeARMAsmPrinter'
/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeMipsAsmPrinter'
/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeARMTargetMC'
/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeMipsTargetInfo'
/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeARMAsmParser'
/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeMipsAsmParser'
/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeARMTargetInfo'
/home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-d252d482-0.11.0-pre.so: undefined reference to `LLVMInitializeMipsTargetMC'
collect2: error: ld returned 1 exit status

error: aborting due to previous error
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin/rustc] Error 101
@jauhien
Copy link
Contributor Author

jauhien commented Jun 7, 2014

Ooops, sorry. just realized that it's because of my configuration. Closing.

@shoulder1205
Copy link

hi, how to resolve.

@IThawk
Copy link

IThawk commented Aug 26, 2019

hi, how to resolve. @shoulder1205 @jauhien @

bors added a commit to rust-lang-ci/rust that referenced this issue Jun 5, 2023
Fix pattern type mismatch in tuples

Reduces pattern type mismatches on self to 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants