Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Cant merge python-3.2.5-r3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Sirserega666
n00b
n00b


Joined: 22 Jan 2014
Posts: 7

PostPosted: Wed Jan 22, 2014 4:32 pm    Post subject: [Solved]Cant merge python-3.2.5-r3 Reply with quote

Hello, instaling gentoo on my new pc and got problem with emerge python-3.2.5-r3

Code:

 * 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.2.5-r3::gentoo failed (configure phase):
 *   Broken sem_open function (bug 496328)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_configure
 *   environment, line 3708:  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.2.5-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/python-3.2.5-r3::gentoo'`.
/usr/lib64/portage/bin/isolated-functions.sh: line 188: wait: `Broken sem_open function (bug 496328)': not a pid or vali              d job spec
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-3.2.5-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-3.2.5-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/python-3.2.5-r3/work/x86_64-pc-linux-gnu'
 * S: '/var/tmp/portage/dev-lang/python-3.2.5-r3/work/Python-3.2.5'

>>> Failed to emerge dev-lang/python-3.2.5-r3, Log file:

>>>  '/var/tmp/portage/dev-lang/python-3.2.5-r3/temp/build.log'

 * Messages for package dev-lang/python-3.2.5-r3:

 * 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.2.5-r3::gentoo failed (configure phase):
 *   Broken sem_open function (bug 496328)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_configure
 *   environment, line 3708:  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.2.5-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/python-3.2.5-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-3.2.5-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-3.2.5-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/python-3.2.5-r3/work/x86_64-pc-linux-gnu'
 * S: '/var/tmp/portage/dev-lang/python-3.2.5-r3/work/Python-3.2.5'


make.conf

Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=corei7 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="acpi dbus opengl symlink udev pulseaudio alsa xinerama bindist mmx sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j9"
INPUT_DEVICES="keyboard mouse evdev"
VIDEO_CARDS="nvidia"
ACCEPT_KEYWORDS="amd64"
PYTHON_TARGETS="python2_7 python3_2 pypy1_9 jython2_5"
LANGUAGE="48"
LINGUAS="pl pl_PL"


any chance for help ? stucked here


Last edited by Sirserega666 on Wed Jan 22, 2014 6:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 22, 2014 5:05 pm    Post subject: Reply with quote

does running
Code:
mount | grep -i shm
produce
Quote:
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
if so, does
Code:
ls -al /dev/shm
produce show drwxrwxrwt root root for . and drwxr-xr-x root root for ..
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Sirserega666
n00b
n00b


Joined: 22 Jan 2014
Posts: 7

PostPosted: Wed Jan 22, 2014 5:44 pm    Post subject: Reply with quote

i mount before chroot
Code:
 # mount -t proc none /mnt/gentoo/proc
 # mount -o bind /dev /mnt/gentoo/dev


than i do what you say

Code:
mount | grep -i shm


no error but still cant compile

Code:
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)


im not sure what is this ?

got

Code:

proc        /proc        proc    defaults             0 0
shm         /dev/shm     tmpfs   nodev,nosuid,noexec  0 0


in fstab

ls -al /dev/shm


Code:
livecd / # ls -al /dev/shm
total 0
drwxr-xr-x  2 root root   40 Jan 22 18:33 .
drwxr-xr-x 13 root root 4180 Jan 22 18:34 ..



emerge --info


Code:
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8149508 total,   7646652 free
KiB Swap:    4000180 total,   4000180 free
Timestamp of tree: Wed, 22 Jan 2014 09:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg symlink tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl pl_PL" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 pypy1_9 jython2_5" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 22, 2014 6:11 pm    Post subject: Reply with quote

boot the cd, mount the gentoo partitions, enter the chroot; nominally:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
and try the emerge again.

you may have not used 'mount --rbind /dev /mnt/gentoo/dev' earlier
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Sirserega666
n00b
n00b


Joined: 22 Jan 2014
Posts: 7

PostPosted: Wed Jan 22, 2014 6:38 pm    Post subject: Reply with quote

great it works

so the clue was

Code:
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev


i never used it before, could you tell me what this command do ? dont rly understand them
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 22, 2014 7:21 pm    Post subject: Reply with quote

The proc, sys, and dev directories were created as tmpfs when the cd booted as part of the init process. The chroot command will not generate new versions. The cd generated versions are mounted in the chroot file system to fill the need.
--bind is not recursive
--rbind is recursive
you do need the subdirectories.

http://linux.die.net/man/8/mount
_________________
Defund the FCC.
Back to top
View user's profile Send private message
ch64
Guru
Guru


Joined: 09 Jun 2010
Posts: 319

PostPosted: Tue Jul 29, 2014 7:24 pm    Post subject: Reply with quote

I have the same error. [code]
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev [code]
is not enough.
[/code] [code]
# mount | grep -i shm
# ls -al /dev/shm
#
lrwxrwxrwx 1 root root 8 Jul 28 20:42 /dev/shm -> /run/shm

[/code]
[code]
# mount shm
mount: mount point /dev/shm is a symbolic link to nowhere
[/code]
[code]
# cat /etc/fstab
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
[/code]
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Tue Jul 29, 2014 7:44 pm    Post subject: Reply with quote

in the chroot:
Code:
 mkdir /run/shm

_________________
Defund the FCC.
Back to top
View user's profile Send private message
ch64
Guru
Guru


Joined: 09 Jun 2010
Posts: 319

PostPosted: Tue Jul 29, 2014 8:15 pm    Post subject: Reply with quote

heheheh, DONAHUE you are the best Forum user i know. :)
That is working. :)

I'm pretty novice. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum