Bug 193643 - [GTK][WPE] libgcrypt-1.7.6 can't be compiled on Ubuntu 18.10
Summary: [GTK][WPE] libgcrypt-1.7.6 can't be compiled on Ubuntu 18.10
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-20 20:03 PST by Fujii Hironori
Modified: 2019-02-05 08:03 PST (History)
8 users (show)

See Also:


Attachments
Patch to bump libgcrypt (2.32 KB, patch)
2019-01-20 21:01 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2019-01-20 20:03:51 PST
[GTK][WPE] libgcrypt-1.7.6 can't be compiled on Ubuntu 18.10

update-webkitgtk-libs is failing with the following error.

>  /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/fujii/webkit/ga/WebKitBuild/DependenciesGTK/Source/libgcrypt-1.7.6/cipher -I..  -I../src -I/home/fujii/webkit/ga/WebKitBuild/DependenciesGTK/Source/libgcrypt-1.7.6/src  -I/home/fujii/webkit/ga/WebKitBuild/DependenciesGTK/Root/include -Wno-error -O2 -g1 -fvisibility=hidden -Wall -MT camellia.lo -MD -MP -MF .deps/camellia.Tpo -c -o camellia.lo /home/fujii/webkit/ga/WebKitBuild/DependenciesGTK/Source/libgcrypt-1.7.6/cipher/camellia.c
> In file included from /usr/include/features.h:424,
>                  from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
>                  from /usr/include/stdio.h:27,
>                  from /home/fujii/webkit/ga/WebKitBuild/DependenciesGTK/Source/libgcrypt-1.7.6/cipher/rijndael-ssse3-amd64.c:38:
> /home/fujii/webkit/ga/WebKitBuild/DependenciesGTK/Source/libgcrypt-1.7.6/cipher/rijndael-ssse3-amd64.c: In function '_gcry_aes_ssse3_do_setkey':
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:31:1: error: inlining failed in call to always_inline 'memcpy': target specific option mismatch
>  __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
>  ^~~~~
Comment 1 Fujii Hironori 2019-01-20 20:04:26 PST
I'm using GCC 8.2.0 and Ubuntu 18.10.

> fujii@ubuntu $ gcc --version                                                                                                                                                                                                                              ~/tmp/libgcrypt-1.8.4
> gcc (Ubuntu 8.2.0-7ubuntu1) 8.2.0
> Copyright (C) 2018 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> fujii@ubuntu $ lsb_release -a                                                                                                                                                                                                                             ~/tmp/libgcrypt-1.8.4
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 18.10
> Release:        18.10
> Codename:       cosmic
> fujii@ubuntu $                                                                                                                                                                                                                                            ~/tmp/libgcrypt-1.8.4
Comment 2 Fujii Hironori 2019-01-20 20:05:45 PST
I've confirmed libgcrypt-1.8.4.tar.bz2 can compile.
The following commit removed the memcpy of _gcry_aes_ssse3_do_setkey.
https://github.com/gpg/libgcrypt/commit/54c57bc49edb5c00e9ed8103cc4837bb72c5e863
Comment 3 Fujii Hironori 2019-01-20 20:14:04 PST
I've found openSUSE is working around a similar issue by setting -U_FORTIFY_SOURCE to CFLAGS.
https://www.mail-archive.com/opensuse-commit@opensuse.org/msg135244.html
I've confirmed this trick can address the issue of libgcrypt-1.7.6.tar.bz2 for me.
Comment 4 Fujii Hironori 2019-01-20 21:01:43 PST
Created attachment 359669 [details]
Patch to bump libgcrypt
Comment 5 Fujii Hironori 2019-01-21 17:19:32 PST
Comment on attachment 359669 [details]
Patch to bump libgcrypt

Clearing flags on attachment: 359669

Committed r240245: <https://trac.webkit.org/changeset/240245>
Comment 6 Fujii Hironori 2019-01-21 17:19:35 PST
All reviewed patches have been landed.  Closing bug.