View previous topic :: View next topic |
Author |
Message |
LiamOS n00b
Joined: 06 Jun 2012 Posts: 67 Location: Ireland
|
Posted: Sun Apr 16, 2023 5:54 pm Post subject: dev-python/ipykernel fails to build on ARM64 |
|
|
Good day,
Been unable to build ipykernel on my RK3588 ARM64 chip, with the primary error being:
Code: | ImportError: /usr/lib64/libzmq.so.5: undefined symbol: __aarch64_ldadd4_acq_rel |
I've tried switching to the GNU toolchain but the same error reappears. Any solutions or suggestions for things to try to resolve this would be greatly appreciated.
build.log
Code: | * Package: dev-python/ipykernel-6.22.0:0
* Repository: gentoo
* Maintainer: sci@gentoo.org python@gentoo.org
* USE: arm64 elibc_glibc kernel_linux python_targets_python3_11 userland_GNU
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking ipykernel-6.22.0.tar.gz to /var/tmp/portage/dev-python/ipykernel-6.22.0/work
>>> Source unpacked in /var/tmp/portage/dev-python/ipykernel-6.22.0/work
>>> Preparing source in /var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0 ...
* Build system packages:
* dev-python/gpep517 : 13
* dev-python/installer : 0.7.0
* dev-python/hatchling : 1.14.0
* dev-python/hatch-fancy-pypi-readme: 22.8.0
* dev-python/hatch-vcs : 0.3.0
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0 ...
* python3_11: running distutils-r1_run_phase python_compile
* Building the wheel for ipykernel-6.22.0 via hatchling.build
gpep517 build-wheel --backend hatchling.build --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0-python3_11/wheel
2023-04-16 17:46:29,214 gpep517 INFO Building wheel via backend hatchling.build
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.11/gpep517", line 4, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 406, in main
return func(args)
^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 202, in build_wheel
print(build_wheel_impl(args, args.wheel_dir), file=out)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 194, in build_wheel_impl
wheel_name = backend.build_wheel(str(wheel_dir), args.config_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/hatchling/build.py", line 56, in build_wheel
return os.path.basename(next(builder.build(wheel_directory, ['standard'])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line 150, in build
build_hook.initialize(version, build_data)
File "/var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0/hatch_build.py", line 16, in initialize
from ipykernel.kernelspec import make_ipkernel_cmd, write_kernel_spec
File "/var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0/ipykernel/__init__.py", line 5, in <module>
from .connect import * # noqa
^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0/ipykernel/connect.py", line 11, in <module>
import jupyter_client
File "/usr/lib/python3.11/site-packages/jupyter_client/__init__.py", line 3, in <module>
from .asynchronous import AsyncKernelClient
File "/usr/lib/python3.11/site-packages/jupyter_client/asynchronous/__init__.py", line 1, in <module>
from .client import AsyncKernelClient # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/jupyter_client/asynchronous/client.py", line 5, in <module>
import zmq.asyncio
File "/usr/lib/python3.11/site-packages/zmq/__init__.py", line 103, in <module>
from zmq import backend
File "/usr/lib/python3.11/site-packages/zmq/backend/__init__.py", line 31, in <module>
raise original_error from None
File "/usr/lib/python3.11/site-packages/zmq/backend/__init__.py", line 26, in <module>
_ns = select_backend(first)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/zmq/backend/select.py", line 31, in select_backend
mod = import_module(name)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/zmq/backend/cython/__init__.py", line 6, in <module>
from . import (
ImportError: /usr/lib64/libzmq.so.5: undefined symbol: __aarch64_ldadd4_acq_rel
* ERROR: dev-python/ipykernel-6.22.0::gentoo failed (compile phase):
* Wheel build failed
*
* Call stack:
* ebuild.sh, line 136: Called src_compile
* environment, line 3405: Called distutils-r1_src_compile
* environment, line 1539: Called _distutils-r1_run_foreach_impl 'python_compile'
* environment, line 710: Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile'
* environment, line 3106: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
* environment, line 2598: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
* environment, line 2596: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile'
* environment, line 1034: Called distutils-r1_run_phase 'python_compile'
* environment, line 1523: Called python_compile
* environment, line 2902: Called distutils-r1_python_compile
* environment, line 1348: Called distutils_pep517_install '/var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0-python3_11/install'
* environment, line 1858: Called die
* The specific snippet of code:
* local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
*
* If you need support, post the output of `emerge --info '=dev-python/ipykernel-6.22.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-python/ipykernel-6.22.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-python/ipykernel-6.22.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/ipykernel-6.22.0/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0'
* S: '/var/tmp/portage/dev-python/ipykernel-6.22.0/work/ipykernel-6.22.0' |
emerge --info
Code: | Portage 3.0.46 (python 3.11.3-final-0, default/linux/arm64/17.0/llvm, gcc-12, glibc-2.37-r2, 5.10.110 aarch64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.10.110-aarch64-with-glibc2.37
KiB Mem: 16068900 total, 4317224 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Sat, 15 Apr 2023 21:18:49 +0000
Head commit of repository gentoo: 914639a6e8d44f2817c4119ae9b644fa359a3287
Head commit of repository gentoo-zh: 3208726371501678a196ba67213102159fd3f02c
Timestamp of repository guru: Fri, 14 Apr 2023 17:46:49 +0000
Head commit of repository guru: aa5a954d2109f8912bd626de58a1e4d30061f791
sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p15-r2::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.36.0-r2::gentoo
dev-lang/python: 3.10.10_p3::gentoo, 3.11.3::gentoo
dev-lang/rust: 1.66.1::gentoo
dev-lang/rust-bin: 1.68.2-r1::gentoo
dev-util/cmake: 3.26.3::gentoo
dev-util/meson: 1.0.1::gentoo
sys-apps/baselayout: 2.13-r1::gentoo
sys-apps/openrc: 0.46::gentoo
sys-apps/sandbox: 2.30-r1::gentoo
sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake: 1.16.5-r1::gentoo
sys-devel/binutils: 2.39-r4::gentoo, 2.40-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 15.0.7-r1::gentoo, 16.0.1::gentoo
sys-devel/gcc: 12.2.1_p20230304::gentoo
sys-devel/gcc-config: 2.10::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/lld: 15.0.7::gentoo, 16.0.1::gentoo
sys-devel/llvm: 15.0.7::gentoo, 16.0.1::gentoo
sys-devel/make: 4.4.1::gentoo
sys-kernel/linux-headers: 6.2::gentoo (virtual/os-headers)
sys-libs/glibc: 2.37-r2::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gentoo
priority: -1000
volatile: False
gentoo-zh
location: /var/db/repos/gentoo-zh
sync-type: git
sync-uri: https://github.com/microcai/gentoo-zh
masters: gentoo
volatile: False
guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru
masters: gentoo
volatile: False
ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="*"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="aarch64-unknown-linux-gnu"
CC="clang"
CFLAGS="-O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance 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="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed "
LEX="flex"
MAKEOPTS="-j8"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
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"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="X aac acl acpi alsa arm64 bluetooth boost btrfs bzip2 cairo cjk clang cli colord crypt cups dbus dhclient dri egl elogind exif fcitx5 ffmpeg flac fontconfig fortran fuse gdbm gif gnome gnome-keyring gpm gstreamer gtk hwaccel iconv icu introspection ipv6 jpeg kerberos latex lcms libcxx libglvnd libnotify libtirpc llvm llvm-libunwind matric mp3 mp4 natspec ncurses networkmanager nls nptl numpy ogg opengl openmp pam pcre pdf png policykit postscript profiler proprietary-codecs pulseaudio python qt5 readline rust-analyzer sanitizez sdl seccomp sound split-usr ssl svg swaybg system-bootstrap system-libcxx system-llvm test-rust text threads tiff tkip truetype udev unicode usb vala vim vim-syntax vorbis vulkan wayland wep wifi wps x264 x265 xattr xcb xelatex xetex xml xvid zlib zsh-completion" ADA_TARGET="gnat_2021" 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_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" 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="en en-GB ga ja 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-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" 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: ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS, SIZE, YACC, YFLAGS
|
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31268 Location: here
|
Posted: Sun Apr 16, 2023 6:29 pm Post subject: |
|
|
Moved from Portage & Programming to Gentoo on AMD64. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22654
|
Posted: Sun Apr 16, 2023 7:13 pm Post subject: |
|
|
This is ARM64, not AMD64.
OP: /usr/lib64/libzmq.so.5 appears to be broken. It depends on a symbol that is not defined. Based on the name, I would guess the compiler generated this reference and should have provided it via some library. Using the GNU toolchain may or may not help. If it does help, it would only help if you rebuild the broken library with gcc. It is not clear from your post what you tried to build using the GNU toolchain. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31268 Location: here
|
Posted: Sun Apr 16, 2023 7:20 pm Post subject: |
|
|
Sorry LiamOS and Hu, my fault. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
LiamOS n00b
Joined: 06 Jun 2012 Posts: 67 Location: Ireland
|
Posted: Sun Apr 16, 2023 7:29 pm Post subject: |
|
|
Hu wrote: | This is ARM64, not AMD64.
OP: /usr/lib64/libzmq.so.5 appears to be broken. It depends on a symbol that is not defined. Based on the name, I would guess the compiler generated this reference and should have provided it via some library. Using the GNU toolchain may or may not help. If it does help, it would only help if you rebuild the broken library with gcc. It is not clear from your post what you tried to build using the GNU toolchain. |
That was it, thanks! I had to compile both ipykernel and net-libs/zeromq with the GNU toolchain and then everything mated happily. _________________ CFLAGS=" -O999999" |
|
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
|
|