bug#34431: Qt fails to build

2019-02-13 Thread Andreas Enge
On Tue, Feb 12, 2019 at 05:59:24PM +0100, Ricardo Wurmus wrote:
> > Danny Milosavljevic  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






bug#34431: Qt fails to build

2019-02-12 Thread Ricardo Wurmus


Ludovic Courtès  writes:

> Danny Milosavljevic  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.0 +0300
>> +++ b/src/corelib/global/minimum-linux_p.h  2018-12-17 
>> 13:25:38.176823753 +0300
>> @@ -75,14 +75,9 @@ QT_BEGIN_NAMESPACE
>>   * - accept42.6.28
>>   * - renameat2  3.16QT_CONFIG(renameat2)
>>   * - getrandom  3.17
>> QT_CONFIG(getentropy)
>> - * - statx  4.11QT_CONFIG(statx)
>>   */
>>
>> -#if QT_CONFIG(statx)
>> -#  define MINLINUX_MAJOR4
>> -#  define MINLINUX_MINOR11
>> -#  define MINLINUX_PATCH0
>> -#elif QT_CONFIG(getentropy)
>> +#if QT_CONFIG(getentropy)
>>  #  define MINLINUX_MAJOR3
>>  #  define MINLINUX_MINOR17
>>  #  define MINLINUX_PATCH0
>
> 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






bug#34431: Qt fails to build

2019-02-12 Thread Ludovic Courtès
Danny Milosavljevic  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.0 
> +0300
> +++ b/src/corelib/global/minimum-linux_p.h  2018-12-17 13:25:38.176823753 
> +0300
> @@ -75,14 +75,9 @@ QT_BEGIN_NAMESPACE
>   * - accept42.6.28
>   * - renameat2  3.16QT_CONFIG(renameat2)
>   * - getrandom  3.17QT_CONFIG(getentropy)
> - * - statx  4.11QT_CONFIG(statx)
>   */
>
> -#if QT_CONFIG(statx)
> -#  define MINLINUX_MAJOR4
> -#  define MINLINUX_MINOR11
> -#  define MINLINUX_PATCH0
> -#elif QT_CONFIG(getentropy)
> +#if QT_CONFIG(getentropy)
>  #  define MINLINUX_MAJOR3
>  #  define MINLINUX_MINOR17
>  #  define MINLINUX_PATCH0

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’.





bug#34431: Qt fails to build

2019-02-12 Thread Andreas Enge
On Mon, Feb 11, 2019 at 04:27:38PM +0100, Andreas Enge wrote:
> 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






bug#34431: Qt fails to build

2019-02-11 Thread Andreas Enge
Hello Danny,

On Mon, Feb 11, 2019 at 12:41:45PM +0100, Danny Milosavljevic wrote:
> maybe https://bugs.gentoo.org/672856 is related.
> 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






bug#34431: Qt fails to build

2019-02-11 Thread Danny Milosavljevic
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.0 
+0300
+++ b/src/corelib/global/minimum-linux_p.h  2018-12-17 13:25:38.176823753 
+0300
@@ -75,14 +75,9 @@ QT_BEGIN_NAMESPACE
  * - accept42.6.28
  * - renameat2  3.16QT_CONFIG(renameat2)
  * - getrandom  3.17QT_CONFIG(getentropy)
- * - statx  4.11QT_CONFIG(statx)
  */

-#if QT_CONFIG(statx)
-#  define MINLINUX_MAJOR4
-#  define MINLINUX_MINOR11
-#  define MINLINUX_PATCH0
-#elif QT_CONFIG(getentropy)
+#if QT_CONFIG(getentropy)
 #  define MINLINUX_MAJOR3
 #  define MINLINUX_MINOR17
 #  define MINLINUX_PATCH0


pgpetNVBydGpB.pgp
Description: OpenPGP digital signature


bug#34431: Qt fails to build

2019-02-11 Thread Danny Milosavljevic
Hello Andreas,

maybe https://bugs.gentoo.org/672856 is related.

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?


pgpg0xQVe1ey7.pgp
Description: OpenPGP digital signature


bug#34431: Qt fails to build

2019-02-11 Thread Andreas Enge
Hello,

qt currently fails to build for me.

$ guix describe
Generation 11   10. Februar 2019 09:32:33   (aktuell)
  guix 50a93ad
Repository-URL: https://git.savannah.gnu.org/git/guix.git
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 # …)
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 `(#)'.
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