Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] python-Installation scheitert
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ManfredB
Veteran
Veteran


Joined: 27 Dec 2007
Posts: 1605

PostPosted: Fri Jul 30, 2021 3:16 pm    Post subject: [gelöst] python-Installation scheitert Reply with quote

Hallo zusammen,

ich bin gerade dabei, gentoo-systemd-stable zu installieren.
Beim Basis-Update scheitert python-3.9.6:

Code:

* Messages for package dev-lang/python-3.9.6:

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


Code:

emerge --info '=dev-lang/python-3.9.6::gentoo'
Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/systemd, gcc-10.3.0, glibc-2.33-r1, 5.10.52-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.52-gentoo-dist-x86_64-AMD_Ryzen_5_2600_Six-Core_Processor-with-glibc2.33
KiB Mem:    16382952 total,   7658704 free
KiB Swap:    4435964 total,   4435708 free
Timestamp of repository gentoo: Fri, 30 Jul 2021 13:22:08 +0000
Head commit of repository gentoo: b23f7d2b830b7a7a6421233f818e4ceeca59e501

sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          3.9.5_p2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /gsy/var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -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=native -O2 -pipe"
DISTDIR="/gsyd/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/gsy/var/cache/binpkgs"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd tcpd udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS


Was stimmt hier nicht?

Ich arbeite in einer chroot-Umgebung. Das ist mir bisher mit diesem Paket noch nie passiert.

Darum meine Frage.

Gruß
Manfred


Last edited by ManfredB on Sat Jul 31, 2021 7:14 am; edited 1 time in total
Back to top
View user's profile Send private message
ManfredB
Veteran
Veteran


Joined: 27 Dec 2007
Posts: 1605

PostPosted: Fri Jul 30, 2021 3:36 pm    Post subject: Reply with quote

Ich habe eben einmal nachgeschaut, was mit /dev/shm ist.

Im Host-System ist das Verzeichnis leer.
Was ist das überhaupt und warum ist das leer?

Da sehe ich schon deutlich, daß ich bei solchen Problemen absoluter Laie bin.

Danke im voraus für Hilfestellung.

Gruß
Manfred

P.S. ich habe mich eben im Internet kundig gemacht, was /dev/shm ist.
Doch warum ist das nicht vorhanden, wie bekomme ich es?
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4552
Location: Germany

PostPosted: Fri Jul 30, 2021 4:41 pm    Post subject: Reply with quote

Hi Manfred,
nutzt du für dein chroot eventuell ein nicht-gentoo-Installationsmedium (LiveCD)?
Falls ja, dann beachte bitte auch den warnenden roten Hinweis im https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Mounting_the_necessary_filesystems
Back to top
View user's profile Send private message
ManfredB
Veteran
Veteran


Joined: 27 Dec 2007
Posts: 1605

PostPosted: Fri Jul 30, 2021 4:57 pm    Post subject: Reply with quote

Mein System, in dem ich chroot einrichte, ist gentoo-systemd-stable, das ich vor ein paar Tagen eingerichtet habe.

Und in diesem System fehlt der Inhalt von /dev/shm.

Eben sehe ich auf der Seite, die du mir angeboten hast,
daß ich rslave vergessen habe.

Aber das ändert nichts daran, daß /dev/shm leer ist, da wird der Fehler wohl so nicht zu verhindern sein.

Und die Frage bleibt, warum /dev/shm leer ist.

Gruß
Manfred
Back to top
View user's profile Send private message
ManfredB
Veteran
Veteran


Joined: 27 Dec 2007
Posts: 1605

PostPosted: Fri Jul 30, 2021 5:38 pm    Post subject: Reply with quote

Ich habe mich nun an die Anleitung mit /dev/shm gehalten,
eben ist python installiert worden, auch spidermonkey hatte zuvor dasselbe Problem mit /dev/shm,

Aber nun geht das Basis-Update weiter und ich hoffe, es wird vollständig installiert.

Vielen Dank noch für die klare Unterstützung mit dem Hinweis auf die roten Felder,
die ich ja schon lange kenne, weil ich dieses WIKI schon immer nutze.
Aber offensichtlich habe ich immer wieder Sachen übergangen, die wichtig sind,
vor allem wenn man systemd-Installation plant.

Liebe Grüße
Manfred
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Fri Jul 30, 2021 7:15 pm    Post subject: Reply with quote

ManfredB wrote:

Aber das ändert nichts daran, daß /dev/shm leer ist, da wird der Fehler wohl so nicht zu verhindern sein.

Und die Frage bleibt, warum /dev/shm leer ist.


https://www.kernel.org/doc/gorman/html/understand/understand015.html
https://de.wikipedia.org/wiki/Shared_Memory#Shared_Memory_in_der_Interprozesskommunikation_(IPC)

Das macht nix, dass das leer ist, das muss nur verfügbar sein. Wird von manchen Programmen zur IPC genutzt


Last edited by Christian99 on Fri Jul 30, 2021 8:05 pm; edited 2 times in total
Back to top
View user's profile Send private message
ManfredB
Veteran
Veteran


Joined: 27 Dec 2007
Posts: 1605

PostPosted: Fri Jul 30, 2021 7:57 pm    Post subject: Reply with quote

Vielen Dank für die Seiten.

So langsam begreife ich, wie diese Verbindungen laufen.

Ich wünsche euch ein schönes Wochende.

Liebe Grüße
Manfred
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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