Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544304 - Instructions needed to mount /dev/shm properly for python
Summary: Instructions needed to mount /dev/shm properly for python
Status: RESOLVED WONTFIX
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-24 09:48 UTC by Pacho Ramos
Modified: 2015-03-24 19:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2015-03-24 09:48:58 UTC
Currently, if you follow Handbook instructions to mount stuff, you will end up being unable to compile python with the following error
config.status: creating Modules/ld_so_aix
config.status: creating pyconfig.h
creating Modules/Setup
creating Modules/Setup.local
creating Makefile
 * configure has detected that the sem_open function is broken.
 * Please ensure that /dev/shm is mounted as a tmpfs with mode 1777.
 * ERROR: dev-lang/python-3.4.1::gentoo failed (configure phase):
 *   Broken sem_open function (bug 496328)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_configure
 *   environment, line 3998:  Called die
 * The specific snippet of code:
 *           die "Broken sem_open function (bug 496328)";
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/python-3.4.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/python-3.4.1::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/dev-lang/python-3.4.1:20150324-094344.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/python-3.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-3.4.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/python-3.4.1/work/x86_64-pc-linux-gnu'
 * S: '/var/tmp/portage/dev-lang/python-3.4.1/work/Python-3.4.1'



mount --bind /dev/shm /mnt/gentoo/dev/shm is needed to fix it

Thanks for adding it to the handbook
Comment 1 Jason Zaman gentoo-dev 2015-03-24 13:16:15 UTC
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Mounting_the_necessary_filesystems

says:
mount --rbind /dev /mnt/gentoo/dev

the --rbind is recursive so it will mount /dev/shm underneath as well.
Comment 2 Pacho Ramos gentoo-dev 2015-03-24 19:38:47 UTC
This comes from the:
https://wiki.gentoo.org/wiki/Complete_AMD64_Handbook/Putting_the_minimal_environment_in_place

Per bug 544300 this is wontfix