Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
error: linking with `/opt/wandbox/gcc-4.8.2/bin/g++` failed: exit code: 1
note: /opt/wandbox/gcc-4.8.2/bin/g++ '-m64' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-o' 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustuv-ede8cb89-0.11.0-pre.so' 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/rustuv.o' '-lmorestack' 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/rustuv.metadata.o' '-nodefaultlibs' '-Wl,--as-needed' '-Wl,-O1' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lstd-59beb4f7-0.11.0-pre' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lsync-305341d2-0.11.0-pre' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lrustrt-d8560cb2-0.11.0-pre' '-L' '/opt/wandbox/gcc-4.8.2/lib64' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/llvm/Release/lib' '-L' 'x86_64-unknown-linux-gnu/rt' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/.rust' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620' '-Wl,-Bstatic' '-luv_support' '-Wl,-Bstatic' '-luv' '-Wl,-Bdynamic' '-lpthread' '-Wl,-Bdynamic' '-lrt' '-Wl,-Bdynamic' '-ldl' '-lpthread' '-lgcc_s' '-lpthread' '-lc' '-lm' '-shared' '-Wl,-rpath,$ORIGIN/.' '-Wl,-rpath,/opt/wandbox/rust-head/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lcompiler-rt' '-Wl,-rpath,/opt/wandbox/gcc-4.8.2/lib64'
note: /usr/bin/ld: x86_64-unknown-linux-gnu/rt/libuv.a(libuv_la-uv-common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
x86_64-unknown-linux-gnu/rt/libuv.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
export PATH="/opt/wandbox/gcc-4.8.2/bin:$PATH"
export CC="/opt/wandbox/gcc-4.8.2/bin/gcc"
export CXX="/opt/wandbox/gcc-4.8.2/bin/g++"
export LDFLAGS="-Wl,-rpath,/opt/wandbox/gcc-4.8.2/lib64"
export RUSTFLAGS="-C linker=/opt/wandbox/gcc-4.8.2/bin/g++ -C link-args=-Wl,-rpath,/opt/wandbox/gcc-4.8.2/lib64"
./configure --prefix=/opt/wandbox/rust-head --disable-docs --disable-llvm-assertions --disable-debug --enable-llvm-static-stdcpp --sysconfdir=/opt/wandbox/rust-head/etc --libuv-root=/opt/wandbox/libuv/lib64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.