[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ld-wrapper and funny bytes in LIBRARY_PATH
From: |
Danny Milosavljevic |
Subject: |
ld-wrapper and funny bytes in LIBRARY_PATH |
Date: |
Sat, 17 Jun 2017 10:48:27 +0200 |
Hi,
so I'm trying to enable Rust tests and one of their tests does the following
(paraphrased) in order to exercise the non-UTF8 linker case (which they want to
succeed):
----------------------------------------------
bad_dir := zzz$$'\xff'
all:
mkdir $(bad_dir)
cp ... $(bad_dir)/liblibrary.a
LIBRARY_PATH=$(bad_dir) rustc exec.rs
----------------------------------------------
This fails for us.
strace yields:
[pid 15059]
open("/tmp/guix-build-rustc-1.16.0.drv-0/rustc-1.16.0-src/src/test/run-make/linker-output-non-utf8/zzz?/liblibrary.a",
O_RDONLY) = -1 ENOENT (No such file or directory)
But:
/tmp/guix-build-rustc-1.16.0.drv-0/rustc-1.16.0-src/src/test/run-make/linker-output-non-utf8
[env]$ ls zzz\377/liblibrary.a
'zzz'$'\377''/liblibrary.a'
$ ls
/tmp/guix-build-rustc-1.16.0.drv-0/rustc-1.16.0-src/src/test/run-make/linker-output-non-utf8/zzz?/liblibrary.a
'/tmp/guix-build-rustc-1.16.0.drv-0/rustc-1.16.0-src/src/test/run-make/linker-output-non-utf8/zzz'$'\377''/liblibrary.a'
How do we best proceed?
- ld-wrapper and funny bytes in LIBRARY_PATH,
Danny Milosavljevic <=