Upgraded gcc to 4.1.2 from gcc 3.xx using guikde on the site. Issued emerge -uav system. The compilation failed on db package. since trying to merge by using emerge -v db. Tried to merge older version with same problem. Reproducible: Always Steps to Reproduce: 1.emerge -v db Actual Results: The partial output : db_server_xdr.c: In function 'xdr___dbc_c_put_msg': db_server_xdr.c:2534: error: invalid lvalue in increment db_server_xdr.c:2535: error: invalid lvalue in increment db_server_xdr.c:2536: error: invalid lvalue in increment db_server_xdr.c:2537: error: invalid lvalue in increment db_server_xdr.c:2538: error: invalid lvalue in increment db_server_xdr.c:2554: error: invalid lvalue in increment db_server_xdr.c:2555: error: invalid lvalue in increment db_server_xdr.c:2556: error: invalid lvalue in increment db_server_xdr.c:2557: error: invalid lvalue in increment db_server_xdr.c:2579: error: invalid lvalue in increment db_server_xdr.c:2580: error: invalid lvalue in increment db_server_xdr.c:2581: error: invalid lvalue in increment db_server_xdr.c:2582: error: invalid lvalue in increment db_server_xdr.c:2583: error: invalid lvalue in increment db_server_xdr.c:2599: error: invalid lvalue in increment db_server_xdr.c:2600: error: invalid lvalue in increment db_server_xdr.c:2601: error: invalid lvalue in increment db_server_xdr.c:2602: error: invalid lvalue in increment make: *** [db_server_xdr.lo] Error 1 * * ERROR: sys-libs/db-4.5.20_p2 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * db-4.5.20_p2.ebuild, line 115: Called die * The specific snippet of code: * emake -j1 || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-libs/db-4.5.20_p2/temp/build.log'. * The emerge --info Portage 2.1.3.19 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.3.2-r9, 2.6.15 i686) ================================================================= System uname: 2.6.15 i686 Celeron (Mendocino) Timestamp of tree: Wed, 13 Feb 2008 22:29:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.8.12 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.8.3, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.4.3-r4, 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo http://gentoo.oregonstate.edu" PKGDIR="/mnt/hdb4/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb bitmap-fonts cdr cli cracklib crypt cups dri dvd fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppds pppd python qt readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib ~x86" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Expected Results: Package merged successfully
Created attachment 143483 [details] The build log
Erm... it compiles perfectly fine here w/ gcc-4.2.2. Post emerge -pv =sys-libs/db-4.5.20_p2 output.
(In reply to comment #2) > Erm... it compiles perfectly fine here w/ gcc-4.2.2. Post emerge -pv > =sys-libs/db-4.5.20_p2 output. The output: emerge -pv =sys-libs/db-4.5.20_p2 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-libs/db-4.5.20_p2 USE="-bootstrap -doc -java -nocxx -tcl -test" 0 kB Total: 1 package (1 new), Size of downloads: 0 kB
Created attachment 143485 [details] The output of "emerge -evp system"
Output of gcc-config -l [1] i586-pc-linux-gnu-3.3.2 [2] i686-pc-linux-gnu-4.1.2 *
I noticed that "emerge -evp system" contains : [ebuild U ] sys-libs/glibc-2.6.1 [2.3.2-r9] USE="nls -debug% -gd% -glibc-omitfp% (-hardened) (-multilib) -profile% (-selinux) -vanilla% (-build%) (-nptl%) (-pic%)" 0 kB " long after the db package. Could it be the source of the problem? Should the glibc updated before any other package in the system?
Found the problem, circular dependency in my enviroment: Perl not installed. glibs depends on perl(something locale related?), perl depends on db and db depends on glibc. Solution: merge perl without berkdb merge glibc merge db
Closing.