Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279204 - dev-db/mysql-5.0.83 can't be built with gcc-3.4.6-r2
Summary: dev-db/mysql-5.0.83 can't be built with gcc-3.4.6-r2
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-26 18:38 UTC by Gef
Modified: 2009-07-27 10:13 UTC (History)
0 users

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


Attachments
error from build.log (partial-build.log,1.27 KB, text/plain)
2009-07-26 18:42 UTC, Gef
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gef 2009-07-26 18:38:58 UTC
A least on amd64, gcc-3.4.6-r2 can't build dev-db/mysql-5.0.83 (see attached build.log).
(gcc-3.4.6-r2 is keyworded amd64, dev-db/mysql-5.0.83 is ~amd64).

If this can't be solved, there should be some code added to ebuild using gcc-major-version function to check for new enough gcc before going further.

[I might understand if this is closed INVA due to mixing branches. (might, not will)].

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-dev/gcc-3.4.6-r2
2. gcc-config x86_64-pc-linux-gnu-3.4.6 && env-update
3. emerge =dev-db/mysql-5.0.83

Actual Results:  
Compile fails (see build.log extract)

Expected Results:  
Compile succeed, or build fails with "You need GCC 4.x for >=dev-db/mysql-5.0.83 to be built."

Portage 2.2_rc33 (default/linux/amd64/2008.0/server, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.27.10-grsec-xxxx-grs-ipv4-64 x86_64)
=================================================================
System uname: Linux-2.6.27.10-grsec-xxxx-grs-ipv4-64-x86_64-Intel-R-_Pentium-R-_4_CPU_3.06GHz-with-glibc2.2.5
Timestamp of tree: Sat, 25 Jul 2009 17:15:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r3
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/local/apache/conf /usr/local/lib/php4 /usr/local/lib/php5 /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/home/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/home/portage/packages"
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="/home/.tmp"
PORTDIR="/home/portage"
PORTDIR_OVERLAY="/home/portage/local/fks-overlay"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="amd64 apache2 berkdb bzip2 cli cracklib crypt curl dri fortran gdbm gpm iconv isdnlog mailwrapper midi mmx mudflap multilib ncurses netboot nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl sse sse2 ssl sysfs tcpd truetype unicode xml xorg 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gef 2009-07-26 18:42:09 UTC
Created attachment 199251 [details]
error from build.log
Comment 2 Wormo (RETIRED) gentoo-dev 2009-07-27 06:32:25 UTC
It would take a lot of work to determine and specify minimum versions of gcc for all the ebuilds in the tree... but why stop there? How about maximum versions as well, how about min and max versions of binutils...? 

When it comes to dependencies on packages in the system set, it's more practical to just specify unusual requirements, like not being able to be built with the standard toolchain.

Sorry, but 3.4.6 is marked as stable for the _3.4_ slot which is no longer considered part of the standard toolchain -- you just can't expect to compile recent versions of arbitrary packages with gcc 3.x. It is nice to still have an old gcc available for compiling old out-of-the-tree code that didn't yet get updated to the gcc 4 level of strictness, but gentoo maintainers have been using gcc 4 as system compiler for quite some time now. Maybe it's time to join us :)
Comment 3 Gef 2009-07-27 10:13:58 UTC
Then I'll have to update my old server to something closer to my gcc-4.4/glibc-2.10 desktop. Thanks for your answer, and for your work.