Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to have a gcc-x.x.x in crossdev?
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
christoph_peter_s
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2015
Posts: 90

PostPosted: Fri Oct 25, 2019 10:37 pm    Post subject: how to have a gcc-x.x.x in crossdev? Reply with quote

Hi there,

I am totally lost after having done some updates...
I did upgrade gcc to 8.3.0-r1 on all of my machines (a few x64 machines and a few more arm machines, most of them being raspi3b's), which seemed to be a good idea, as this is stable on all architectures for quite some time now.

But crossdev insists in installing 8.2.0-r6. When I try to install cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0-r1 it complains loudly:
Code:
catilina ~ # emerge -av =cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0-r1

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


 * IMPORTANT: 3 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   #] cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0-r1:8.3.0::crossdev [8.2.0-r6:8.2.0::crossdev] USE="cxx fortran nls nptl openmp pch pie sanitize ssp vtv (-altivec) -debug -doc (-fixed-point) -go -graphite -hardened -jit -libssp -mpx -multilib -objc -objc++ -objc-gc -pgo -systemtap -test% -vanilla (-regression-test%)" 0 KiB

Total: 1 package (1 in new slot), Size of downloads: 0 KiB

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by =cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0-r1 (argument)
# /etc/portage/package.mask/cross:
=cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0-r1

NOTE: The --autounmask-keep-masks option will prevent emerge
      from creating package.unmask or ** keyword changes.

Would you like to add these changes to your config files? [Yes/No]


*) The first thing, which puzzles me: where the hell gcc-8.3.0-r1 is masked? On the Gentoo packages site this version is labelled as stable for all architectures...
*) The second one: would it be save, to unmask it (why ever this was required) and then select 8.3.0 by gcc-config? Would the cross toolchain still be consistent after upgrading gcc and possibly unmerging the old gcc.

I have no declared preference for a certain gcc version. I just want to have the same version throughout all my installations, e.g. in order to make distcc happy.

Best regards
Peter

PS: on the build machine:
Code:
hydra ~ # emerge --info
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1, gcc-8.3.0, glibc-2.29-r2, 4.19.72-gentoo x86_64)
=================================================================
System uname: Linux-4.19.72-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:    32631772 total,  29049940 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 20 Oct 2019 02:45:01 +0000
Head commit of repository gentoo: 2a7d2b12ed25ec32c91000312a63947d82a03c9c
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://pandora.home.serbe.ch/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

crossdev
    location: /usr/local/portage
    masters: gentoo
    priority: 0

PSeOverlay
    location: /usr/local/overlay
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE intel-ucode-20180807"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=ivybridge"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 -march=ivybridge"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 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="de_DE.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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="X acl acpi aio alsa amd64 avahi bash-completion berkdb branding bzip2 caps cdr cli consolekit crypt cxx dbus dri egl evdev fat fbdev firmware fortran gdbm git glamor gles1 gles2 glint gnuplot gnutls gtk iconv ipv6 jpeg kerberos keyboard lame libtirpc lm_sensors lock lzma lzo modules mouse multilib ncurses nls nptl ntfs opengl openmp pam pcre pdf perl png python quota readline seccomp server session sound split-usr sqlite ssl startup-notification suid tcpd threads truetype udev unicode vnc xa xattr xfs xorg 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 aes avx f16c pclmul popcnt 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python2_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Oct 26, 2019 9:50 am    Post subject: Reply with quote

christoph_peter_s,

I've been using gcc-9 since a week after it hit the tree.

I suspect you have cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0-r1 masked locally as eix says the current stable is 8.3.0-r1.
Its probably not that exact version.

What does
Code:
grep -r gcc /etc/portage/
tell?
_________________
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
christoph_peter_s
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2015
Posts: 90

PostPosted: Sat Oct 26, 2019 10:36 am    Post subject: Reply with quote

Hi Neddy,

Your crystal ball did a marvelous job...

