Repository: rust
Issue: 1.15.1 armhf run-make/relocation-model failed, "relocation [..] against `a local symbol' can not be used [..]; recompile with -fPIC"
Labels: O-Arm,T-compiler,C-bug

Running manually on [abel.debian.org](https://db.debian.org/machines.cgi?host=abel):

~~~~
failures:

---- [run-make] run-make/relocation-model stdout ----



error: make failed
status: exit code: 2
command: "make"
stdout:
------------------------------------------
make[3]: Entering directory '/home/infinity0/rustc/src/test/run-make/relocation-model'
LD_LIBRARY_PATH="/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/test/run-make/relocation-model.stage2-armv7-unknown-linux-gnueabihf:/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib:/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib:/usr/lib/llvm-3.9/lib:" '/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/bin/rustc' --out-dir /home/infinity0/rustc/armv7-unknown-linux-gnueabihf/test/run-make/relocation-model.stage2-armv7-unknown-linux-gnueabihf -L /home/infinity0/rustc/armv7-unknown-linux-gnueabihf/test/run-make/relocation-model.stage2-armv7-unknown-linux-gnueabihf -C link-args=-Wl,-z,relro -C relocation-model=dynamic-no-pic foo.rs
Makefile:4: recipe for target 'all' failed
make[3]: Leaving directory '/home/infinity0/rustc/src/test/run-make/relocation-model'

------------------------------------------
stderr:
------------------------------------------
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/test/run-make/relocation-model.stage2-armv7-unknown-linux-gnueabihf/foo.0.o" "-o" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/test/run-make/relocation-model.stage2-armv7-unknown-linux-gnueabihf/foo" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/test/run-make/relocation-model.stage2-armv7-unknown-linux-gnueabihf" "-L" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libstd-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librand-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libpanic_unwind-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcollections-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liballoc-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liballoc_jemalloc-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libunwind-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblibc-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libstd_unicode-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcore-570da8f8.rlib" "/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/stage2/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcompiler_builtins-570da8f8.rlib" "-l" "dl" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "util" "-Wl,-z,relro"
  = note: /usr/bin/ld: /home/infinity0/rustc/armv7-unknown-linux-gnueabihf/test/run-make/relocation-model.stage2-armv7-unknown-linux-gnueabihf/foo.0.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/home/infinity0/rustc/armv7-unknown-linux-gnueabihf/test/run-make/relocation-model.stage2-armv7-unknown-linux-gnueabihf/foo.0.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status


error: aborting due to previous error

make[3]: *** [all] Error 101
~~~~