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.
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
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.
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.