Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210111 - sys-libs/db-4.5.20_p2 failed to compile with gcc 4.1.2
Summary: sys-libs/db-4.5.20_p2 failed to compile with gcc 4.1.2
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 10:16 UTC by Yuly B
Modified: 2008-02-16 15:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The build log (build.log,84.61 KB, text/plain)
2008-02-14 10:19 UTC, Yuly B
Details
The output of "emerge -evp system" (emerge_epv_output.txt,7.44 KB, text/plain)
2008-02-14 10:39 UTC, Yuly B
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuly B 2008-02-14 10:16:54 UTC
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
Comment 1 Yuly B 2008-02-14 10:19:04 UTC
Created attachment 143483 [details]
The build log
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-14 10:26:12 UTC
Erm... it compiles perfectly fine here w/ gcc-4.2.2. Post emerge -pv =sys-libs/db-4.5.20_p2 output.
Comment 3 Yuly B 2008-02-14 10:35:52 UTC
(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

Comment 4 Yuly B 2008-02-14 10:39:43 UTC
Created attachment 143485 [details]
The output of "emerge -evp system"
Comment 5 Yuly B 2008-02-14 10:45:46 UTC
Output of gcc-config  -l
 [1] i586-pc-linux-gnu-3.3.2
 [2] i686-pc-linux-gnu-4.1.2 *
Comment 6 Yuly B 2008-02-14 11:06:56 UTC
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?
Comment 7 Yuly B 2008-02-15 09:45:13 UTC
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
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2008-02-16 15:44:44 UTC
Closing.