View previous topic :: View next topic |
Author |
Message |
manu.rhel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Apr 2014 Posts: 41
|
Posted: Mon Aug 12, 2024 9:39 am Post subject: Not able to install any packages |
|
|
Hi Experts, I have installed gentoo on a new server, however I am not able to emerge any packages and getting below error for all of them -
Quote: | checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in '/var/tmp/portage/app-arch/gzip-1.13-r1/work/gzip-1.13':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details |
gcc-version
Quote: | # gcc-config -l
[1] x86_64-pc-linux-gnu-10.4.0
[2] x86_64-pc-linux-gnu-11.3.0 *
[3] x86_64-pc-linux-gnu-12 |
uname -a
Quote: | Linux ABC-C1 5.10.156-gentoo #20 SMP Sat Aug 10 21:47:38 IST 2024 x86_64 Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz GenuineIntel GNU/Linux
|
Ex - I tried to install gzip, but got the same error as above . Below are the required o/p -
# emerge --info '=app-arch/gzip-1.13-r1::gentoo'
Quote: | Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/23.0/split-usr, gcc-11.3.0, glibc-2.35-r8, 5.10.156-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.10.156-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2683_v3_@_2.00GHz-with-glibc2.35
KiB Mem: 528269644 total, 4496060 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Mon, 12 Aug 2024 00:45:00 +0000
Head commit of repository gentoo: 1e8fdcd7ded31397ad5350a89d1f9f381e66b979
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.1_p16-r2::gentoo
dev-build/autoconf: 2.71-r7::gentoo
dev-build/automake: 1.16.5::gentoo
dev-build/cmake: 3.24.2::gentoo
dev-build/libtool: 2.4.7::gentoo
dev-build/make: 4.3::gentoo
dev-lang/perl: 5.34.1-r4::gentoo
dev-lang/python: 2.7.18_p16::gentoo, 3.10.8_p2::gentoo, 3.11.0_p1::gentoo
dev-lang/rust: 1.64.0-r1::gentoo
sys-apps/baselayout: 2.8::gentoo
sys-apps/openrc: 0.45.2-r1::gentoo
sys-apps/sandbox: 2.29::gentoo
sys-devel/binutils: 2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc: 10.4.0::gentoo, 11.3.0::gentoo, 12.3.1_p20240209::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.35-r8::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-jobs: 1
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
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="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
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="acl amd64 bzip2 cet crypt gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp split-usr ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
~ # emerge -pqv '=app-arch/gzip-1.13-r1::gentoo'
Quote: | [ebuild U ] app-arch/gzip-1.13-r1 [1.12-r2] USE="-pic -static -verify-sig"
[ebuild N ] app-alternatives/gzip-1 USE="reference (split-usr) -pigz"
!!! The following installed packages are masked:
- sys-libs/glibc-2.35-r8::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Andreas K. Hüttel <dilfridge@gentoo.org> (2017-05-21)
# (and others, updated later)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.
# If you still use one of these old toolchain packages, please upgrade (and
# switch the compiler / the binutils) ASAP. If you need them for a specific
# (isolated) use case, feel free to unmask them on your system.
- sys-devel/gcc-10.4.0::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Sam James <sam@gentoo.org> (2023-11-19)
# GCC 10 and older no longer receive upstream support or fixes for
# bugs. Please switch to a newer GCC version using gcc-config.
# The lowest supported version of GCC is GCC 11.
- sys-devel/binutils-2.38-r2::gentoo (masked by: package.mask)
- dev-libs/openssl-1.1.1q::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Sam James <sam@gentoo.org> (2023-09-09)
# OpenSSL 1.1.x is EOL on 2023-09-11. Please upgrade immediately to >= OpenSSL 3.
# https://www.openssl.org/blog/blog/2023/03/28/1.1.1-EOL/
# https://www.openssl.org/blog/blog/2023/06/15/1.1.1-EOL-Reminder/
# Please run a full world upgrade, especially checking /etc/portage and your world file
# for old PHP or Ruby references.
- dev-build/cmake-3.24.2::gentoo (masked by: CMake license(s))
- sys-kernel/linux-firmware-20221012::gentoo (masked by: || ( ) linux-fw-redistributable no-source-code license(s))
A copy of the 'linux-fw-redistributable' license is located at '/var/db/repos/gentoo/licenses/linux-fw-redistributable'.
A copy of the 'no-source-code' license is located at '/var/db/repos/gentoo/licenses/no-source-code'.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
* IMPORTANT: 15 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
|
Please suggest what exactly am I missing here. Thanks in advance. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sam_ Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/7738740495f7d1acc45bdb.jpg)
Joined: 14 Aug 2020 Posts: 1862
|
Posted: Mon Aug 12, 2024 9:50 am Post subject: |
|
|
You mentioned this is a new install, but that version of binutils/gcc/portage/... is old. Please use a new stage3. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manu.rhel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Apr 2014 Posts: 41
|
Posted: Mon Aug 12, 2024 9:53 am Post subject: |
|
|
Thanks Sam, I have done emerge-webrsync , shouldn't that download the latest portage ? Is stage3 still required ?
By the way I have fixed this by changing the profile from split to 17.
How does this profile change worked, I am not very sure. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sam_ Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/7738740495f7d1acc45bdb.jpg)
Joined: 14 Aug 2020 Posts: 1862
|
Posted: Mon Aug 12, 2024 11:05 am Post subject: |
|
|
Hi!
emerge-webrsync is OK, and changing profiles between major versions (17.1 to 23.0) requires following careful instructions.
But the problem is, the base you've started with is a few years old. This makes things unnecessarily hard. In theory, it is possible to upgrade it, but if this is a new install, you shouldn't have used such an old stage3 to begin with? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manu.rhel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Apr 2014 Posts: 41
|
Posted: Tue Aug 13, 2024 2:38 am Post subject: |
|
|
You are right Sam, and I will go ahead with the profile upgrade after reading the instructions carefully. Thanks again for all your help and guidance. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|