Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RESOLVED] switching CHOST for new profile
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
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 544
Location: Germany

PostPosted: Tue Oct 02, 2018 6:45 am    Post subject: [RESOLVED] switching CHOST for new profile Reply with quote

I haven't done any updates to my chrooted system for a while and was surprised to see the news about changing CHOST. Out of curiosity I've decided to try it. And of course it didn't work :) I've downloaded the script and tried to run it. It stopped very quickly after following steps:

Code:

++ portageq envvar CHOST
+ OLD_CHOST=armv7a-hardfloat-linux-gnueabi
+ CHOST=armv7a-unknown-linux-gnueabihf
+ case ${OLD_CHOST} in
++ portageq envvar EPREFIX
+ EPREFIX=
++ portageq vdb_path
+ VDB=/var/db/pkg
++ eselect --brief profile show
+ OLD_PROFILE='  default/linux/arm/13.0/armv7a'
+ OLD_PROFILE='  default/linux/arm/13.0/armv7a'
+ NEW_PROFILE='  default/linux/arm/17.0/armv7a'
++ portageq best_visible / sys-devel/binutils
+ BINUTILS_PF=sys-devel/binutils-2.30-r2
++ portageq best_visible / sys-devel/gcc
+ GCC_PF=


No other messages. Now, in the news there was something about llvm presence (which I don't have). Could it be the reason for termination? What else is wrong with my system?


Last edited by v_andal on Fri Oct 05, 2018 7:08 am; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Oct 02, 2018 8:47 am    Post subject: Reply with quote

v_andal ...

it seems that for some reason 'portageq best_visible / sys-devel/gcc' returns an empty string, when it should provide the gcc package installed (similarly to the command prior). You should provide a link to "the script" and the output of 'emerge --info' for the chroot.

best ... khay
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 544
Location: Germany

PostPosted: Thu Oct 04, 2018 6:26 pm    Post subject: Reply with quote

The script I was talking about I got from this URL https://dev.gentoo.org/~chewi/armhf-migrate.bash

The emerge --info is below

Code:

Timestamp of repository gentoo: Sat, 29 Sep 2018 14:00:01 +0000
Head commit of repository gentoo: e74fe46a5bedf11f3e96a143779d3fa20f18bb87
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.4.5::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.29.1-r1::gentoo, 2.30-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://de-mirror.org/distro/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="/var/tmp"
USE="acl arm armv5te armv6 armv6t2 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd unicode xattr zlib" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Indeed, 'portageq best_visible / sys-devel/gcc' returns empty string.

Hopefully you can spot something in the info above.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Oct 04, 2018 8:36 pm    Post subject: Reply with quote

v_andal wrote:
Code:
Timestamp of repository gentoo: Sat, 29 Sep 2018 14:00:01 +0000
[...]
sys-devel/gcc:            5.4.0-r3::gentoo

Indeed, 'portageq best_visible / sys-devel/gcc' returns empty string. Hopefully you can spot something in the info above.

v_andal ... and indeed I do, =sys-devel/gcc-5.4.0-r3 nolonger exists in the tree, and so 'portageq' can't return 'best_visable' with the default 'pkgtype' for portageq being 'ebuild' (that ebuild doesn't exist). I think this script has in mind an up-to-date system for migration ... though you should be able to work around the issue by updating certain packages (ie, sys-devel/gcc) to cover that fact (or you could manually edit to script to reflect your current versions).

Given you would have to rebuild the tool chain, and @world (or at least any package containing '/lib*/**.a /usr/lib*/**.a'), to move to the 0.17 profiles, you might be better doing the profile update first (or at least get the newer toolchain). That said, I can't see a way out of many a package update/rebuild ... so, perhaps starting over might kill two birds with one stone.

best ... khay
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 544
Location: Germany

PostPosted: Fri Oct 05, 2018 7:07 am    Post subject: Reply with quote

Hm. New setup seems to be the best option. Anyway I get other strange errors like failures to install packages because files can not be copied to destination. Clean installation hopefully removes all of that.

Thank you.
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