Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Rclone 1.61 fails on RPI4 (AARCH64)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
amxyz
n00b
n00b


Joined: 13 May 2020
Posts: 23
Location: Turin

PostPosted: Tue Dec 20, 2022 2:19 am    Post subject: Rclone 1.61 fails on RPI4 (AARCH64) Reply with quote

I was trying to update my gentoo installation on my RPI4 but I ran into difficulties. These are the steps which I have taken so far:

1) Updated python packages manually so that Python10 becomes default on my RPI. Emerge didn't want to update the packages to Python 10. So I uninstalled the packages in dev-python/... and then I could update python to python10.
2) Then I wanted to update the perl packages but that didn't work at all. Then I tried this command:
Code:
emerge --verbose --verbose-conflicts --backtrack=200000 $(qlist -IC|grep perl|sort|uniq)

But it didn't work either. When it compiled the newest version of zlib, I received the following message:
Quote:
Failed running aclocal

3) Then I decided to do a world update by issuing the following command:
Code:
emerge --ask --verbose --update --deep --newuse @world --keep-going --backtrack=1000


You can view the log of emerge by opening the following link:
https://drive.google.com/file/d/1MelXFi4Pvt9Jc8adfmYK87wOBWlYj9tK/view?usp=share_link
So the first 100 packages were installed. But after having compiled yelp, emerge ended the installation process. When I wanted to restart emerge again, I got the following error:
Quote:
Import Export Error: libffi.so.7: cannot open shared object file: No such file or directory.

However in /Usr/lib4/ there exists the file libffi.so.8. So I decided to link it like this:
Code:
ln -s libffi.so.7 libffi.so.8

But then gentoo complains that it can't find a libffi_base_7 file. At this moment I'm no longer able to use emerge, dispatch-conf and the like.
How can I fix this error without having to download the stage 3 file and start the manual installation from the beginning?

Thank you for your help.


Last edited by amxyz on Mon Jan 16, 2023 1:59 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54391
Location: 56N 3W

PostPosted: Tue Dec 20, 2022 10:20 am    Post subject: Reply with quote

amxyz,

Quote:
1) Updated python packages manually so that Python10 becomes default on my RPI. ...


Gentoo does not have a default python for itself. It maintains python-exec, which is a wrapper around python. It runs everything with the 'right' version of python.
The concept of a 'default python' is only for packages that are not managed by portage.

Use a pastebin service for sharing things. Lots of helpers will not download logs.
Try wgetpaste.

Look through /val/log/emerge.log and determine the date of your last successful world update.
I suspect you problems stem from going too long between updates.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
amxyz
n00b
n00b


Joined: 13 May 2020
Posts: 23
Location: Turin

PostPosted: Mon Jan 16, 2023 1:58 am    Post subject: Reply with quote

Dear NeddySeagoon,

it's true, I've done my world update at the beginning of 2021. In the meantime I could update over 900 packages. However, I experience problems with
Code:
ld
.
There are two software programs which I cannot install just because of this typical ld error.
If I want to emerge rclone using the following command:
Code:
emerge -tav rclone


I get the following error:
Quote:
mkdir -p $WORK/b001/exe/
cd .
/usr/lib/go/pkg/tool/linux_arm64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -buildmode=exe -buildid=68iO6GGnWzaAkDd7CwOJ/nee0rIA2LZfXsdsTtZ-v/V_vrdpF9PW8DJPHc-iAr/68iO6GGnWzaAkDd7CwOJ -extld=aarch64-unknown-linux-gnu-gcc $WORK/b001/_pkg_.a
# github.com/rclone/rclone
/usr/lib/go/pkg/tool/linux_arm64/link: running aarch64-unknown-linux-gnu-gcc failed: exit status 1
collect2: fatal error: cannot find ‘ld’
compilation terminated.


Code:
emerge --info '=net-misc/rclone-1.61.1::gentoo'


