Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343249 - net-libs/webkit-gtk-1.2.5 parallel build fails on some cases
Summary: net-libs/webkit-gtk-1.2.5 parallel build fails on some cases
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugs.webkit.org/show_bug.cgi?...
Whiteboard:
Keywords: InVCS
: 344121 347035 378891 384527 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-29 13:25 UTC by b1254633
Modified: 2011-09-27 13:03 UTC (History)
24 users (show)

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


Attachments
build.log (build.log,191.49 KB, text/plain)
2010-10-29 13:26 UTC, b1254633
Details
emerge --info (emergeinfo,4.73 KB, text/plain)
2010-10-29 13:26 UTC, b1254633
Details
changeset_r71535.diff (changeset_r71535.diff,1.25 KB, patch)
2010-11-08 21:10 UTC, Pacho Ramos
Details | Diff
my emerge info + -pqv result appended (emerge.inf,4.81 KB, text/plain)
2010-12-13 14:35 UTC, Geoff Madden
Details
buildlog for webkit-gtk-1.2.5 (build.log,190.47 KB, text/plain)
2010-12-13 14:36 UTC, Geoff Madden
Details
environment file for x86 (environment,119.11 KB, text/plain)
2010-12-13 14:37 UTC, Geoff Madden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description b1254633 2010-10-29 13:25:12 UTC
see attachments

