Skip to content

Commit db4263e

Browse files
authored
Rollup merge of rust-lang#113889 - fortanix:raoul/fix_ice_tests_for_sgx_platform, r=Mark-Simulacrum
Fix ice tests when librustc-driver is linked dynamically Running `dump-ice-to-disk`and `short-ice` tests on Linux targeting `x86_64-fortanix-unknown-sgx` platform results in: ``` jenkins@31cf43196355:~/workspace/rust-sgx-ci/Raoul/rust$ cat /home/jenkins/workspace/rust-sgx-ci/Raoul/rust/build/x86_64-unknown-linux-gnu/test/run-make/dump-ice-to-disk/dump-ice-to-disk/* /home/jenkins/workspace/rust-sgx-ci/Raoul/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc: error while loading shared libraries: librustc_driver-fa98927b935b2881.so: cannot open shared object file: No such file or directory /home/jenkins/workspace/rust-sgx-ci/Raoul/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc: error while loading shared libraries: librustc_driver-fa98927b935b2881.so: cannot open shared object file: No such file or directory /home/jenkins/workspace/rust-sgx-ci/Raoul/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc: error while loading shared libraries: librustc_driver-fa98927b935b2881.so: cannot open shared object file: No such file or directory /home/jenkins/workspace/rust-sgx-ci/Raoul/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc: error while loading shared libraries: librustc_driver-fa98927b935b2881.so: cannot open shared object file: No such file or directory ``` Setting the LD_LIBRARY_PATH explicitly to `$(HOST_RPATH_DIR)` in these tests Makefiles resolves the issue. The `thumb-none-qemu` and `thumb-none-cortex-m` run-make tests do something similar. cc: ``@jethrogb`` ``@vn971`` ``@mkaynov``
2 parents 8529cda + 3670bf1 commit db4263e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/run-make/dump-ice-to-disk/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include ../tools.mk
33
# ignore-windows
44

55
export RUSTC := $(RUSTC_ORIGINAL)
6+
export LD_LIBRARY_PATH := $(HOST_RPATH_DIR)
67
export TMPDIR := $(TMPDIR)
78

89
all:

tests/run-make/short-ice/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include ../tools.mk
33
# ignore-windows
44

55
export RUSTC := $(RUSTC_ORIGINAL)
6+
export LD_LIBRARY_PATH := $(HOST_RPATH_DIR)
67
export TMPDIR := $(TMPDIR)
78

89
all:

0 commit comments

Comments
 (0)