all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ld-wrapper and funny bytes in LIBRARY_PATH
@ 2017-06-17  8:48 Danny Milosavljevic
  2017-06-17 22:21 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2017-06-17  8:48 UTC (permalink / raw)
  To: guix-devel

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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-18  9:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-17  8:48 ld-wrapper and funny bytes in LIBRARY_PATH Danny Milosavljevic
2017-06-17 22:21 ` Ludovic Courtès
2017-06-18  8:19   ` Danny Milosavljevic
2017-06-18  9:50     ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.