View previous topic :: View next topic |
Author |
Message |
MaxIvanovich n00b
Joined: 24 Apr 2022 Posts: 3
|
Posted: Sun Apr 24, 2022 10:42 pm Post subject: Failed to emerge dev-python/cppy-1.2.0 |
|
|
Hi,
With emerge -auvND @world I have this problem:
Code: |
* Messages for package dev-python/cppy-1.2.0:
* ERROR: dev-python/cppy-1.2.0::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 127: Called src_compile
* environment, line 3123: Called distutils-r1_src_compile
* environment, line 1413: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
* environment, line 571: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2816: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2405: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2403: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 895: Called distutils-r1_run_phase 'distutils-r1_python_compile'
* environment, line 1398: Called distutils-r1_python_compile
* environment, line 1196: Called esetup.py 'build' '-j' '8'
* environment, line 1944: Called die
* The specific snippet of code:
* "${@}" || die -n;
|
Output of emerge --info '=dev-python/cppy-1.2.0::gentoo'
Code: |
Portage 3.0.30 (python 3.10.3-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.1, glibc-2.34-r10, 5.15.32-gentoo-r1 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.15.32-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.34
KiB Mem: 16233028 total, 481028 free
KiB Swap: 17825788 total, 16988924 free
Timestamp of repository gentoo: Tue, 19 Apr 2022 00:45:01 +0000
Head commit of repository gentoo: 1d2700aa5e1c1495045e702d92e17142fc7321ce
Timestamp of repository calculate: Wed, 13 Apr 2022 06:19:13 +0000
Head commit of repository calculate: d379474d05bb88000c40041f41bdc154bdf35712
Timestamp of repository steam-overlay: Tue, 12 Apr 2022 06:05:17 +0000
Head commit of repository steam-overlay: bcbdb4376c317ba442aae5736123c321fbc12fb2
Timestamp of repository yandex: Mon, 04 Apr 2022 11:49:19 +0000
Head commit of repository yandex: 7bf6e0d64a54654794c7ee1e5f017e165dd142ca
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils: 1.3.3::gentoo
app-shells/bash: 5.1_p16::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.34.0-r6::gentoo
dev-lang/python: 3.9.9-r1::gentoo, 3.10.3::gentoo
dev-lang/rust: 1.58.1::gentoo
dev-util/cmake: 3.22.2::gentoo
dev-util/meson: 0.60.3::gentoo
sys-apps/baselayout: 2.7-r3::gentoo
sys-apps/sandbox: 2.29::gentoo
sys-apps/systemd: 250.4-r1::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake: 1.16.5::gentoo
sys-devel/binutils: 2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang: 12.0.1::gentoo, 13.0.1::gentoo
sys-devel/gcc: 11.2.1_p20220115::gentoo
sys-devel/gcc-config: 2.5-r1::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/lld: 13.0.1::gentoo
sys-devel/llvm: 12.0.1::gentoo, 13.0.1::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.34-r10::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
calculate
location: /var/db/repos/calculate
sync-type: git
sync-uri: https://github.com/gentoo-mirror/calculate.git
masters: gentoo
steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo
yandex
location: /var/db/repos/yandex
sync-type: git
sync-uri: https://github.com/gentoo-mirror/yandex.git
masters: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
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 buildpkg-live 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="http://gentoo-mirror.alexxy.name/ ftp://mirror.yandex.ru/gentoo-distfiles/ ftp://213.180.204.183/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bash-completion bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds encode evo exif fbcon flac fortran freetype ftp gdbm gif gimp git glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jack java jpeg jpeg2k lcms libglvnd libnotify libsecret libtirpc lm-sensors mad mng mp3 mp4 mpeg multilib mysql nautilus ncurses networkmanager nls nptl ogg openal openexr opengl openmp pam pango pcre pdf php png policykit ppds python readline screencast sdl seccomp spell split-usr sqlite ssl startup-notification svg sysprof systemd threads tiff tracker truetype udev udisks unicode upower usb v4l vim-syntax vorbis vulkan wayland wifi wxwidgets x264 xattr xcb xml xv xvid xwayland zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="libinput" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel nvidia i965" 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: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
I need some help please? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31000 Location: here
|
Posted: Mon Apr 25, 2022 5:20 am Post subject: |
|
|
You should post also full build.log. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
MaxIvanovich n00b
Joined: 24 Apr 2022 Posts: 3
|
Posted: Mon Apr 25, 2022 5:54 am Post subject: |
|
|
/var/tmp/portage/dev-python/cppy-1.2.0/temp/build.log contains
Code: |
* Package: dev-python/cppy-1.2.0
* Repository: gentoo
* Maintainer: python@gentoo.org
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 python_targets_python3_9 userland_GNU
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking cppy-1.2.0.tar.gz to /var/tmp/portage/dev-python/cppy-1.2.0/work
>>> Source unpacked in /var/tmp/portage/dev-python/cppy-1.2.0/work
>>> Preparing source in /var/tmp/portage/dev-python/cppy-1.2.0/work/cppy-1.2.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/cppy-1.2.0/work/cppy-1.2.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/cppy-1.2.0/work/cppy-1.2.0 ...
* python3_9: running distutils-r1_run_phase distutils-r1_python_compile
python3.9 setup.py build -j 8
/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py:102: _ExperimentalProjectMetadata: Support for project metadata in `pyproject.toml` is still experimental and may be removed (or change) in future releases.
warnings.warn(msg, _ExperimentalProjectMetadata)
configuration error: `project` must contain ['version'] properties
DESCRIPTION:
version should be statically defined in the ``version`` field
GIVEN VALUE:
{
"name": "cppy",
"readme": "README.rst",
"requires-python": ">=3.7",
"license": {
"file": "LICENSE"
},
"authors": [
{
"name": "The Nucleic Development Team",
"email": "sccolbert@gmail.com"
}
],
"maintainers": [
{
"name": "Matthieu C. Dartiailh",
"email": "m.dartiailh@gmail.com"
}
],
"classifiers": [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython"
],
"urls": {
"homepage": "https://github.com/nucleic/cppy",
"documentation": "https://cppy.readthedocs.io/en/latest/",
"repository": "https://github.com/nucleic/cppy",
"changelog": "https://github.com/nucleic/cppy/blob/main/releasenotes.rst"
}
}
OFFENDING RULE: 'required'
DEFINITION:
{
"required": [
"version"
]
}
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/cppy-1.2.0/work/cppy-1.2.0/setup.py", line 10, in <module>
setup(
File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 122, in setup
dist.parse_config_files()
File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 854, in parse_config_files
pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
File "/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 54, in apply_configuration
config = read_configuration(filepath, True, ignore_option_errors, dist)
File "/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 120, in read_configuration
validate(subset, filepath)
File "/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 43, in validate
raise error from None
ValueError: invalid pyproject.toml config: `project`
* ERROR: dev-python/cppy-1.2.0::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 127: Called src_compile
* environment, line 3123: Called distutils-r1_src_compile
* environment, line 1413: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
* environment, line 571: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2816: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2405: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2403: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 895: Called distutils-r1_run_phase 'distutils-r1_python_compile'
* environment, line 1398: Called distutils-r1_python_compile
* environment, line 1196: Called esetup.py 'build' '-j' '8'
* environment, line 1944: Called die
* The specific snippet of code:
* "${@}" || die -n;
*
* If you need support, post the output of `emerge --info '=dev-python/cppy-1.2.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-python/cppy-1.2.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-python/cppy-1.2.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/cppy-1.2.0/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/cppy-1.2.0/work/cppy-1.2.0'
* S: '/var/tmp/portage/dev-python/cppy-1.2.0/work/cppy-1.2.0'
|
|
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2732
|
Posted: Mon Apr 25, 2022 8:00 am Post subject: |
|
|
Any reason you are using ~testing >=setuptools-61 in stable?
cppy-1.2.1 is fixed for 61 (or even, it requires it), but like >=setuptools-61 it's also in ~testing
>=setuptools-61 may potentially cause issues with other packages in stable too. |
|
Back to top |
|
|
MaxIvanovich n00b
Joined: 24 Apr 2022 Posts: 3
|
Posted: Mon Apr 25, 2022 8:04 pm Post subject: |
|
|
At one time, I included test branch of the setuptools for liblarch. Now I don't remember why.
Any way, I just removed dev-python/setuptools ~amd64 from my accept_keywords and no errors any more
Thanks a lot |
|
Back to top |
|
|
greyhare n00b
Joined: 05 Jun 2014 Posts: 7
|
Posted: Thu Apr 28, 2022 9:12 pm Post subject: |
|
|
I ran into this exact problem because I'm running my machine as a Python TOX test system, so I need to install Pythons from 3.7 to 3.10 and PyPy3 (and wish I could have kept 3.6, because stupid RHEL is one of the platforms I have to support), which the modules I'm testing need to support. Without ~arch, build requirements like setuptools only support 3.8-3.10 (3..10 is recent) and no pypy.
So I've got a lot of dependencies for pip and virtualenv marked as ~arch so the corresponding TOX cases don't die. Would be lovely if there were a way to not have to copypasta "PYTHON_TARGETS: ..." on all those packages in package.use.
Anyway, for anyone else who finds this via Google like I did, adding this to /etc/portage/package.accept_keywords fixed it:
Code: | =dev-python/cppy-1.2.1-r1 ~amd64
=dev-python/kiwisolver-1.4.2 ~amd64
|
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1707
|
Posted: Fri Apr 29, 2022 1:05 am Post subject: |
|
|
greyhare wrote: | I ran into this exact problem because I'm running my machine as a Python TOX test system, so I need to install Pythons from 3.7 to 3.10 and PyPy3 (and wish I could have kept 3.6, because stupid RHEL is one of the platforms I have to support), which the modules I'm testing need to support. Without ~arch, build requirements like setuptools only support 3.8-3.10 (3..10 is recent) and no pypy.
So I've got a lot of dependencies for pip and virtualenv marked as ~arch so the corresponding TOX cases don't die. Would be lovely if there were a way to not have to copypasta "PYTHON_TARGETS: ..." on all those packages in package.use.
Anyway, for anyone else who finds this via Google like I did, adding this to /etc/portage/package.accept_keywords fixed it:
Code: | =dev-python/cppy-1.2.1-r1 ~amd64
=dev-python/kiwisolver-1.4.2 ~amd64
|
|
You can do:
Code: |
*/* PYTHON_TARGETS: python3_8 python3_9 python3_10 pypy3
|
or similar in package.use, FWIW.
As for Python 3.6, can't you use a virtualenv or similar for that? |
|
Back to top |
|
|
|
|
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
|
|