Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492462 - =net-libs/nodejs-0.10.22 fails to build
Summary: =net-libs/nodejs-0.10.22 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-24 22:05 UTC by Marc Schiffbauer
Modified: 2013-11-25 06:45 UTC (History)
1 user (show)

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


Attachments
emerge --info (file_492462.txt,4.52 KB, text/plain)
2013-11-24 22:05 UTC, Marc Schiffbauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2013-11-24 22:05:45 UTC
Created attachment 363922 [details]
emerge --info

This version of nodejs fails to configure with the following error:

Traceback (most recent call last):
  File "tools/gyp_node.py", line 57, in <module>
    run_gyp(gyp_args)
  File "tools/gyp_node.py", line 18, in run_gyp
    rc = gyp.main(args)
  File "./tools/gyp/pylib/gyp/__init__.py", line 527, in main
    return gyp_main(args)
  File "./tools/gyp/pylib/gyp/__init__.py", line 503, in gyp_main
    options.circular_check)
  File "./tools/gyp/pylib/gyp/__init__.py", line 129, in Load
    params['parallel'], params['root_targets'])
  File "./tools/gyp/pylib/gyp/input.py", line 2687, in Load
    generator_input_info)
  File "./tools/gyp/pylib/gyp/input.py", line 594, in LoadTargetBuildFilesParallel
    parallel_state.pool = multiprocessing.Pool(8)
  File "/usr/lib64/python2.7/multiprocessing/__init__.py", line 232, in Pool
    return Pool(processes, initializer, initargs, maxtasksperchild)
  File "/usr/lib64/python2.7/multiprocessing/pool.py", line 138, in __init__
    self._setup_queues()
  File "/usr/lib64/python2.7/multiprocessing/pool.py", line 232, in _setup_queues
    from .queues import SimpleQueue
  File "/usr/lib64/python2.7/multiprocessing/queues.py", line 48, in <module>
    from multiprocessing.synchronize import Lock, BoundedSemaphore, Semaphore, Condition
  File "/usr/lib64/python2.7/multiprocessing/synchronize.py", line 59, in <module>
    " function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
Comment 1 Johan Bergström 2013-11-24 22:29:51 UTC
Internet seems to tell me that you haven't mounted /dev/shm. Is that perhaps the case?

(make sure this is in your fstab):
tmpfs   /dev/shm    tmpfs   defaults        0   0
Comment 2 Patrick Lauer gentoo-dev 2013-11-24 23:41:16 UTC
This is related to /dev/shm - as far as I remember it's python braindamage where the build system decides, at build time, to disable that functionality.

If I'm not mistaken this can be fixed by rebuilding python (in this case dev-lang/python:2.7)

Not a nodejs bug, closing.
Comment 3 Marc Schiffbauer gentoo-dev 2013-11-25 06:45:13 UTC
Thanks guys. Indeed my python was built on anothe rhost in a chroot where /dev/ was not mounted with --rbind, so python packages were lacking this feature. Rebuilding python after mounting /dev so that /dev/shm is available fixed this issue.