From: "Ludovic Courtès" <ludo@gnu.org>
To: "Andréas Livet" <andreas@livet.me>
Cc: 36276@debbugs.gnu.org
Subject: bug#36276: Not found .so files in bundle made by guix pack
Date: Mon, 24 Jun 2019 21:19:52 +0200 [thread overview]
Message-ID: <87sgry7puv.fsf@gnu.org> (raw)
In-Reply-To: <70570cd6-1a97-8acc-6575-cf9a5329fc33@livet.me> ("Andréas Livet"'s message of "Mon, 24 Jun 2019 18:10:00 +0200")
Hello,
Andréas Livet <andreas@livet.me> skribis:
> Found a solution !
>
> https://superuser.com/a/1348051
Good! So you ran:
strip --remove-section=.note.ABI-tag \
./gnu/store/…/lib/libQt5Core.so.5
right?
Indeed the .so file produced by Guix has this section:
--8<---------------cut here---------------start------------->8---
$ file -L /gnu/store/y1nlilwa34wqvmvmraggwv12jfdp0kya-qtbase-5.11.3/lib/libQt5Core.so
/gnu/store/y1nlilwa34wqvmvmraggwv12jfdp0kya-qtbase-5.11.3/lib/libQt5Core.so: ELF 64-bit LSB pie executable x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/ld-linux-x86-64.so.2, for GNU/Linux 3.16.0, stripped
--8<---------------cut here---------------end--------------->8---
… which reflects in the “for GNU/Linux 3.16.0” that we see above.
What does “uname -r” return on this CentOS machine? I’m guessing it’s
older than 3.16.0.
The effect of the ‘strip’ command is that libQt5Base.so can be loaded,
but some functionality maybe missing (things that use the ‘renameat2’
system call specifically; see below.)
> Do you think it is related to guix pack in some way ?
I researched it a bit and in qtbase, in
‘src/corelib/global/minimum-linux_p.h’, we can see this:
--8<---------------cut here---------------start------------->8---
#if QT_CONFIG(getentropy)
# define MINLINUX_MAJOR 3
# define MINLINUX_MINOR 17
# define MINLINUX_PATCH 0
#elif QT_CONFIG(renameat2)
# define MINLINUX_MAJOR 3
# define MINLINUX_MINOR 16
# define MINLINUX_PATCH 0
#else
# define MINLINUX_MAJOR 2
# define MINLINUX_MINOR 6
# define MINLINUX_PATCH 28
#endif
--8<---------------cut here---------------end--------------->8---
Since we build Qt with ‘renameat2’ support, Qt effectively requires a
Linux kernel >= 3.16.0.
We could build it without that requirement; 3.16.0 is already rather
old, so I’m not sure we should do it.
Thoughts?
(Note that the Guix package already has a patch to allow it to work with
kernels < 4.11.)
Ludo’.
next prev parent reply other threads:[~2019-06-24 19:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-18 10:07 bug#36276: Not found .so files in bundle made by guix pack Andréas Livet
2019-06-18 13:51 ` Ludovic Courtès
2019-06-18 20:21 ` Andréas Livet
2019-06-19 11:05 ` Andréas Livet
2019-06-19 15:51 ` Ludovic Courtès
2019-06-20 18:25 ` Andréas Livet
2019-06-21 14:47 ` Ludovic Courtès
2019-06-24 16:10 ` Andréas Livet
2019-06-24 19:19 ` Ludovic Courtès [this message]
2019-06-25 8:38 ` Andréas Livet
2019-06-25 11:34 ` Ricardo Wurmus
2019-06-25 14:06 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgry7puv.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=36276@debbugs.gnu.org \
--cc=andreas@livet.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.