From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: bug#24404: "calibre" package fails to build. Date: Thu, 2 Aug 2018 18:00:54 +0300 Message-ID: <20180802150054.GE13776@macbook41> References: <20180721183830.GP4585@macbook41> <20180721184822.GA12005@jurong> <20180721185225.GQ4585@macbook41> <20180721203448.GA6314@jurong> <20180721204211.GA29877@jurong> <20180722094914.GA31191@jurong> <20180801101739.GB31156@macbook41> <79c9e1bb-02e7-8a3c-bc1a-3a14036b1d2f@openmailbox.org> <20180801164131.GA13776@macbook41> <20180802123020.GA26124@jurong> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/aVve/J9H4Wl5yVO" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flF7A-00066K-Hq for bug-guix@gnu.org; Thu, 02 Aug 2018 11:02:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1flF74-0007ZZ-Cb for bug-guix@gnu.org; Thu, 02 Aug 2018 11:02:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1flF74-0007ZL-7x for bug-guix@gnu.org; Thu, 02 Aug 2018 11:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1flF73-0004Ol-Pq for bug-guix@gnu.org; Thu, 02 Aug 2018 11:02:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <20180802123020.GA26124@jurong> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Andreas Enge Cc: 24404@debbugs.gnu.org --/aVve/J9H4Wl5yVO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 02, 2018 at 02:30:20PM +0200, Andreas Enge wrote: > Hello Efraim, >=20 > thanks for all your work on the patch - you should have added a > "Co-authored-by" line! >=20 > 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 outpu= t: >=20 > For me it also fails on x86_64, but due to a lack of disk space. The build > directory fills 12 GB!!! >=20 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/libQt5Web= Kit.so.5.212.0 > 2,6G /tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/lib/libQt5WebKit= =2Eso.5.212.0 >=20 > So apparently the resulting library has more then 2 GB?! >=20 $ 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/CTestTestfil= e.cmake > 2034 /tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/JavaScrip= tCore > 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/Qt5WebKitCon= fig.cmake > 1 /tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/Qt5WebKitCon= figVersion.cmake > 1 /tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/Qt5WebKitWid= getsConfig.cmake > 1 /tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/Qt5WebKitWid= getsConfigVersion.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_instal= l.cmake > 1 /tmp/guix-build-qtwebkit-5.212.0-alpha2.drv-0/build/Source/cmake_uninst= all.cmake > 6022 total >=20 > This is also suspicious. Where are these 6 GB of "Source" coming from? > The source of the package itself has only 13 MB. >=20 > All this time and space just to be able to read and convert a few ebooks! >=20 > Andreas >=20 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=3D12682#c2 drop things from memory after linking them: https://sourceware.org/bugzilla/show_bug.cgi?id=3D22831#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. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --/aVve/J9H4Wl5yVO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAltjHKIACgkQQarn3Mo9 g1E9DQ/9GjKFdtJqX7o+PrbBbgRpOszJsxFNJmvQt9PRDCHNmUxpnYMoStpxpNx5 MademlWjV1h7ISsdGv+k/nRamm6hZdvOPNHpVZ8712t2EJJZR2ixHghYxtIDpQnu XkD69EHdO8j4epfxE0ADWKY69hrXkLh1RPIi5CBITAYSeSK2tzoyXaWeikkX0i6G l/ByPgUGjdt5dhwWbt/kvFrKMNxWBD86oaE1WcWiwPmevM/4tsH7lW4tIOSLX3w6 XAQEb8pcLVmDjPpNIjKuq6cVPzTk9IsREIc3twyQnr5w4pU8fkrppi5fdrKzRo+3 /f92pNTrm5AWitiJ57Q83KAbm2PlyZeA6WAlnbTRyt1IoZuhWsp6D9pqMRBgNEZO 5RCaPf/Fe3G4t0jziPg/2SdEC0GhIK61KK3mk8hQsE79fruG7TYk1PBNkWq8wnvq NVsVfmPaXl29d6TWHCbqgcpo5CbTgTw2Qug3H1gGSt31GsIGO+vZ7fz04i05onj3 6TsB9Ko8vGimwJub5x9Q7O4MmvyNsEmHvArUNjKReyoVplON/ouiQhCL3j/Arog0 u8xFGXC1+GeBKsLrfVQfJVexzvKblDE3WpAOpDg1dRYTr5r5HxDpJxlP12iXvHl6 wmbmIKG1WmQJRe/xLxrGa86VHYbnaBOGfUXqLN/b9tTzs1kM1to= =k3Nm -----END PGP SIGNATURE----- --/aVve/J9H4Wl5yVO--