Quote:
Portage 3.0.42 (python 3.10.9-final-0, default/linux/arm64/17.0/desktop, gcc-12, glibc-2.36-r6, 5.15.76_p20221104-raspberrypi-arm64 aarch64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.15.76_p20221104-raspberrypi-arm64-aarch64-with-glibc2.36
KiB Mem: 3643480 total, 278276 free
KiB Swap: 13479932 total, 13479164 free
Timestamp of repository gentoo: Sun, 15 Jan 2023 08:00:01 +0000
Head commit of repository gentoo: 3d3dcbc3d8ff35c3ecbe5b638611e101baee5707
sh bash 5.2_p15
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.2_p15::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.36.0-r1::gentoo
dev-lang/python: 3.10.9::gentoo, 3.11.1::gentoo, 3.12.0_alpha3-r1::gentoo
dev-lang/rust: 1.66.0::gentoo
dev-util/cmake: 3.25.1::gentoo
dev-util/meson: 1.0.0::gentoo
sys-apps/baselayout: 2.9::gentoo
sys-apps/openrc: 0.45.2-r2::gentoo
sys-apps/sandbox: 2.30-r1::gentoo
sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake: 1.16.5::gentoo
sys-devel/binutils: 2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang: 15.0.6::gentoo
sys-devel/gcc: 12.2.1_p20221231::gentoo
sys-devel/gcc-config: 2.9::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/lld: 15.0.6::gentoo
sys-devel/llvm: 13.0.1::gentoo, 15.0.6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.36-r6::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: 0
volatile: True
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8-a+crc+simd -mtune=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/backup/tmp/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 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"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2 -l3 --quiet"
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 --exclude=/.git"
PORTAGE_TMPDIR="/backup/tmp/"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa arm64 bindist branding bzip2 cairo cdda cdr clang cli crypt cups dbus dri dts dvdr elogind encode exif extras flac fortran gdbm gif gpm gtk gui help iconv icu ipv6 java jpeg lcms libglvnd libnotify libtirpc mad mariadb mng mp3 mp4 mpeg ncurses nls notification nptl ogg opengl openmp pam pango pcre pdf pdfimport png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust themes tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xft xml xv xvid zlib" 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" 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_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="arm x86_64 sparc aarch64" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="vc4" 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, LANG, LC_ALL, LD, 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


Code:
emerge -pqv '=net-misc/rclone-1.61.1::gentoo'

Quote:
[ebuild N ] net-misc/rclone-1.61.1

!!! The following installed packages are masked:
- dev-embedded/rpi-eeprom-13.19_p1::gentoo (masked by: rpi-eeprom license(s))
A copy of the 'rpi-eeprom' license is located at '/usr/portage/licenses/rpi-eeprom'.

- sys-kernel/linux-firmware-20221214::gentoo (masked by: || ( ) linux-fw-redistributable no-source-code license(s))
A copy of the 'linux-fw-redistributable' license is located at '/usr/portage/licenses/linux-fw-redistributable'.

A copy of the 'no-source-code' license is located at '/usr/portage/licenses/no-source-code'.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.


You can download the complete build.log file under this link:
https://drive.google.com/file/d/1iSB1eIE-L0pB-mdEplnb7hhd0KKdt2EU/view?usp=share_link

I've already reinstalled glibc 2.36-r6, but I still receive this error about ld.

Code:
cat /etc/portage/make.conf

Quote:
# 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.
VIDEO_CARDS="vc4"
COMMON_FLAGS="-O2 -pipe"
CFLAGS="-march=armv8-a+crc+simd -mtune=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
#CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
#CXX="/usr/aarch64-unknown-linux-gnu"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
# Pro j 2GB RAM:
# l: j+1
MAKEOPTS="-j2 -l3 --quiet"
NINJAOPTS="-j2"
PORTAGE_NICENESS=1
#EMERGE_DEFAULT_OPTS="--jobs 4 --load-average 5"
#FEATURES="parallel-install collision-protect cgroup"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
CHOST="aarch64-unknown-linux-gnu"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/gentoo"
DISTDIR="/backup/tmp/distfiles"
PKGDIR="/usr/portage/packages"
PORTDIR_OVERLAY="/usr/portage"
PORTAGE_TMPDIR="/backup/tmp/"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

# sound-server: pipewire, screencast: pipewire
#USE="-bluetooth -systemd clang bindist qt5 gtk dvd alsa cdr -base extras help notification themes pulseaudio java elogind -sound-server pdfimport -firebird mariadb"
USE="-bluetooth -systemd clang bindist qt5 gtk alsa -base extras help notification themes pulseaudio java elogind -sound-server pdfimport -firebird mariadb"
# useflag screencast
# useflag -clang, falls firefox + thunderbird sich nicht kompilieren lassen
# useflag elogind
#L10N="de en en-US en-GB"
ACCEPT_KEYWORDS="~arm64 arm64"
ACCEPT_LICENSE="-* @FREE"
# accept all licenses
#ACCEPT_LICENSE="*"
QEMU_SOFTMMU_TARGETS="arm x86_64 sparc aarch64"
QEMU_USER_TARGETS="aarch64"
PORTAGE_REPO_DUPLICATE_WARN="0"
# prevent certain symlinks from deinstalling, e.g. kernel
#UNINSTALL_IGNORE


Could you please help. I have other more important programs to update or install.

Regards,
amxyz
Back to top
View user's profile Send private message
hdcg
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2013
Posts: 120

PostPosted: Mon Jan 16, 2023 5:55 am    Post subject: Reply with quote

Hi amxyz,

I also encountered the rclone issue on arm64. The actual cause is unclear, as the actual GO issue is fixed (rclone is building fine on adm64). However, see https://github.com/openwrt/packages/pull/16871 for a workaround (removing the plugin import solved the issue for me).

Best Regards,
Holger
Back to top
View user's profile Send private message
amxyz
n00b
n00b


Joined: 13 May 2020
Posts: 23
Location: Turin

PostPosted: Mon Jan 16, 2023 6:25 pm    Post subject: [solved] Rclone 1.61 fails on RPI4 (AARCH64) Reply with quote

Dear Holger,
thanks for your hint. I finally installed rclone by applying this patch. :D

Regards,
amxyz
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM 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