Debian Bug report logs - #760865
calibre: FTBFS on mips: thread.error: can't start new thread

version graph

Package: src:calibre; Maintainer for src:calibre is Norbert Preining <preining@debian.org>;

Reported by: Emilio Pozuelo Monfort <pochu@debian.org>

Date: Mon, 8 Sep 2014 16:18:12 UTC

Severity: serious

Found in version calibre/2.0.0+dfsg-1

Fixed in version calibre/2.2.0+dfsg-2

Done: Martin Pitt <mpitt@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, pochu@debian.org, debian-mips@lists.debian.org, Miriam Ruiz <little_miry@yahoo.es>:
Bug#760865; Package src:calibre. (Mon, 08 Sep 2014 16:18:16 GMT) (full text, mbox, link).


Acknowledgement sent to Emilio Pozuelo Monfort <pochu@debian.org>:
New Bug report received and forwarded. Copy sent to pochu@debian.org, debian-mips@lists.debian.org, Miriam Ruiz <little_miry@yahoo.es>. (Mon, 08 Sep 2014 16:18:16 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Emilio Pozuelo Monfort <pochu@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: calibre: FTBFS on mips: thread.error: can't start new thread
Date: Mon, 08 Sep 2014 18:07:54 +0200
Source: calibre
Version: 2.0.0+dfsg-1
Severity: serious

Your package has failed to build on mips since version 2.0.0:

####### Building extension freetype #######
Compiling freetype
Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/«BUILDDIR»/calibre-2.2.0+dfsg/setup/__init__.py", line 181, in run_all
    self.run_cmd(self, opts)
  File "/«BUILDDIR»/calibre-2.2.0+dfsg/setup/__init__.py", line 178, in run_cmd
    cmd.run(opts)
  File "/«BUILDDIR»/calibre-2.2.0+dfsg/setup/extensions.py", line 397, in run
    self.build(ext, dest)
  File "/«BUILDDIR»/calibre-2.2.0+dfsg/setup/extensions.py", line 441, in build
    if not parallel_build(jobs, self.info):
  File "/«BUILDDIR»/calibre-2.2.0+dfsg/setup/parallel_build.py", line 32, in parallel_build
    p = Pool(cpu_count)
  File "/usr/lib/python2.7/multiprocessing/dummy/__init__.py", line 151, in Pool
    return ThreadPool(processes, initializer, initargs)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 718, in __init__
    Pool.__init__(self, processes, initializer, initargs)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 159, in __init__
    self._repopulate_pool()
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 223, in _repopulate_pool
    w.start()
  File "/usr/lib/python2.7/multiprocessing/dummy/__init__.py", line 75, in start
    threading.Thread.start(self)
  File "/usr/lib/python2.7/threading.py", line 745, in start
    _start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread
make: *** [common-build-arch] Error 1
debian/rules:14: recipe for target 'common-build-arch' failed
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2

Full logs at:

https://buildd.debian.org/status/logs.php?pkg=calibre&arch=mips



Information forwarded to debian-bugs-dist@lists.debian.org, Miriam Ruiz <little_miry@yahoo.es>:
Bug#760865; Package src:calibre. (Wed, 10 Sep 2014 09:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Copy sent to Miriam Ruiz <little_miry@yahoo.es>. (Wed, 10 Sep 2014 09:39:04 GMT) (full text, mbox, link).


Message #10 received at 760865@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: Emilio Pozuelo Monfort <pochu@debian.org>, 760865@bugs.debian.org
Cc: debian-mips@lists.debian.org
Subject: Re: Bug#760865: calibre: FTBFS on mips: thread.error: can't start new thread
Date: Wed, 10 Sep 2014 11:34:35 +0200
[Message part 1 (text/plain, inline)]
Emilio Pozuelo Monfort [2014-09-08 18:07 +0200]:
> Your package has failed to build on mips since version 2.0.0:
>   File "/usr/lib/python2.7/threading.py", line 745, in start
>     _start_new_thread(self.__bootstrap, ())
> thread.error: can't start new thread

This looks like a bug in the mips kernel/python/buildd. It should be
possible to at least start as many threads as there are CPU cores
(that's what calibre's build system uses to determine how many
parallel build threads to use), but apparently that's not the case.

I'll work around it in calibre to force cpu_count to 1 in the build
system on mips in the meantime.

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
[signature.asc (application/pgp-signature, inline)]

Reply sent to Martin Pitt <mpitt@debian.org>:
You have taken responsibility. (Wed, 10 Sep 2014 10:21:12 GMT) (full text, mbox, link).


Notification sent to Emilio Pozuelo Monfort <pochu@debian.org>:
Bug acknowledged by developer. (Wed, 10 Sep 2014 10:21:12 GMT) (full text, mbox, link).


Message #15 received at 760865-close@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: 760865-close@bugs.debian.org
Subject: Bug#760865: fixed in calibre 2.2.0+dfsg-2
Date: Wed, 10 Sep 2014 10:19:01 +0000
Source: calibre
Source-Version: 2.2.0+dfsg-2

We believe that the bug you reported is fixed in the latest version of
calibre, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 760865@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Pitt <mpitt@debian.org> (supplier of updated calibre package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 10 Sep 2014 12:01:23 +0200
Source: calibre
Binary: calibre calibre-bin
Architecture: source all amd64
Version: 2.2.0+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Miriam Ruiz <little_miry@yahoo.es>
Changed-By: Martin Pitt <mpitt@debian.org>
Description:
 calibre    - e-book converter and library management
 calibre-bin - e-book converter and library management
Closes: 760865
Changes:
 calibre (2.2.0+dfsg-2) unstable; urgency=medium
 .
   * Make libudev-dev and libmtdev-dev linux-any, to fix building on BSD/Hurd.
     (see #760863)
   * Work around broken threading on mips builders. (Closes: #760865)
Checksums-Sha1:
 a2579800a945475e189e9d530f33d10d3ef80790 2637 calibre_2.2.0+dfsg-2.dsc
 6f015286db7e5912637b793a8a5a815aad0ad31d 21884 calibre_2.2.0+dfsg-2.debian.tar.xz
 f02ae9e9dfae2f977efeb67e68b212fd1084d7e0 19454196 calibre_2.2.0+dfsg-2_all.deb
 27da1f6187a4611343b1ccce0cfa04d73d16810b 454232 calibre-bin_2.2.0+dfsg-2_amd64.deb
Checksums-Sha256:
 fdc58435f5199ee236a9c0b0756f1209326aef39af79b7d1f8d9ff34393569d7 2637 calibre_2.2.0+dfsg-2.dsc
 9606aa7292ba48ad04b4fcb20e82283f5baf2b0bd64d8fdcb9662f23667acd6c 21884 calibre_2.2.0+dfsg-2.debian.tar.xz
 5c79dfc0fcd7ea128c453da8219a6715022c9e6c5106b19193f0dc66143e4eee 19454196 calibre_2.2.0+dfsg-2_all.deb
 15767b65910028ee49e2daaef274403cbd122b000c37c5f8c4fc0e5f4bec1748 454232 calibre-bin_2.2.0+dfsg-2_amd64.deb
Files:
 f274e4acc834aad2cdb291906840ea7e 19454196 text extra calibre_2.2.0+dfsg-2_all.deb
 3fb8452d71bce1d8d2285572ffabc16c 454232 text extra calibre-bin_2.2.0+dfsg-2_amd64.deb
 2e5dbca700138676ff242bf61ef7187c 2637 text extra calibre_2.2.0+dfsg-2.dsc
 efcbf926008f406895fa10fc07f79ff6 21884 text extra calibre_2.2.0+dfsg-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUECJ6AAoJENFO8V2v4RNHSFkQAI25NGLTyt5QcdPN0zQSstBF
OJPW3BfJNf2CswhNVmhP7543GUw52AbnYweGRCLSZpU3ZDNcEiG1ioFuojYnrwaj
rBQ+bjVIusM3FVy0bagasJSDZSBTe90pcXttmV4hoQl0OJm5Zdux7erwSi/cwzPW
7wka5tdcRQJlBNO12SbW9Vcqt78pJndzJWBjCm2T/1uuWjjN8DlyusT6HRiH7box
XQQliqb7pGe6bLmLbIXFixkFSZ07Ht+i0kg0H/rUoLn4bSbzkbbsPpMZgWUYZwp3
N61Zl3XkIx31ENtBJH/uObmqOr6o2fZ4grsdJh8kbcjLw+aFPytJTaKbmOc0VFM/
s7p/TPIoRKOpHq0ykqcJAr56/t36Je2Ujq3CCa61J0o7TKuHP/K5rWfXvSEnqivb
DSD2vBoA+bIib9cbMg1fBNR8q+fP2aHER3Q94qTdFiv5LAURX4gaSYfp7sa3akHO
X074TdzRaWSILDza36ipEWwBXrhT+vw4ZCMHzBZaojKfvqF/WM/05PHJhMCijERO
1ho6BhvjON7+JSjvCg+A/JxfDIHsmbL/97xBDRr87WEDm4uzccWOo/uxE/ytPc5T
MgiQtGX0+fKe5O2GQy8MHLLsawTQtm9BwVyguYtbzfBS53Jml3eMLW546vyMYNVJ
vKZF5KT0R48cmuPsyTyH
=AhxZ
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 09 Oct 2014 07:33:59 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jan 3 21:26:25 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.