Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575388 - net-libs/webkit-gtk-2.10.7 fails with memory model cannot be stronger than success memory model for ‘__atomic_compare_exchange’
Summary: net-libs/webkit-gtk-2.10.7 fails with memory model cannot be stronger than su...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugs.webkit.org/show_bug.cgi?...
Whiteboard:
Keywords: UPSTREAM
: 589366 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-22 16:29 UTC by zasire
Modified: 2018-04-14 19:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output from emerge --info =net-libs/webkit-gtk-2.10.7 (emerge--info-webkit-gtk-2.10.7.txt,5.58 KB, text/plain)
2016-02-26 08:34 UTC, sf
Details
Output from emerge --info "=net-libs/webkit-gtk-2.10.7" (webkit-gtk,5.68 KB, text/plain)
2016-02-27 22:54 UTC, Walther
Details
emerge --info net-libs/webkit-gtk (11,7.31 KB, text/plain)
2017-04-07 22:41 UTC, Alexandr Tiurin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zasire 2016-02-22 16:29:54 UTC
While updating webkit-gtk it just failed with the following:

FAILED: /usr/bin/x86_64-pc-linux-gnu-g++  -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DDATA_DIR=\"share\" -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DHAVE_CONFIG_H=1 -DUSER_AGENT_GTK_MAJOR_VERSION=602 -DUSER_AGENT_GTK_MINOR_VERSION=1 -DWEBKITGTK_API_VERSION_STRING=\"4.0\"   -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0 -DNDEBUG -march=native -O2 -pipe -fno-strict-aliasing  -std=c++11 -I/var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/bmalloc -I/var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF -I/var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF/wtf -I/var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF/wtf/dtoa -I/var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF/wtf/text -I/var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF/wtf/threads -I/var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF/wtf/unicode -I/var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/ThirdParty -I. -IDerivedSources -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include    -Wall -Wextra -Wcast-align -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wundef -Wwrite-strings -fPIC -MMD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o -c /var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF/wtf/ParkingLot.cpp
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/atomic:41:0,
                 from /var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF/wtf/Atomics.h:29,
                 from /var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF/wtf/ParkingLot.h:31,
                 from /var/tmp/portage/net-libs/webkit-gtk-2.10.7/work/webkitgtk-2.10.7/Source/WTF/wtf/ParkingLot.cpp:27:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/atomic_base.h: In member function ‘void WTF::WordLock::lock()’:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/atomic_base.h:538:70: error: failure memory model cannot be stronger than success memory model for ‘__atomic_compare_exchange’
  return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, __m1, __m2);
                                                                      ^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/atomic_base.h: In member function ‘void WTF::WordLock::unlock()’:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/atomic_base.h:538:70: error: failure memory model cannot be stronger than success memory model for ‘__atomic_compare_exchange’
  return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, __m1, __m2);
                                                                      ^
ninja: build stopped: subcommand failed.


Reproducible: Always

Actual Results:  
failed while building

Expected Results:  
builds fine
Comment 1 sf 2016-02-26 08:34:29 UTC
Created attachment 426592 [details]
Output from emerge --info =net-libs/webkit-gtk-2.10.7

I can confirm this bug.
Comment 2 Walther 2016-02-27 22:54:02 UTC
Created attachment 426814 [details]
Output from emerge --info "=net-libs/webkit-gtk-2.10.7"

I can confirm as well this bug.
Comment 3 Albert W. Hopkins 2016-03-07 14:59:17 UTC
Does anyone know of a work-around for this issue?  It seems that this issue prevents gnome/stable updates from finishing and masking this version fails because dependencies are not met.
Comment 4 Pacho Ramos gentoo-dev 2016-03-09 15:23:04 UTC
I cannot reproduce this

