Skip to content

Instantly share code, notes, and snippets.

@patrick-samy
Created September 14, 2016 16:03
Show Gist options
  • Save patrick-samy/b7cbd306374f03ff69aa84f3118b4672 to your computer and use it in GitHub Desktop.
Save patrick-samy/b7cbd306374f03ff69aa84f3118b4672 to your computer and use it in GitHub Desktop.
error: linking with `arm-none-eabi-gcc` failed: exit code: 1
note: "arm-none-eabi-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/wit.0.o" "-o" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/wit" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug" "-L" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps" "-L" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/build/openssl-5464f8f6e728c35a/out" "-L" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/build/openssl-sys-extras-5c7e4d8925825f00/out" "-L" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libhyper-d791bd205596c416.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libsolicit-b1e7a1a373a16061.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libhpack-e4d9e946312af616.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libtypeable-ad302c7c6ce39362.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libnum_cpus-9256729e2e3ab66d.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libhttparse-36b96d90ffbce562.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libunicase-87c5f8ba3db67fd3.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libcookie-1f264fccb02ef6c6.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libtime-750bfdd52feafcb7.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libmime-3c32775eb368d3f0.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/liblog-bf16bb9a4912b11d.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/liblanguage_tags-abe5f88450030754.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/liburl-d2e26827701e4972.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libidna-82ebdb343d6c1855.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libunicode_bidi-04ad1da5552425fd.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libmatches-5d5580ffd528031c.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libopenssl_verify-0e08dfffe26f151c.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libopenssl-6d8c7b7707d12a7d.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libopenssl_sys_extras-5206753a3d8bd8ef.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libopenssl_sys-a4f86492ba1e2f09.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/liblazy_static-359f5533c970cd71.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libbitflags-0e272044714c8076.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libunicode_normalization-5de3a9c8fd8ddf4e.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libtraitobject-516160771d9db60e.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/librustc_serialize-3561541d79c18212.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/libsox_sys-9dc5c54370353298.rlib" "/home/pasamy/projects/misc/wit/target/armv7-unknown-linux-gnueabihf/debug/deps/liblibc-1417726cb94dbc83.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libstd-b2f226640d1d32b9.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libpanic_unwind-491183eaaf331c43.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libunwind-3c21135de09f3c40.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librand-7eee450a72fe681f.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcollections-ff3740d6645156a8.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liballoc-31682a3ac7cec2b1.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liballoc_jemalloc-a6b08e9fd24e666a.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblibc-a5dc24d38d92e77b.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_unicode-a67585e75ebbb5e6.rlib" "/home/pasamy/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcore-dbae79abc8ebcbea.rlib" "-l" "ssl" "-l" "crypto" "-l" "sox" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "util" "-l" "compiler-rt"
note: /usr/lib/gcc/arm-none-eabi/6.2.0/../../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/6.2.0/../../../../arm-none-eabi/lib/libm.a(s_atan.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/arm-none-eabi/6.2.0/../../../../arm-none-eabi/lib/libm.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: Could not compile `wit`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment