On 2015-01-07 12:52, Stefan G. Weichinger wrote:
I am in the process of upgrading an old (~2010) gentoo server.
The customer never wanted updates ... and now he wants ... *sigh*

I managed to compile basic stuff already ... portage, gcc etc

Now I get errors at emerging packages which is bad.

Still no openrc installed and the udev-upgrade also is still pending.

gcc-4.8.3

When I try to emerge "grep" for example, the config.log says:

configure:4451: $? = 0
configure:4440: i686-pc-linux-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/i686-pc-linux-gnu/gcc-bin/4.8.3/i686-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/4.8.3/lto-wrapper
Target: i686-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.8.3/work/gcc-4.8.3/configure
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.8.3
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.8.3/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.8.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.8.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.8.3/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.8.3/include/g++-v4
--with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.8.3/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls
--without-included-gettext --enable-checking=release
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.3
p1.1, pie-0.5.9' --enable-libstdcxx-time --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-multilib --disable-altivec --disable-fixed-point
--with-arch=i686 --enable-targets=all --disable-libgcj --enable-libgomp
--disable-libmudflap --disable-libssp --enable-lto --without-cloog
--enable-libsanitizer
Thread model: posix
gcc version 4.8.3 (Gentoo 4.8.3 p1.1, pie-0.5.9)
configure:4451: $? = 0
configure:4440: i686-pc-linux-gnu-gcc -V >&5
i686-pc-linux-gnu-gcc: error: unrecognized command line option '-V'
i686-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4451: $? = 1
configure:4440: i686-pc-linux-gnu-gcc -qversion >&5
i686-pc-linux-gnu-gcc: error: unrecognized command line option '-qversion'
i686-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4451: $? = 1
configure:4440: i686-pc-linux-gnu-gcc -version >&5
i686-pc-linux-gnu-gcc: error: unrecognized command line option '-version'
i686-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4451: $? = 1
configure:4471: checking whether the C compiler works
configure:4493: i686-pc-linux-gnu-gcc -O2 -march=prescott -pipe
-fomit-frame-pointer   conftest.c  >&5
i686-pc-linux-gnu-gcc: error trying to exec 'as': execvp: No such file
or directory
configure:4497: $? = 2
configure:4535: result: no



I understand that "configure" is called with "wrong" parameters ...
where do they come from?

-->

For reference:

$ emerge --info
Portage 2.2.14 (python 2.7.9-final-0, default/linux/x86/13.0, gcc-4.8.3,
glibc-2.11.2-r3, 2.6.36-gentoo-r5 i686)
=================================================================
System uname:
Linux-2.6.36-gentoo-r5-i686-Intel-R-_Xeon-R-_CPU_X3430_@_2.40GHz-with-gentoo-2.2
KiB Mem:     2065232 total,    944892 free
KiB Swap:    1044216 total,   1044104 free
Timestamp of tree: Fri, 02 Jan 2015 17:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:          4.2_p53
dev-lang/perl:            5.12.3-r1
dev-lang/python:          2.6.4-r1, 2.7.9-r1, 3.3.5-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.6.4-r3
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake: 1.9.6-r2::<unknown repository>, 1.11.1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.3.4, 4.4.4-r2, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.11.2-r3
Repositories: gentoo local_overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/
/etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
/etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified
distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch
preserve-libs protect-owned sandbox sfperms strict unknown-features-warn
unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="   http://gentoo.osuosl.org/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://www.gtlib.gatech.edu/pub/gentoo
http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/
http://gentoo.seren.com/gentoo   http://gentoo.chem.wisc.edu/gentoo/
http://cudlug.cudenver.edu/gentoo/   http://gentoo.mirrors.pair.com/
http://gentoo.mirrors.tds.net/gentoo   http://gentoo.netnitco.net
http://mirror.espri.arizona.edu/gentoo/
http://mirrors.acm.cs.rpi.edu/gentoo/   http://gentoo.llarian.net/
http://mirror.datapipe.net/gentoo   http://gentoo.cs.lewisu.edu/gentoo/
  http://prometheus.cs.wmich.edu/gentoo
http://mirror.usu.edu/mirrors/gentoo/
http://mirror.phy.olemiss.edu/mirror/gentoo
http://mirror.mcs.anl.gov/pub/gentoo/
http://gentoo.cites.uiuc.edu/pub/gentoo/
http://mirror.clarkson.edu/pub/distributions/gentoo/
http://www.las.ic.unicamp.br/pub/gentoo/";
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="acl acpi apache2 berkdb bzip2 cli cracklib crypt cups cxx dri
fortran gdbm iconv imagemagick mcal modules ncurses nls nptl openmp pam
pcre php readline samba session sse ssl tcpd unicode x86 xml2 zlib"
ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x
ca0106 cmipci emu10k1 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="kexi words flow plan sheets
stage tables krita karbon braindump author" CAMERAS="ptp2"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18
garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate
tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" 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-5" PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20"
USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128
radeon savage sis tdfx trident vesa via vmware 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


Thanks for any pointers!

best, Stefan

Try to fetch some older portage snapshots http://dev.gentoo.org/~swift/snapshots/ and update in steps, not as a 4 year giant leap. Try to fetch snapshot 2011, then upgrade, then 2012, upgrade... It takes more time, but it should work.

Reply via email to