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
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.
This comes from the: https://wiki.gentoo.org/wiki/Complete_AMD64_Handbook/Putting_the_minimal_environment_in_place Per bug 544300 this is wontfix