Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117548 - [GCC 4] botan-1.4.9 fails to compile with GCC 4.0.2
Summary: [GCC 4] botan-1.4.9 fails to compile with GCC 4.0.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-01-03 00:59 UTC by Dirk Heinrichs
Modified: 2006-01-06 00:43 UTC (History)
1 user (show)

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


Attachments
patch for 1.4.9 configure.pl gcc autodetection (configure.pl.patch,493 bytes, patch)
2006-01-03 04:43 UTC, Jack Lloyd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Heinrichs 2006-01-03 00:59:25 UTC
Compiling with GCC 3.4.5 works fine.

When compiling with GCC 4.0.2 I get the following error:

g++ -Ibuild/include -O3 -march=pentium4 -fomit-frame-pointer -pipe  -D_REENTRANT -ansi -Wno-long-long -W -Wall -fPIC -c src/des_tab.cpp -o build/lib/des_tab.o
src/des_tab.cpp:371: error: integer constant is too large for 'long' type
src/des_tab.cpp:371: error: integer constant is too large for 'long' type
src/des_tab.cpp:372: error: integer constant is too large for 'long' type
src/des_tab.cpp:372: error: integer constant is too large for 'long' type
src/des_tab.cpp:372: error: integer constant is too large for 'long' type
src/des_tab.cpp:372: error: integer constant is too large for 'long' type
src/des_tab.cpp:373: error: integer constant is too large for 'long' type
src/des_tab.cpp:373: error: integer constant is too large for 'long' type
src/des_tab.cpp:374: error: integer constant is too large for 'long' type
src/des_tab.cpp:374: error: integer constant is too large for 'long' type
src/des_tab.cpp:374: error: integer constant is too large for 'long' type
src/des_tab.cpp:374: error: integer constant is too large for 'long' type
src/des_tab.cpp:375: error: integer constant is too large for 'long' type
src/des_tab.cpp:375: error: integer constant is too large for 'long' type
src/des_tab.cpp:375: error: integer constant is too large for 'long' type
src/des_tab.cpp:375: error: integer constant is too large for 'long' type
src/des_tab.cpp:376: error: integer constant is too large for 'long' type
src/des_tab.cpp:376: error: integer constant is too large for 'long' type
src/des_tab.cpp:376: error: integer constant is too large for 'long' type
src/des_tab.cpp:376: error: integer constant is too large for 'long' type
[Many more lines with the same error msg skipped]

It seems what was just a warning in GCC 3.4 has become an error in GCC 4.




Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r1, 2.6.14.4 i686)
=================================================================
System uname: 2.6.14.4 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.0_pre12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/gentoo/build"
PORTDIR="/gentoo/portage"
PORTDIR_OVERLAY="/gentoo/build/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acl acpi activefilter ada afs alsa aotuv arts asf audiofile avi bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 caps cdb cdda cddb cdio cdparanoia cdr chipcard client-only cpudetection crypt cups dlloader doc dri dtaus dv dvd dvdread edl emacs emboss encode exif expat fam ffmpeg flac font-server foomaticdb ftp gd-external gdbm geldkarte gif glut gmp gnutls gphoto2 gpm gtk2 hardened hbci httpd icq idn imagemagick imap imlib ipppd irda irmc isdnlog jpeg jpeg2k kcal kde kerberos latex lcms ldap libg++ libwww lm_sensors lua lzo mad madwifi maildir mbox mime mng motif mozsvg mp3 mpeg mule musicbrainz nas ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin objc ofx ogg oggvorbis openexr opengl pam pam_console pcre pdflib perl perlsuid pg-intdatetime pic png postgres ppds pppd pwdb python qt quicktime rdesktop readline real recode rtc savedconfig slang slp sms sockets socks5 speedo speex spell sql sse ssl stream subversion svg svga symlink sysfs tcpd tetex theora threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vim-with-x vlm vorbis wifi win32codecs wxwindows xine xml2 xprint xscreensaver xv xvid xvmc zeroconf zlib elibc_glibc kernel_linux linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Jack Lloyd 2006-01-03 04:43:00 UTC
This combination is unhappy (that version of Botan doesn't detected GCC 4, so it doesn't enable the long long workarounds). Try 1.4.11 if possible (not in portage yet AFAIK). I've attached a patch against the 1.4.9 configure.pl that should fix this.

(In reply to comment #0)
> Compiling with GCC 3.4.5 works fine.
> 
> When compiling with GCC 4.0.2 I get the following error:
> 
> 
Comment 2 Jack Lloyd 2006-01-03 04:43:34 UTC
Created attachment 76065 [details, diff]
patch for 1.4.9 configure.pl gcc autodetection
Comment 3 Dirk Heinrichs 2006-01-03 04:58:32 UTC
I tried both 1.4.9 with your patch and version 1.4.11. Both compile fine with
GCC 4.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2006-01-03 05:21:11 UTC
Thanks peoples. Harrass me if I don't commit this too soon. (and the version bump)
Comment 5 Daniel Black (RETIRED) gentoo-dev 2006-01-06 00:14:07 UTC
gcc-4 problems fixed in 1.4.9 and 1.4.11 (just added).

Lloyd - we probably should up the stable version a bit. Do you want to make it 1.4.9 now or wait a couple of weeks and push for 1.4.11?
Comment 6 Jack Lloyd 2006-01-06 00:43:06 UTC
There are a few bug fixes in 1.4.10/11, but nothing very serious, and 1.4.9 was released a couple of months ago. So, I have more confidence now that 1.4.9 is a solid release than I probably will that 1.4.11 is in a week or two.