Code:
hydra /etc/portage/package.env # grep -r gcc /etc/portage/
/etc/portage/package.unmask:# want a newer gcc in the cross toolchain
/etc/portage/package.unmask:# required by =cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0-r1 (argument)
/etc/portage/package.unmask:=cross-armv6j-unknown-linux-gnueabihf/gcc-8.3.0-r1
/etc/portage/package.unmask:=cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0-r1
/etc/portage/profile/package.use.force/cross-armv7a-unknown-linux-gnueabihf:cross-armv7a-unknown-linux-gnueabihf/gcc -multilib
/etc/portage/profile/package.use.force/cross-armv6j-unknown-linux-gnueabihf:cross-armv6j-unknown-linux-gnueabihf/gcc -multilib
/etc/portage/package.use/cross-armv7a-unknown-linux-gnueabihf:cross-armv7a-unknown-linux-gnueabihf/gcc -selinux -boundschecking -d -gcj -gtk -libffi -mudflap -objc -objc++ -objc-gc -multilib
/etc/portage/package.use/cross-armv6j-unknown-linux-gnueabihf:cross-armv6j-unknown-linux-gnueabihf/gcc -selinux -boundschecking -d -gcj -gtk -libffi -mudflap -objc -objc++ -objc-gc -multilib
/etc/portage/package.keywords/cross-armv7a-unknown-linux-gnueabihf:cross-armv7a-unknown-linux-gnueabihf/gcc arm ~arm -amd64 -~amd64
/etc/portage/package.keywords/cross-armv6j-unknown-linux-gnueabihf:cross-armv6j-unknown-linux-gnueabihf/gcc arm ~arm -amd64 -~amd64
/etc/portage/package.mask/gcc:#>=sys-devel/gcc-8.3.0
/etc/portage/package.mask/gcc:#>=cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0
/etc/portage/package.mask/gcc:#>=cross-armv6j-unknown-linux-gnueabihf/gcc-8.3.0
<<<<<<<<<<<<<<<<<<<< here....
/etc/portage/package.mask/cross:>=cross-armv6j-unknown-linux-gnueabihf/gcc-8.3.0
/etc/portage/package.mask/cross:>=cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0
<<<<<<<<<<<<<<<<<<<< here....
/etc/portage/grep:cross-armv6j-unknown-linux-gnueabihf/gcc-7.3.0-r6
/etc/portage/grep:cross-armv6j-unknown-linux-gnueabihf/gcc-8.3.0
/etc/portage/grep:cross-armv7a-unknown-linux-gnueabihf/gcc-7.3.0-r6
/etc/portage/grep:cross-armv7a-unknown-linux-gnueabihf/gcc-8.3.0
/etc/portage/grep:sys-devel/gcc-8.2.0-r6
/etc/portage/grep:sys-devel/gcc-config-2.0
/etc/portage/grep:x11-misc/gccmakedep-1.0.3-r1
/etc/portage/package.env/cross-armv7a-unknown-linux-gnueabihf:cross-armv7a-unknown-linux-gnueabihf/gcc cross-armv7a-unknown-linux-gnueabihf/gcc.conf
/etc/portage/package.env/cross-armv6j-unknown-linux-gnueabihf:cross-armv6j-unknown-linux-gnueabihf/gcc cross-armv6j-unknown-linux-gnueabihf/gcc.conf


So I remove this mask.
But one question is still open: where can I find out, which crossdev-release would use gcc-8.3.x?

Thank You and best regards
Peter
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Oct 26, 2019 2:05 pm    Post subject: Reply with quote

christoph_peter_s,

crossdev itself is not tied to versions of anything.

When you run
Code:
crossdev cross-armv7a-unknown-linux-gnueabihf
It looks an the ebuilds you get from the crossdev overlay and either builds the latest stable or testing toolchain, depending on the -S option.

Once you have a cross toolchain installed, it gets updated as a part of your regular updates as long as you sync the crossdev overlay to get the new ebuilds. crossdev itself is then only needed for new cross toolchains.
_________________
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
vastchen
n00b
n00b


Joined: 22 Apr 2016
Posts: 37

PostPosted: Mon Dec 30, 2019 1:53 pm    Post subject: Reply with quote

crossdev --g 8.3.0-r1 armv7a-unknown-linux-gnueabihf

nano /etc/portage/package.mask/armv7a-unknown-linux-gnueabihf
cross- armv7a-unknown-linux-gnueabihf/gcc-8.3.0-r1
_________________
gentoo user
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 449

PostPosted: Mon Dec 30, 2019 2:53 pm    Post subject: Reply with quote

Do you actually build packages on Raspberry Pi 3 B+ with 1GB RAM?
Back to top
View user's profile Send private message
vastchen
n00b
n00b


Joined: 22 Apr 2016
Posts: 37

PostPosted: Tue Dec 31, 2019 2:12 am    Post subject: Reply with quote

crocket wrote:
Do you actually build packages on Raspberry Pi 3 B+ with 1GB RAM?


Many package can build gcc need swap rust will fail somepackage need -j2 or -j1. pc qemu is other way
_________________
gentoo user
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