Bug#801498: rakudo: Native libraries and paths
gregor herrmann
gregoa at debian.org
Sun Oct 11 10:50:07 UTC 2015
Package: rakudo
Version: 2015.09-2
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Maybe this is a user error, or maybe there's something wrong around
NativeCall and the paths it looks in ...
* rakudo, moarvm, nqp from unstable as of today
* panda from git (2015.09 tag)
% /home/gregoa/.perl6/2015.09/bin/panda install Linenoise
==> Fetching Linenoise
==> Building Linenoise
gcc -c -fPIC -Wdeclaration-after-statement -Werror=declaration-after-statement -O3 -DNDEBUG -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -o linenoise.o linenoise.c
gcc -shared -fPIC -O3 -DNDEBUG -g3 -Wl,-rpath,/usr/lib/moar -Wl,-rpath,/usr/lib/perl6/site/lib -Wl,-z,relro -Wl,-z,now -ltommath -latomic_ops -lm -lpthread -lrt -ldl -o /home/gregoa/src/git-pkg-perl/meta/packages/libperl-apireference-perl/.panda-work/1444559283_1/blib/lib/liblinenoise.so linenoise.o
gcc -o constant-helper -Wdeclaration-after-statement -Werror=declaration-after-statement -O3 -DNDEBUG -g3 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 constant-helper.c
perl6 fill-constants.pl < lib/Linenoise.pm.in > lib/Linenoise.pm
==> Testing Linenoise
==> Installing Linenoise
Copying blib/lib/Linenoise.pm to /home/gregoa/.perl6/2015.09/lib/Linenoise.pm
Copying blib/lib/Linenoise.pm.in to /home/gregoa/.perl6/2015.09/lib/Linenoise.pm.in
Copying blib/lib/liblinenoise.so to /home/gregoa/.perl6/2015.09/lib/liblinenoise.so
==> Successfully installed Linenoise
So far so good. But calling perl6 ends with:
% perl6
===SORRY!===
Cannot locate native library 'liblinenoise.so': liblinenoise.so: cannot open shared object file: No such file or directory
Using strace we see that /home/gregoa/.perl6/2015.09/lib/Linenoise.pm
is opened, and then NativeCall looks everywhere but not in
/home/gregoa/.perl6/2015.09/lib/ where liblinenoise.so would be:
open("/home/gregoa/.perl6/2015.09/lib/Linenoise.pm", O_RDONLY|O_CLOEXEC) = 13
open("/usr/share/perl6/lib/NativeCall.pm.moarvm", O_RDONLY|O_CLOEXEC) = 13
open("/usr/share/perl6/lib/NativeCall/Types.pm.moarvm", O_RDONLY|O_CLOEXEC) = 13
open("/usr/share/perl6/lib/NativeCall/Compiler/GNU.pm.moarvm", O_RDONLY|O_CLOEXEC) = 13
open("/usr/share/perl6/lib/NativeCall/Compiler/MSVC.pm.moarvm", O_RDONLY|O_CLOEXEC) = 13
open("/usr/lib/moar/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/moar/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 13
open("/lib/x86_64-linux-gnu/tls/x86_64/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/x86_64/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/x86_64/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/x86_64/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/tls/x86_64/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/tls/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/x86_64/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/x86_64/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/moar/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/moar/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 13
open("/lib/x86_64-linux-gnu/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/liblinenoise.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
Is this a problem of rakudo, of panda, of Linenoise, or am I just
missing some setup/variable/...?
Cheers,
gregor
- -- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-rc4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)
Versions of packages rakudo depends on:
ii moarvm 2015.09-3
ii nqp 2015.09.1-2
ii rakudo-lib 2015.09-2
rakudo recommends no packages.
Versions of packages rakudo suggests:
ii valgrind 1:3.11.0-1
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQJ8BAEBCgBmBQJWGj7fXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREMUUxMzE2RTkzQTc2MEE4MTA0RDg1RkFC
QjNBNjgwMTg2NDlBQTA2AAoJELs6aAGGSaoGHWQP/19g+zqKGI8BVFG9y4L/vgoI
cSt7Hcx4L0g+ObdxnDrPZYcvJLuFDYOmTTX0j0Q5/WjOk1wdsi/n+rLmVHyfJHe9
b1idJEqdgQvkUunERLOmXOXi/lja7Zx+8bbQ6HBq7IMPMM1yZY25C8i2RwsFL6te
dWjHnSmHwymFuCyer/Ej7NneYAwuSxFPlghHH9KgKnjLVN3OvqhjeaCGdQFj1BJw
r8tuHayzd8EZRlWH79GJAdUCJTzdW5Vpf+GoOTyLDiTfZtDZ6nsB56ifGxT65AXr
yIaNG86d0D1kL1iVP9g1Z1xdT1IXD0tg/Uroh5a6QsIvOyDDz8h1Z8jTPfHkDZDX
7gQ91l/ULB1xTbENVfguyAzdUeSp7MTBNrEIE1kBPI/iLcU4d73bLs8B3DHEiGXk
S5E5RoRy4bA9mJmvOUtQa9cKcMA3RXJtXnoMSJjlDHoS0RfnsfTQPL1xNYQuCObc
92Fes5jmXK4qkXRWcVuhXPpOrOnnKhUQrOP7qyOjjfyxIvfTiOMVifU4RYT3hVqp
5QqOJvvLFuV5i78h+/ECjTDm+ybRvRjPK4Ah280Xo5WtO4i7xIH5SF3MCKt6F34j
9LwufL9DXR9Qgq7xxFWyTeR4eH/ugZbZ+TOULQI+CP5aQXYa9F/pHkeISxpWIxMr
+V+YhLE9Wai8qYDx8qru
=6AKV
-----END PGP SIGNATURE-----
More information about the Pkg-rakudo-devel
mailing list