Reproducible: Always
Comment 1 b1254633 2010-10-29 13:26:01 UTC
Created attachment 252479 [details]
build.log
Comment 2 b1254633 2010-10-29 13:26:52 UTC
Created attachment 252481 [details]
emerge --info
Comment 3 Marius Schäfer 2010-10-29 15:56:01 UTC
Had the same issue. MAKEOPTS="-j1" did it for me (had -j2).
Comment 4 b1254633 2010-10-29 20:14:12 UTC
YEAH! With MAKEOPTS="-j1" it compiles. How can i force this options in the ebuild?
Comment 5 Oschtan 2010-10-31 07:48:23 UTC
Hm. Some with MAKEOPTS="-j4" it compiles.
Comment 6 Pacho Ramos gentoo-dev 2010-10-31 10:53:44 UTC
Maybe upstream should be aware of this parallel make issue :-/
Comment 7 Oschtan 2010-10-31 16:51:34 UTC
Hmm. Successful assembly with MAKEOPTS = "-j4" with gcc-4.5.1 (AMD Phenon x3), and failed with MAKEOPTS = "-j3" with gcc-4.4.4-r1 (Intel Core Duo)...
Comment 8 Pacho Ramos gentoo-dev 2010-11-06 10:38:27 UTC
*** Bug 344121 has been marked as a duplicate of this bug. ***
Comment 9 Martin Rapavý 2010-11-07 16:32:24 UTC
(In reply to comment #7)
> Hmm. Successful assembly with MAKEOPTS = "-j4" with gcc-4.5.1 (AMD Phenon x3),
> 
> and failed with MAKEOPTS = "-j3" with gcc-4.4.4-r1 (Intel Core Duo)...
> 

Indeed, this is most likely not "always reproducible", as I can successfully link the modules on my laptop with MAKEOPTS="-j2" (AMD Turion x2 in long mode), also with MAKEOPTS="-j4" on my desktop computer (AMD Phenom II x4 in long mode), although both computers have gcc-4.5.1 and make-3.82, which are still flagged as unstable in the Portage main tree.

Maybe comrade b1254633 should first install gcc-4.5.1, switch to it, and then try it again, before me make further fuss about this. 
Comment 10 Pacho Ramos gentoo-dev 2010-11-08 21:10:41 UTC
Created attachment 253705 [details, diff]
changeset_r71535.diff

Upstream patch that could solve this
Comment 11 Zac Medico gentoo-dev 2010-11-14 01:49:16 UTC
(In reply to comment #10)
> Created an attachment (id=253705) [details]
> changeset_r71535.diff
> 
> Upstream patch that could solve this
> 

This patch didn't make any difference for me, but appending -j1 to MAKEOPTS worked.
Comment 12 Agostino Sarubbo gentoo-dev 2010-11-28 08:37:10 UTC
*** Bug 347035 has been marked as a duplicate of this bug. ***
Comment 13 William Keaney 2010-11-28 15:11:58 UTC
Failed with MAKEOPTS="-j3" on x86_64-pc-linux-gnu-4.5.1.
Could it be an issue with odd threads somehow?  It seems that the people reporting success are using even thread numbers.
Comment 14 Benjamin Lee 2010-11-29 01:15:33 UTC
I am experiencing this problem also.  Using MAKEOPTS="-j4", the build seems to succeed about 25% of the time.
Comment 15 Alexandre Hannud Abdo 2010-12-01 01:31:13 UTC
I have exactly the same problem here, with

gcc-4.5.1-r1
libtool-2.4-r1
MAKEOPTS="-j4"

using MAKEOPTS="-j1" it does compile fine.
Comment 16 Dennis Schridde 2010-12-01 11:35:45 UTC
Here, the error message is always:
libtool: link: cannot find the library `libwebkit-1.0.la' or unhandled argument `libwebkit-1.0.la'
(Mentioning for documentary purposes, since I could not find a matching report before, apart from a dupe of this.)
Comment 17 Sergiy Borodych 2010-12-05 10:26:35 UTC
same issue for me
and MAKEOPTS="-j1" help
Comment 18 Marek Sapota 2010-12-06 09:21:38 UTC
-j1 also worked for me.  With -j2 it didn't build (tried several times).
Comment 19 Geoff Madden 2010-12-13 14:33:09 UTC
My build is falling over at a different point to the others I think in that it's unable to find libwebkit-1.0.1a . My MAKEOPTS="-j2". will try again tommorrow as it's 01:00 and bed is a calling, with opts=-j1 to see if a difference is made. I will attach my build log environment and info as well tonight.
Comment 20 Geoff Madden 2010-12-13 14:35:32 UTC
Created attachment 257030 [details]
my emerge info + -pqv result appended
Comment 21 Geoff Madden 2010-12-13 14:36:33 UTC
Created attachment 257033 [details]
buildlog for webkit-gtk-1.2.5
Comment 22 Geoff Madden 2010-12-13 14:37:28 UTC
Created attachment 257034 [details]
environment file for x86
Comment 23 Geoff Madden 2010-12-14 08:38:01 UTC
Ok -j1 worked for me also. edited /etc/portage/package.use to reflect the change in conditions,so that further builds of webkit-gtk get the same environment to work in.
Comment 24 William Keaney 2010-12-14 13:51:46 UTC
(In reply to comment #23)
> Ok -j1 worked for me also. edited /etc/portage/package.use to reflect the
> change in conditions,so that further builds of webkit-gtk get the same
> environment to work in.
> 
package.use is not for modifying arbitrary portage variables, it's for modifying USE.

/etc/portage/env/<category>/<package-name>[-package-version][.env] will allow you to modify other variables, such as MAKEOPTS and CFLAGS on a per-package basis.
Note that, last I read, this was undocumented and not officially supported behavior.
Comment 25 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-21 16:15:42 UTC
The problem would most likely by solved by the simple fact of not building unittest programs at make time but at make check as it is supposed to happen.
Comment 26 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-22 22:58:22 UTC
+  22 Dec 2010; Gilles Dartiguelongue <eva@gentoo.org> webkit-gtk-1.2.5.ebuild,
+  +files/webkit-gtk-1.2.5-tests-build.patch:
+  Make sure tests are built only when needed, bug #343249. Pin slotted
+  dependencies to needed slots. Replace addpredict by appropriate env variable
+  adjustement and do the same for tests.
+
Building tests while building the rest of the program being stupid for downstream and only justified by lazyness upstream, I've patched the ebuild to only build tests as required which fixes the problem altogether. If you still get parallel build failures but don't see the exact same error message, please open a new bug. Thanks all.
Comment 27 Keith Harrison 2011-05-22 21:31:14 UTC
I can't reopen but I'm getting this again with version 1.2.7:

  CC     WebKitTools/GtkLauncher/Programs_GtkLauncher-main.o
  CXX    WebKitTools/DumpRenderTree/Programs_DumpRenderTree-AccessibilityController.o
  CXX    WebKitTools/DumpRenderTree/Programs_DumpRenderTree-AccessibilityUIElement.o
  CXX    WebKitTools/DumpRenderTree/Programs_DumpRenderTree-GCController.o
  CXX    WebKitTools/DumpRenderTree/Programs_DumpRenderTree-LayoutTestController.o
  CXX    WebKitTools/DumpRenderTree/Programs_DumpRenderTree-WorkQueue.o
  CXX    WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-AccessibilityControllerGtk.o
  CXX    WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-AccessibilityUIElementGtk.o
  CXX    WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-DumpRenderTree.o
  CXX    WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-EventSender.o
  CXX    WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-GCControllerGtk.o
  CXX    WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-LayoutTestControllerGtk.o
  CXX    WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-WorkQueueItemGtk.o
/bin/mkdir -p ./.deps/DerivedSources
  CXXLD  libJavaScriptCore.la
  CXXLD  TestNetscapePlugin/libtestnetscapeplugin.la
  CXXLD  Programs/jsc
  CCLD   Programs/minidom
  CCLD   Programs/GtkLauncher
libtool: link: cannot find the library `libwebkit-1.0.la' or unhandled argument `libwebkit-1.0.la'
make[1]: *** [Programs/GtkLauncher] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/net-libs/webkit-gtk-1.2.7/work/webkit-1.2.7'
make: *** [all] Error 2
emake failed
 * ERROR: net-libs/webkit-gtk-1.2.7 failed (compile phase):
 *   Compile failed
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 3078:  Called die
 * The specific snippet of code:
 *       emake XDG_DATA_HOME="${T}/.local" || die "Compile failed"
 *
 * If you need support, post the output of 'emerge --info =net-libs/webkit-gtk-1.2.7',
 * the complete build log and the output of 'emerge -pqv =net-libs/webkit-gtk-1.2.7'.
 * The complete build log is located at '/var/tmp/portage/net-libs/webkit-gtk-1.2.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-1.2.7/temp/environment'.
 * S: '/var/tmp/portage/net-libs/webkit-gtk-1.2.7/work/webkit-1.2.7'
Comment 28 Erik 2011-07-28 12:03:53 UTC
(In reply to comment #27)
> I can't reopen but I'm getting this again with version 1.2.7:

Me too.
Comment 29 Pacho Ramos gentoo-dev 2011-07-29 17:51:54 UTC
Looks like all reports are related with 1.2.x and I cannot reproduce neither with 1.4 => please retry with 1.4.2-r200
Comment 30 Markus Fischer 2011-07-30 14:30:18 UTC
I had the same problem on x86_64-pc-linux-gnu-4.4.5 (with MAKEOPTS="-j3")
I could solve it by downgrading make from 3.82 to 3.81-r2 leaving MAKEOPTS untouched.
Comment 31 Pacho Ramos gentoo-dev 2011-08-13 12:51:25 UTC
*** Bug 378891 has been marked as a duplicate of this bug. ***
Comment 32 Pacho Ramos gentoo-dev 2011-08-13 12:53:42 UTC
dirtyepic, can you please commit the "MAKEOPTS=-j1" hack for 1.2.x ebuilds yourself? 

Leave 1.4.x as-is because it looks to fix the parallel build problem (and upstream won't fix 1.2.x series anymore... we should stabilize webkit-1.4.x soon but until then and since this looks to hit a lot of people per comments and duplicates...) 

Thanks a lot
Comment 33 Ryan Hill (RETIRED) gentoo-dev 2011-08-14 02:22:59 UTC
Um, I just reopened it because people kept complaining.  I don't think I even have webkit installed anymore.
Comment 34 Pacho Ramos gentoo-dev 2011-08-31 13:11:40 UTC
+  31 Aug 2011; Pacho Ramos <pacho@gentoo.org> webkit-gtk-1.2.7.ebuild:
+  Parallel build fails for 1.2.x, seems fixed in 1.4.x (bug #343249).
+
Comment 35 Pacho Ramos gentoo-dev 2011-09-27 13:03:15 UTC
*** Bug 384527 has been marked as a duplicate of this bug. ***