mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] host-orc-4.30/orcc library location
@ 2019-10-17  5:32 Florian Faber
  2019-10-17  5:51 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Faber @ 2019-10-17  5:32 UTC (permalink / raw)
  To: ptxdist

Hi,

host-orc-4.30 places its libraries in

./sysroot-host/lib/x86_64-linux-gnu/liborc-0.4.so.0
./sysroot-host/lib/x86_64-linux-gnu/liborc-0.4.so.0.30.0
./sysroot-host/lib/x86_64-linux-gnu/liborc-0.4.so

but orcc is looking for them in

openat(AT_FDCWD, 
"$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/haswell/x86_64/liborc-0.4.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/haswell/x86_64", 
0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/haswell/liborc-0.4.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/haswell", 
0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/x86_64/liborc-0.4.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/x86_64", 
0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/liborc-0.4.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls", 
0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"$PTXDIST/platform-BAG/sysroot-host/bin/../lib/haswell/x86_64/liborc-0.4.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/haswell/x86_64", 
0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"$PTXDIST/platform-BAG/sysroot-host/bin/../lib/haswell/liborc-0.4.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/haswell", 
0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"$PTXDIST/platform-BAG/sysroot-host/bin/../lib/x86_64/liborc-0.4.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/x86_64", 
0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"$PTXDIST/platform-BAG/sysroot-host/bin/../lib/liborc-0.4.so.0", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0

where obviously is in vain. It finally resorts to the system's library, 
which in my case has the wrong version (4.28) and bails out.

Moving the Libraries to sysroot-host/lib solves the problem. 
Unfortunately I cannot provide a patch instantly as I never worked with 
meson.


Flo
-- 
Machines can do the work, so people have time to think.

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] host-orc-4.30/orcc library location
  2019-10-17  5:32 [ptxdist] host-orc-4.30/orcc library location Florian Faber
@ 2019-10-17  5:51 ` Michael Olbrich
  2019-10-18  4:41   ` Florian Faber
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2019-10-17  5:51 UTC (permalink / raw)
  To: ptxdist

Hi,

On Thu, Oct 17, 2019 at 07:32:18AM +0200, Florian Faber wrote:
> host-orc-4.30 places its libraries in
> 
> ./sysroot-host/lib/x86_64-linux-gnu/liborc-0.4.so.0
> ./sysroot-host/lib/x86_64-linux-gnu/liborc-0.4.so.0.30.0
> ./sysroot-host/lib/x86_64-linux-gnu/liborc-0.4.so

Hmm, this does not happen here. What's your Linux distribution? I'm
guessing that some configuration leaks in here. It would be best if I could
reproduce this here.

Michael

> but orcc is looking for them in
> 
> openat(AT_FDCWD, "$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/haswell/x86_64/liborc-0.4.so.0",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/haswell/x86_64",
> 0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
> openat(AT_FDCWD,
> "$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/haswell/liborc-0.4.so.0",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/haswell",
> 0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
> openat(AT_FDCWD,
> "$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/x86_64/liborc-0.4.so.0",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/x86_64",
> 0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
> openat(AT_FDCWD,
> "$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls/liborc-0.4.so.0",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/tls", 0x7ffe45dcc500) =
> -1 ENOENT (No such file or directory)
> openat(AT_FDCWD, "$PTXDIST/platform-BAG/sysroot-host/bin/../lib/haswell/x86_64/liborc-0.4.so.0",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/haswell/x86_64",
> 0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
> openat(AT_FDCWD,
> "$PTXDIST/platform-BAG/sysroot-host/bin/../lib/haswell/liborc-0.4.so.0",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/haswell",
> 0x7ffe45dcc500) = -1 ENOENT (No such file or directory)
> openat(AT_FDCWD,
> "$PTXDIST/platform-BAG/sysroot-host/bin/../lib/x86_64/liborc-0.4.so.0",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib/x86_64", 0x7ffe45dcc500)
> = -1 ENOENT (No such file or directory)
> openat(AT_FDCWD,
> "$PTXDIST/platform-BAG/sysroot-host/bin/../lib/liborc-0.4.so.0",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> stat("$PTXDIST/platform-BAG/sysroot-host/bin/../lib", {st_mode=S_IFDIR|0755,
> st_size=4096, ...}) = 0
> 
> where obviously is in vain. It finally resorts to the system's library,
> which in my case has the wrong version (4.28) and bails out.
> 
> Moving the Libraries to sysroot-host/lib solves the problem. Unfortunately I
> cannot provide a patch instantly as I never worked with meson.
> 
> 
> Flo
> -- 
> Machines can do the work, so people have time to think.
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] host-orc-4.30/orcc library location
  2019-10-17  5:51 ` Michael Olbrich
@ 2019-10-18  4:41   ` Florian Faber
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Faber @ 2019-10-18  4:41 UTC (permalink / raw)
  To: ptxdist

Hi Michael,

>> host-orc-4.30 places its libraries in
>> ./sysroot-host/lib/x86_64-linux-gnu/liborc-0.4.so.0
>> ./sysroot-host/lib/x86_64-linux-gnu/liborc-0.4.so.0.30.0
>> ./sysroot-host/lib/x86_64-linux-gnu/liborc-0.4.so
> 
> Hmm, this does not happen here. What's your Linux distribution? I'm
> guessing that some configuration leaks in here. It would be best if I could
> reproduce this here.

I am building on Ubuntu 19.04. I am not sure wether this happened before 
but never showed up as an issue, it just came up now since the host 
system uses 4.28.


Flo
-- 
Machines can do the work, so people have time to think.

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2019-10-18  4:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-17  5:32 [ptxdist] host-orc-4.30/orcc library location Florian Faber
2019-10-17  5:51 ` Michael Olbrich
2019-10-18  4:41   ` Florian Faber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox