[Bug 770623] netclock-replay tool breaks cross compile

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Aug 31 15:48:38 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=770623

--- Comment #7 from Alistair Buxton <a.j.buxton at gmail.com> ---
I added the compiler to my path, entered the netclock directory and ran:

strace -s 1000 -f -e execve,file make 2>&1 | grep -E 'execve|gstbase'

and this is the relevant output:

[pid 32295]
execve("/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld",
["/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld",
"-plugin",
"/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.3/liblto_plugin.so",
"-plugin-opt=/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.3/lto-wrapper",
"-plugin-opt=-fresolution=/tmp/ccwQLBhN.res",
"-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_s",
"-plugin-opt=-pass-through=-lpthread", "-plugin-opt=-pass-through=-lc",
"-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_s",
"--sysroot=/home/al/gstbuild-tmp/sysroot", "--build-id", "--eh-frame-hdr",
"-dynamic-linker", "/lib/ld-linux-armhf.so.3", "-X", "-m", "armelf_linux_eabi",
"-o", ".libs/netclock-server",
"/home/al/gstbuild-tmp/sysroot/usr/lib/arm-linux-gnueabihf/crt1.o",
"/home/al/gstbuild-tmp/sysroot/usr/lib/arm-linux-gnueabihf/crti.o",
"/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/crtbegin.o",
"-L/home/al/gstbuild-tmp/sysroot/usr/lib/arm-linux-gnueabihf",
"-L/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3",
"-L/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf",
"-L/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../lib/gcc",
"-L/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/lib",
"-L/home/al/gstbuild-tmp/sysroot/lib/arm-linux-gnueabihf",
"-L/home/al/gstbuild-tmp/sysroot/lib",
"-L/home/al/gstbuild-tmp/sysroot/usr/lib/arm-linux-gnueabihf",
"-L/home/al/gstbuild-tmp/sysroot/usr/lib", "netclock_server-netclock-server.o",
"../../../libs/gst/net/.libs/libgstnet-1.0.so",
"../../../gst/.libs/libgstreamer-1.0.so", "-lgobject-2.0", "-lgmodule-2.0",
"-lglib-2.0", "-lrt", "-ldl", "-lgcc", "--as-needed", "-lgcc_s",
"--no-as-needed", "-lpthread", "-lc", "-lgcc", "--as-needed", "-lgcc_s",
"--no-as-needed",
"/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/crtend.o",
"/home/al/gstbuild-tmp/sysroot/usr/lib/arm-linux-gnueabihf/crtn.o"], [/* 77
vars */]) = 0
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/home/al/gstbuild-tmp/gstreamer/gst/.libs/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/home/al/gstbuild-tmp/gstreamer/libs/gst/base/.libs/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/opt/vc/lib/libgstbase-1.0.so.0", O_RDONLY)
= -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/lib/arm-linux-gnueabihf/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/usr/lib/arm-linux-gnueabihf/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/usr/local/lib/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295] open("/home/al/gstbuild-tmp/sysroot/lib/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295] open("/home/al/gstbuild-tmp/sysroot/usr/lib/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/home/al/gstbuild-tmp/gstreamer/gst/.libs/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/home/al/gstbuild-tmp/gstreamer/libs/gst/base/.libs/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/opt/vc/lib/libgstbase-1.0.so.0", O_RDONLY)
= -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/lib/arm-linux-gnueabihf/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/usr/lib/arm-linux-gnueabihf/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295]
open("/home/al/gstbuild-tmp/sysroot/usr/local/lib/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295] open("/home/al/gstbuild-tmp/sysroot/lib/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 32295] open("/home/al/gstbuild-tmp/sysroot/usr/lib/libgstbase-1.0.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
/home/al/gstbuild-tmp/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld:
warning: libgstbase-1.0.so.0, needed by
../../../libs/gst/net/.libs/libgstnet-1.0.so, not found (try using -rpath or
-rpath-link)


So the problem here is that it is looking in the sysroot for the libs it just
built, but they aren't in the sysroot because they have not been installed yet.

I also compared the .la files between a cross and a native build and I could
not see any relevant differences there.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list