Qt fails to build

  • Done
  • quality assurance status badge
Details
4 participants
  • Andreas Enge
  • Danny Milosavljevic
  • Ludovic Courtès
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Andreas Enge
Severity
normal

Debbugs page

Andreas Enge wrote 6 years ago
(address . bug-guix@gnu.org)
20190211112015.GA9273@jurong
Hello,

qt currently fails to build for me.

$ guix describe
Generation 11 10. Februar 2019 09:32:33 (aktuell)
guix 50a93ad
Commit: 50a93adc05b611836e740c4b55571890f4c6770a

$ guix build qtbase

...
/tmp/guix-build-qtbase-5.11.3.drv-0/qtbase-everywhere-src-5.11.3/bin/qvkgen: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
make[2]: *** [Makefile:1631: vulkan/qvulkanfunctions.h] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/guix-build-qtbase-5.11.3.drv-0/qtbase-everywhere-src-5.11.3/src/gui'
make[1]: *** [Makefile:448: sub-gui-make_first] Error 2
make[1]: Leaving directory '/tmp/guix-build-qtbase-5.11.3.drv-0/qtbase-everywhere-src-5.11.3/src'
make: *** [Makefile:49: sub-src-make_first] Error 2
Backtrace:
4 (primitive-load "/gnu/store/sknkcqbgchxippcvpibh33qz15p…")
In ice-9/eval.scm:
191:35 3 (_ _)
In srfi/srfi-1.scm:
863:16 2 (every1 #<procedure a8d0a0 at /gnu/store/gfprsx2m62cvq…> …)
In /gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/gnu-build-system.scm:
799:28 1 (_ _)
In /gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/utils.scm:
616:6 0 (invoke _ . _)

/gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/utils.scm:616:6: In procedure invoke:
Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "make" arguments: ("-j" "4") exit-status: 2 term-signal: #f stop-signal: #f] a38780>)'.
builder for `/gnu/store/2cqb7nhwii2vcykvw6q28zg4rbhffvdj-qtbase-5.11.3.drv' failed with exit code 1
build of /gnu/store/2cqb7nhwii2vcykvw6q28zg4rbhffvdj-qtbase-5.11.3.drv failed

Andreas
Danny Milosavljevic wrote 6 years ago
(name . Andreas Enge)(address . andreas@enge.fr)(address . 34431@debbugs.gnu.org)
20190211124132.237dfb15@scratchpost.org
Hello Andreas,


They say:

Toggle quote (3 lines)
>/usr/lib/libQt5Core.so.5.11.3: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.11.0, stripped
>Nice of upstream to make significant changes to the kernel requirement on a point release.

What Linux kernel version do you have?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlxhX3kACgkQ5xo1VCww
uqWoOwf+J3oxTuQgY8EDw0RePS96FhDMK6lIyRjDkwzdGiOEdZGTOgX46q1VCt7/
ZdAElBZ8SAjSF3F5aIrtyFIUQIB5WeDhquu+tQO3EjSLmsmRK0NTCzYumHE9do8i
LIuy2YrjommLXZKUQEnBcFx4aqkCas4vIGWimsTmeOgdVtYdL/OKnUKNPG7szhFm
DYLNmZYIIfFKOo/SkEAeZ6MYmF8oamtoskaiootaCWl7Qf+I4XMLYe4oOW0xpaKg
sn4sUAtyVzOeGbzhFlnXN0mkG7h2VJ8+LQ9I/Qt6hTr9aVGc0JgWi6CRX4NQ2iJ9
srDf9FaE6A4Do2yfFgDkgygLhMt8ug==
=Fec7
-----END PGP SIGNATURE-----


Danny Milosavljevic wrote 6 years ago
(name . Andreas Enge)(address . andreas@enge.fr)(address . 34431@debbugs.gnu.org)
20190211124431.31f47135@scratchpost.org

diff -Naurp a/src/corelib/global/minimum-linux_p.h b/src/corelib/global/minimum-linux_p.h
--- a/src/corelib/global/minimum-linux_p.h 2018-11-25 15:51:11.000000000 +0300
+++ b/src/corelib/global/minimum-linux_p.h 2018-12-17 13:25:38.176823753 +0300
@@ -75,14 +75,9 @@ QT_BEGIN_NAMESPACE
* - accept4 2.6.28
* - renameat2 3.16 QT_CONFIG(renameat2)
* - getrandom 3.17 QT_CONFIG(getentropy)
- * - statx 4.11 QT_CONFIG(statx)
*/

-#if QT_CONFIG(statx)
-# define MINLINUX_MAJOR 4
-# define MINLINUX_MINOR 11
-# define MINLINUX_PATCH 0
-#elif QT_CONFIG(getentropy)
+#if QT_CONFIG(getentropy)
# define MINLINUX_MAJOR 3
# define MINLINUX_MINOR 17
# define MINLINUX_PATCH 0
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlxhYB8ACgkQ5xo1VCww
uqUV4wf/es3X0zxp/GHLQH5THSUGRFVwvHvFN/KiiPF/PAxoQS5sKd1f8u0ffd3g
OGhNbGnicUAEEspP3rfKVgGwDkCbDNsEYrkdHMbJf0dUntSAwU/rP8YiWIFruriT
005rjVte+lBq2iboMyNOv6McNKAaRsiLo+YiZqurvBI4PiUllrUeV1w+kJ9TMeQt
+ZukR7H08Ep9DW8Y3l5NK2hR3lWbsfJKxegflgsRNw3AlNBKYd2OdJtSCJ3GsBpT
TYNpi0C148svCxFrCU2+3d9KHPnHAYk6gleELqSi6WArRODd5o88ncF5sHJbfoj3
tSUFfBgX/lwkzgh6yJaCSSQfL7PXUw==
=Lo1+
-----END PGP SIGNATURE-----


Andreas Enge wrote 6 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 34431@debbugs.gnu.org)
20190211152738.GA18875@jurong
Hello Danny,

On Mon, Feb 11, 2019 at 12:41:45PM +0100, Danny Milosavljevic wrote:
Toggle quote (6 lines)
> They say:
> >/usr/lib/libQt5Core.so.5.11.3: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.11.0, stripped
> >Nice of upstream to make significant changes to the kernel requirement on a point release.
> What Linux kernel version do you have?

thanks for digging this up!

It happens on my laptop, with kernel 4.9.0. But I thought it also happens
on bayfront (kernel 4.19.1), which offloads to harbourfront (kernel 4.19.8).
I will try the latter two again.

Andreas
Andreas Enge wrote 6 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 34431-done@debbugs.gnu.org)
20190212110824.GA8926@jurong
On Mon, Feb 11, 2019 at 04:27:38PM +0100, Andreas Enge wrote:
Toggle quote (4 lines)
> It happens on my laptop, with kernel 4.9.0. But I thought it also happens
> on bayfront (kernel 4.19.1), which offloads to harbourfront (kernel 4.19.8).
> I will try the latter two again.

Actually I did not remember well, it did compile now on bayfront/harbourfront.
So this seems to be very transient and does not occur on the most recent Guix.
I am closing this bug, and we can open it again if there is a need; the
information on the potential patch will remain online anyway.

Andreas
Closed
Ludovic Courtès wrote 6 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)
87sgwtjbjm.fsf@gnu.org
Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (22 lines)
>
> diff -Naurp a/src/corelib/global/minimum-linux_p.h b/src/corelib/global/minimum-linux_p.h
> --- a/src/corelib/global/minimum-linux_p.h 2018-11-25 15:51:11.000000000 +0300
> +++ b/src/corelib/global/minimum-linux_p.h 2018-12-17 13:25:38.176823753 +0300
> @@ -75,14 +75,9 @@ QT_BEGIN_NAMESPACE
> * - accept4 2.6.28
> * - renameat2 3.16 QT_CONFIG(renameat2)
> * - getrandom 3.17 QT_CONFIG(getentropy)
> - * - statx 4.11 QT_CONFIG(statx)
> */
>
> -#if QT_CONFIG(statx)
> -# define MINLINUX_MAJOR 4
> -# define MINLINUX_MINOR 11
> -# define MINLINUX_PATCH 0
> -#elif QT_CONFIG(getentropy)
> +#if QT_CONFIG(getentropy)
> # define MINLINUX_MAJOR 3
> # define MINLINUX_MINOR 17
> # define MINLINUX_PATCH 0

Qt should definitely not require a kernel more recent than what libc
requires. If this patch solves that, we should probably apply it (in
‘staging’ I guess.)

Thanks,
Ludo’.
Ricardo Wurmus wrote 6 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)
8736otj637.fsf@elephly.net
Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (28 lines)
> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>
>> Possible fix https://672856.bugs.gentoo.org/attachment.cgi?id=557978
>>
>> diff -Naurp a/src/corelib/global/minimum-linux_p.h b/src/corelib/global/minimum-linux_p.h
>> --- a/src/corelib/global/minimum-linux_p.h 2018-11-25 15:51:11.000000000 +0300
>> +++ b/src/corelib/global/minimum-linux_p.h 2018-12-17 13:25:38.176823753 +0300
>> @@ -75,14 +75,9 @@ QT_BEGIN_NAMESPACE
>> * - accept4 2.6.28
>> * - renameat2 3.16 QT_CONFIG(renameat2)
>> * - getrandom 3.17 QT_CONFIG(getentropy)
>> - * - statx 4.11 QT_CONFIG(statx)
>> */
>>
>> -#if QT_CONFIG(statx)
>> -# define MINLINUX_MAJOR 4
>> -# define MINLINUX_MINOR 11
>> -# define MINLINUX_PATCH 0
>> -#elif QT_CONFIG(getentropy)
>> +#if QT_CONFIG(getentropy)
>> # define MINLINUX_MAJOR 3
>> # define MINLINUX_MINOR 17
>> # define MINLINUX_PATCH 0
>
> Qt should definitely not require a kernel more recent than what libc
> requires. If this patch solves that, we should probably apply it (in
> ‘staging’ I guess.)

Oh dear, this would certainly cause problems on RHEL 6 and 7. Thanks
for trying to fix it!

--
Ricardo
Andreas Enge wrote 6 years ago
(name . Ricardo Wurmus)(address . rekado@elephly.net)
20190213233224.GA19846@jurong
On Tue, Feb 12, 2019 at 05:59:24PM +0100, Ricardo Wurmus wrote:
Toggle quote (3 lines)
> > Danny Milosavljevic <dannym@scratchpost.org> skribis:
> >> Possible fix https://672856.bugs.gentoo.org/attachment.cgi?id=557978

The patch makes qtbase build on my laptop, so I pushed it as commit
69c15ad8a46c8e5f319a73ee5891bcd1bf0600c5. The bug can remain closed, I hope.

Thanks again, Danny!

Andreas
?
Your comment

This issue is archived.

To comment on this conversation send an email to 34431@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 34431
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help