unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Andreas Enge <andreas@enge.fr>
Cc: 24404@debbugs.gnu.org
Subject: bug#24404: "calibre" package fails to build.
Date: Thu, 2 Aug 2018 18:00:54 +0300	[thread overview]
Message-ID: <20180802150054.GE13776@macbook41> (raw)
In-Reply-To: <20180802123020.GA26124@jurong>

[-- Attachment #1: Type: text/plain, Size: 3732 bytes --]

On Thu, Aug 02, 2018 at 02:30:20PM +0200, Andreas Enge wrote:
> Hello Efraim,
> 
> thanks for all your work on the patch - you should have added a
> "Co-authored-by" line!
> 
> On Wed, Aug 01, 2018 at 07:41:31PM +0300, Efraim Flashner wrote:
> > > The new qtwebkit fails to build for me. This is the tail of the output:
> 
> For me it also fails on x86_64, but due to a lack of disk space. The build
> directory fills 12 GB!!!
> 

How many cores do you have? My 6 core aarch64 board has 4GB of ram and
8GB of swap, and regularly used 4GB of the swap during building. Do you
have any swap?

> $ du -h /tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/lib/libQt5WebKit.so.5.212.0
> 2,6G	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/lib/libQt5WebKit.so.5.212.0
> 
> So apparently the resulting library has more then 2 GB?!
> 

$ du -h /gnu/store/n8ml4vp099ffc48i8vv1zjhzn34zfcvb-qtwebkit-5.212.0-alpha2/lib/libQt5WebKit.so.5.212.0
48M     /gnu/store/n8ml4vp099ffc48i8vv1zjhzn34zfcvb-qtwebkit-5.212.0-alpha2/lib/libQt5WebKit.so.5.212.0

It'll probably go down if/when it finishes linking

> $ du -smc /tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/*
> 1	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/CMakeFiles
> 1	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/CTestTestfile.cmake
> 2034	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/JavaScriptCore
> 1	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/Makefile
> 1	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/Qt5WebKitConfig.cmake
> 1	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/Qt5WebKitConfigVersion.cmake
> 1	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/Qt5WebKitWidgetsConfig.cmake
> 1	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/Qt5WebKitWidgetsConfigVersion.cmake
> 5	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/ThirdParty
> 16	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/WTF
> 3130	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/WebCore
> 140	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/WebKit
> 700	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/WebKit2
> 1	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/cmake_install.cmake
> 1	/tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/cmake_uninstall.cmake
> 6022	total
> 
> This is also suspicious. Where are these 6 GB of "Source" coming from?
> The source of the package itself has only 13 MB.
> 
> All this time and space just to be able to read and convert a few ebooks!
> 
> Andreas
> 

I've been looking a bit into low resource machines and I've come across
these two posts from the binutils bug tracker:

link fewer items at a time:
https://sourceware.org/bugzilla/show_bug.cgi?id=12682#c2

drop things from memory after linking them:
https://sourceware.org/bugzilla/show_bug.cgi?id=22831#c14

my favorite quote from one of the threads (referring to webkit):
some of debian's smaller build systems now spend SEVERAL DAYS performing the
linker phase for these insanely-large binaries.

I can't think of a package right now that I can test these out on and
watch, with a fast build time and excessively high ram usage, but
qtwebkit seems to be an ok choice actually try it out on. It seems much
much better than turning off parallel building, since I'm pretty sure
there's a high memory to core used ratio for this package.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2018-08-02 15:02 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180628170155.11a28321@mailbox.org>
     [not found] ` <20180721173203.GA10747@jurong>
2018-07-21 18:13   ` bug#24404: "calibre" package fails to build Andreas Enge
     [not found]   ` <20180721181358.GA892@jurong>
2018-07-21 18:19     ` Andreas Enge
2018-07-21 18:38     ` Efraim Flashner
     [not found]     ` <20180721183830.GP4585@macbook41>
2018-07-21 18:48       ` Andreas Enge
     [not found]       ` <20180721184822.GA12005@jurong>
2018-07-21 18:52         ` Efraim Flashner
     [not found]         ` <20180721185225.GQ4585@macbook41>
2018-07-21 20:34           ` Andreas Enge
     [not found]           ` <20180721203448.GA6314@jurong>
2018-07-21 20:42             ` Andreas Enge
2018-07-22  9:49               ` Andreas Enge
     [not found]               ` <20180722094914.GA31191@jurong>
2018-08-01 10:17                 ` Efraim Flashner
     [not found]                 ` <20180801101739.GB31156@macbook41>
2018-08-01 12:46                   ` Brendan Tildesley
2018-08-01 16:41                     ` Efraim Flashner
2018-08-02 12:30                       ` Andreas Enge
2018-08-02 15:00                         ` Efraim Flashner [this message]
2018-08-02 15:07                           ` Andreas Enge
2018-08-02 16:22                             ` Andreas Enge
2018-08-02 16:49                               ` Andreas Enge
2018-08-02 17:04                                 ` Andreas Enge
2018-08-02 17:23                                   ` Andreas Enge
2018-08-02 16:31                             ` Andreas Enge
2019-02-19 22:25   ` bug#32238: Close Andreas Enge
2016-09-10  2:50 bug#24404: Calibre can't find QtWebKitWidgets Leo Famulari
2018-12-08 14:49 ` bug#24404: "calibre" package fails to build Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180802150054.GE13776@macbook41 \
    --to=efraim@flashner.co.il \
    --cc=24404@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).