Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270492 - app-portage/eix-0.16.0 fails to compile with glibc-2.10.1: error: invalid conversion from 'const char*' to 'char*'
Summary: app-portage/eix-0.16.0 fails to compile with glibc-2.10.1: error: invalid con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Väth
URL: http://udrepper.livejournal.com/20948...
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.10
  Show dependency tree
 
Reported: 2009-05-19 20:29 UTC by Conrad Kostecki
Modified: 2009-05-22 18:13 UTC (History)
4 users (show)

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


Attachments
Fix for strange warning with gcc-4.4 and glibc-2.10 (eix-0.16.0-glibc-and-gcc.patch,832 bytes, patch)
2009-05-22 18:02 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2009-05-19 20:29:49 UTC
Hi!
I am unable to compile app-portage/eix-0.16.0.

USING CFLAGS: -march=core2 -O2 -pipe
USING LDFLAGS: -none-

Error is:

        mv -f $depbase.Tpo $depbase.Po
depbase=`echo output/formatstring-print.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..    -DSYSCONFDIR=\"/etc\" -DLOCALEDIR=\"/usr/share/locale\" -march=core2 -O2 -pipe -MT output/formatstring-print.o -MD -MP -MF $depbase.Tpo -c -o output/formatstring-print.o output/formatstring-print.cc &&\
        mv -f $depbase.Tpo $depbase.Po
output/formatstring.cc: In member function 'FormatParser::ParserState FormatParser::state_COLOR()':
output/formatstring.cc:281: error: invalid conversion from 'const char*' to 'char*'
output/formatstring.cc: In member function 'FormatParser::ParserState FormatParser::state_PROPERTY()':
output/formatstring.cc:302: error: invalid conversion from 'const char*' to 'char*'
make[2]: *** [output/formatstring.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/app-portage/eix-0.16.0/work/eix-0.16.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-portage/eix-0.16.0/work/eix-0.16.0'
make: *** [all] Error 2
 *
 * ERROR: app-portage/eix-0.16.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line  813:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake 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/app-portage/eix-0.16.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/eix-0.16.0/temp/environment'.
 *
Comment 1 Conrad Kostecki gentoo-dev 2009-05-19 20:30:10 UTC
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.4.0, glibc-2.10.1-r0, 2.6.29-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L9400_@_1.86GHz-with-gentoo-2.0.0
Timestamp of tree: Tue, 19 May 2009 19:45:01 +0000
app-shells/bash:     4.0_p24
dev-lang/python:     2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-f9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 bzip2 gpm iconv ipv6 multilib ncurses nls pam readline slang ssl symlink tcpd threads unicode zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Chris Smith 2009-05-20 17:08:00 UTC
Ditto
Comment 3 Martin Väth 2009-05-22 18:02:31 UTC
Created attachment 192138 [details, diff]
Fix for strange warning with gcc-4.4 and glibc-2.10

I will wait a while (at least a week or two) for further reports before
I release the new eix-0.16.1 - currently the attached patch is the only change.

Until then you can either use the svn version of eix or apply that patch.

Besides the glibc-2.10 problem it also fixes some dangerous strict-alias warnings
of gcc-4.4 which I do not understand and which might as well be a bug of gcc-4.4.
However, avoiding a redundant "virtual" seems to be a workaround.
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-22 18:13:44 UTC
+  22 May 2009; Peter Alfredsen <loki_val@gentoo.org> eix-0.16.0.ebuild,
+  +files/eix-0.16.0-glibc-2.10.patch:
+  Fix glibc-2.10 build, bug 270492. ++ to Martin Väth
+  <vaeth@mathematik.uni-wuerzburg.de> for the patch.
+