Also, I see you both are using -Os CFLAG... can you try only with -O2? (also, I see that in one case you are specifying -O2 and -Os at the same time... that doesn't make much sense to me, -Os is like -O2 without the options that will increase the size)
Comment 5 Albert W. Hopkins 2016-03-09 21:14:32 UTC
(In reply to Pacho Ramos from comment #4)
> I cannot reproduce this
> 
> Also, I see you both are using -Os CFLAG... can you try only with -O2?
> (also, I see that in one case you are specifying -O2 and -Os at the same
> time... that doesn't make much sense to me, -Os is like -O2 without the
> options that will increase the size)

... a bit late responding to this:

Yeah, for me changing C(XX)FLAGS to "-O2" works for me.  I sometimes forget I have "-Os" (this is for a virtual machine build) and so I forget to first try "-O2" and it's been a while since "-Os" presented any problems for me.  webkit-gtk finally build with that C(XX)FLAGS change and I'll just put that in /etc/portage/env.
Comment 6 sf 2016-03-10 13:30:07 UTC
Adding -O2 fixed the problem for me, as well. Thanks.
Comment 7 Johannes Buchner 2016-03-11 18:45:37 UTC
I reported this upstream at https://bugs.webkit.org/show_bug.cgi?id=155371

Moving to -O2 is a workaround but not a solution (as setting this affects all packages).
Comment 8 Tim Boshart 2016-03-14 22:08:22 UTC
(In reply to Johannes Buchner from comment #7)
> I reported this upstream at https://bugs.webkit.org/show_bug.cgi?id=155371
> 
> Moving to -O2 is a workaround but not a solution (as setting this affects
> all packages).

I wasn't able to compile webkit-gtk-2.10.7 with -Os with gcc 4.9.3, but when I upgraded gcc to 5.3.0 it compiled with -Os.
Comment 9 Brendan Jurd 2016-06-27 08:03:09 UTC
I can confirm that this build fail is still present with net-libs/webkit-gtk-2.10.9 versus gcc-4.9.3 (both latest "stable" for amd64 at time of writing).

Changing -Os to -O2 in CXXFLAGS seems to be working around it for me as well.
Comment 10 Pacho Ramos gentoo-dev 2016-07-24 12:55:14 UTC
*** Bug 589366 has been marked as a duplicate of this bug. ***
Comment 11 Joerg Schaible 2016-09-16 19:06:47 UTC
Upstream produces now a patch.
Comment 12 Pacho Ramos gentoo-dev 2017-01-21 12:14:44 UTC
What is the status of this with 2.14.x? It seems upstream considers it solved... but per some reports in upstream bug report... maybe it's still happening in some situations :/
Comment 13 Alexandr Tiurin 2017-04-07 22:38:24 UTC
I confirm

---cut----
ParkingLot.cpp
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.9.4/include/g++-v4/atomic:41:0,
                 from /var/tmp/portage/net-libs/webkit-gtk-2.14.5/work/webkitgtk-2.14.5/Source/WTF/wtf/Atomics.h:29,
                 from /var/tmp/portage/net-libs/webkit-gtk-2.14.5/work/webkitgtk-2.14.5/Source/WTF/wtf/ParkingLot.h:31,
                 from /var/tmp/portage/net-libs/webkit-gtk-2.14.5/work/webkitgtk-2.14.5/Source/WTF/wtf/ParkingLot.cpp:27:
/usr/lib/gcc/i686-pc-linux-gnu/4.9.4/include/g++-v4/bits/atomic_base.h: In member function 'void WTF::WordLockBase::lock()':
/usr/lib/gcc/i686-pc-linux-gnu/4.9.4/include/g++-v4/bits/atomic_base.h:538:70: error: failure memory model cannot be stronger than success memory model for '__atomic_compare_exchange'
  return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, __m1, __m2);
                                                                      ^
/usr/lib/gcc/i686-pc-linux-gnu/4.9.4/include/g++-v4/bits/atomic_base.h: In member function 'void WTF::WordLockBase::unlock()':
/usr/lib/gcc/i686-pc-linux-gnu/4.9.4/include/g++-v4/bits/atomic_base.h:538:70: error: failure memory model cannot be stronger than success memory model for '__atomic_compare_exchange'
  return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, __m1, __m2);
                                                                      ^
ninja: build stopped: subcommand failed.
 * ERROR: net-libs/webkit-gtk-2.14.5::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 5425:  Called cmake-utils_src_compile
 *   environment, line 1491:  Called _cmake_execute_optionally 'src_compile'
 *   environment, line  532:  Called enable_cmake-utils_src_compile
 *   environment, line 2075:  Called cmake-utils_src_make
 *   environment, line 1506:  Called _cmake_ninja_src_make
 *   environment, line  588:  Called die
 * The specific snippet of code:
 *       "$@" || die
 * 
 * If you need support, post the output of `emerge --info '=net-libs/webkit-gtk-2.14.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/webkit-gtk-2.14.5::gentoo'`.
 * The complete build log is located at '/var/log/portage/net-libs:webkit-gtk-2.14.5:20170407-222247.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-2.14.5/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/webkit-gtk-2.14.5/work/webkit-gtk-2.14.5_build'
 * S: '/var/tmp/portage/net-libs/webkit-gtk-2.14.5/work/webkitgtk-2.14.5'
Comment 14 Alexandr Tiurin 2017-04-07 22:41:38 UTC
Created attachment 469448 [details]
emerge --info net-libs/webkit-gtk
Comment 15 Mart Raudsepp gentoo-dev 2018-02-23 06:13:03 UTC
Is this still an issue with webkit-gtk-2.18.6 (or newer if looking later)?
Comment 16 Walther 2018-04-02 23:44:26 UTC
webkit-gtk-2.18.6 compiles now fine in my system. Most likely because the currently stable gcc version is now 6.4.0, so this bug shouldn't be hitting stable users anymore.
Comment 17 Mart Raudsepp gentoo-dev 2018-04-14 19:24:07 UTC
Lets call this obsolete then (especially with icu + 17.0 profiles). Glad it's working now.