Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530702 - dev-python/numpy-1.9.1 fails with distcc - File "numpy/core/setup_common.py", line 321, in long_double_representation raise ValueError("Could not lock sequences (%s)" % saw)
Summary: dev-python/numpy-1.9.1 fails with distcc - File "numpy/core/setup_common.py",...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-26 02:20 UTC by S. Gilles
Modified: 2015-03-15 11:31 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.txt,17.67 KB, text/plain)
2014-11-26 02:20 UTC, S. Gilles
Details
build.log (build.log,94.51 KB, text/plain)
2014-11-26 02:21 UTC, S. Gilles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description S. Gilles 2014-11-26 02:20:22 UTC
When FEATURES includes distcc, dev-python/numpy-1.9.1 cannot be installed. This happens when both the distcc host and the client are AMD64.  The host itself has dev-python/numpy-1.9.1 installed.

Reproducible: Always

Steps to Reproduce:
1. Enable distcc (e.g. FEATURES="splitdebug distcc distcc-pump")
2. emerge =dev-python/numpy-1.9.1
Actual Results:  
Build failure: see attached log.

Expected Results:  
Numpy should install

Immediately after generating the attached build.log, I ran

    FEATURES="-distcc" emerge =dev-python/numpy-1.9.1 --ask n

It installed successfully.
Comment 1 S. Gilles 2014-11-26 02:20:50 UTC
Created attachment 390288 [details]
emerge --info

Output of `emerge --info`
Comment 2 S. Gilles 2014-11-26 02:21:28 UTC
Created attachment 390290 [details]
build.log

The full build log
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-26 07:30:19 UTC
Please post your `emerge -vpq dev-python/numpy' output in a comment.
Comment 4 S. Gilles 2014-12-06 03:45:23 UTC
[ebuild     U ] dev-python/numpy-1.9.1 [1.8.2] USE="-doc -lapack {-test}" PYTHON_TARGETS="python2_7 python3_3 -python3_4"
Comment 5 Navar 2014-12-14 22:51:05 UTC
Here as well. Same error, host amd64, client x86 with prior versions.

[ebuild     U ] dev-python/numpy-1.9.0-r1 [1.8.0-r1] USE="-doc -lapack {-test}" PYTHON_TARGETS="python2_7 python3_4 -python3_3"
Comment 6 S. Gilles 2015-01-26 01:49:12 UTC
Can this be confirmed, at least, since there's a second user who experiences it?

I'm pretty sure it's a distcc issue, as the original report stated.  It seems to affect cmake as well, but I'm having a hard time constructing a minimal exhibiting case.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-01-26 04:55:39 UTC
(In reply to S. Gilles from comment #6)
> Can this be confirmed, at least, since there's a second user who experiences
> it?

We don't use/distinguish/care about the two statuses. All bugs are confirmed to us :).

Anyway, try FEATURES='distcc -distcc-pump'. The pump mode seems to be poorly implemented (thank you, Google) and causes tricky failures in many packages. And it's pretty much hard to nail this down well enough to fix it.
Comment 8 S. Gilles 2015-01-27 09:37:19 UTC
(In reply to Michał Górny from comment #7)
> We don't use/distinguish/care about the two statuses. All bugs are confirmed
> to us :).

I understand now. Thanks, good to hear.

> Anyway, try FEATURES='distcc -distcc-pump'. The pump mode seems to be poorly
> implemented (thank you, Google) and causes tricky failures in many packages.
> And it's pretty much hard to nail this down well enough to fix it.

FEATURES="distcc -distcc-pump" results in many "Warning: INCLUDE_SERVER_PORT not set - did you forget to run under 'pump'?" messages, which I remember as being a symptom that prompted me to include distcc-pump in FEATURES in the first place. There are also lots of "Warning: failed to distribute, running locally instead" messages, but distcc is definitely in use for other files

After a few minutes of this, Numpy successfully installs. I'm not too thrilled about the method, but at the very least that confirms that this is a problem with pump, and that running distcc without pump is a fine way of doing things (and by extension that I can ignore those nagging warning messages), so my original issue is solved.  If I want to pursue this further, I guess I should look directly at pump.

Thanks!
Comment 9 Klaus Kusche 2015-03-08 11:17:17 UTC
Same problem here upgrading from 1.9.1 to 1.9.2:
File "numpy/core/setup_common.py", line 321, in long_double_representation
    raise ValueError("Could not lock sequences (%s)" % saw)

No distcc involved.

Observation:
numpy 1.9.1 has emerged flawlessly on my system before,
without any special preparations.
When I try to re-emerge it now, it fails with the same error as 1.9.2.

So something in the build environment has changed 
which messes up the numpy build
(perhaps the upgrade from 4.8.x to gcc 4.9.2 or the latest glibc version)?
Comment 10 Klaus Kusche 2015-03-08 11:19:00 UTC
Obviously not "RESOLVED FIXED".
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2015-03-08 17:51:49 UTC
(In reply to Klaus Kusche from comment #10)
> Obviously not "RESOLVED FIXED".
please attach a full build.log of numpy-1.9.2 without distcc.
Comment 12 Klaus Kusche 2015-03-15 11:31:09 UTC
LTO problem.

Builds fine with no-lto.