Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293801 - dev-db/mysql-5.0.84-r1 fails to compile on amd64/hardened
Summary: dev-db/mysql-5.0.84-r1 fails to compile on amd64/hardened
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 05:26 UTC by Postmodern
Modified: 2009-11-20 07:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Postmodern 2009-11-20 05:26:20 UTC
dev-db/mysql-5.0.84-r1 fails to compile on amd64/hardened, during the linking stage of mysql with libtool.

Reproducible: Always

Steps to Reproduce:
1. emerge db-dev/mysql
Actual Results:  
make[3]: Entering directory `/var/tmp/portage/dev-db/mysql-5.0.84-r1/work/mysql/innobase'
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include    -DDBUG_OFF  -DDBUG_OFF -march=athlon64 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-stack-protector-all -fno-strict-aliasing    -DDEBUG_OFF -DUNIV_LINUX -MT btr0btr.lo -MD -MP -MF .deps/btr0btr.Tpo -c -o btr0btr.lo `test -f 'btr/btr0btr.c' || echo './'`btr/btr0btr.c
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include    -DDBUG_OFF  -DDBUG_OFF -march=athlon64 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-stack-protector-all -fno-strict-aliasing    -DDEBUG_OFF -DUNIV_LINUX -MT btr0cur.lo -MD -MP -MF .deps/btr0cur.Tpo -c -o btr0cur.lo `test -f 'btr/btr0cur.c' || echo './'`btr/btr0cur.c
/bin/sh ./libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include    -DDBUG_OFF  -DDBUG_OFF -march=athlon64 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-stack-protector-all -fno-strict-aliasing    -DDEBUG_OFF -DUNIV_LINUX -MT btr0pcur.lo -MD -MP -MF .deps/btr0pcur.Tpo -c -o btr0pcur.lo `test -f 'btr/btr0pcur.c' || echo './'`btr/btr0pcur.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -march=athlon64 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-stack-protector-all -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0btr.lo -MD -MP -MF .deps/btr0btr.Tpo -c btr/btr0btr.c  -fPIC -DPIC -o .libs/btr0btr.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -march=athlon64 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-stack-protector-all -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0cur.lo -MD -MP -MF .deps/btr0cur.Tpo -c btr/btr0cur.c  -fPIC -DPIC -o .libs/btr0cur.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -march=athlon64 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-stack-protector-all -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0pcur.lo -MD -MP -MF .deps/btr0pcur.Tpo -c btr/btr0pcur.c  -fPIC -DPIC -o .libs/btr0pcur.o
In file included from ./include/dict0mem.h:23,
                 from ./include/dict0dict.h:14,
                 from ./include/btr0btr.h:14,
                 from btr/btr0btr.c:9:
./include/sync0rw.h:425:2: #error HAVE_ATOMIC_BUILTINS is not defined. Do you use enough new GCC or compatibles?
./include/sync0rw.h:426:2: #error Or do you use exact options for CFLAGS?
./include/sync0rw.h:427:2: #error e.g. (for x86_32): "-m32 -march=i586 -mtune=i686"
./include/sync0rw.h:428:2: #error e.g. (for Sparc_64): "-m64 -mcpu=v9"
./include/sync0rw.h:429:2: #error Otherwise, this build may be slower than normal version.
In file included from ./include/dict0mem.h:23In file included from ./include/dict0mem.h:23,
                 from ./include/dict0dict.h:14,
                 from ./include/btr0cur.h:13,
                 from btr/btr0cur.c:20:
./include/sync0rw.h:425:2: #error HAVE_ATOMIC_BUILTINS is not defined. Do you use enough new GCC or compatibles?
,
                 from ./include/dict0dict.h:14./include/sync0rw.h:426:2: #error ,
                 from ./include/btr0pcur.h:13Or,
                 from btr/btr0pcur.c:9 :
do ./include/sync0rw.h:425:2:you  use#error  HAVE_ATOMIC_BUILTINSexact  options is for notCFLAGS ?defined
../include/sync0rw.h:427:2:  #error Doe .youg .use  (forenough  newx86_32) :GCC  "-m32 -march=i586 -mtune=i686"or
 ./include/sync0rw.h:428:2:compatibles ?#error e
../include/sync0rw.h:426:2:g.  #error (Orfor  doSparc_64 )you:  "-m64 -mcpu=v9"use
 ./include/sync0rw.h:429:2: #error Otherwise, this build may be slower than normal version.
exact options for CFLAGS?
./include/sync0rw.h:427:2: #error e.g. (for x86_32): "-m32 -march=i586 -mtune=i686"
./include/sync0rw.h:428:2: #error e.g. (for Sparc_64): "-m64 -mcpu=v9"
./include/sync0rw.h:429:2: #error Otherwise, this build may be slower than normal version.
make[3]: *** [btr0pcur.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [btr0cur.lo] Error 1
make[3]: *** [btr0btr.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.84-r1/work/mysql/innobase'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.84-r1/work/mysql/innobase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.84-r1/work/mysql'
make: *** [all] Error 2


Expected Results:  
Success

Portage 2.1.6.13 (hardened/linux/amd64/10.0/desktop, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.28-hardened-r9 x86_64)
=================================================================
System uname: Linux-2.6.28-hardened-r9-x86_64-AMD_Athlon-tm-_64_Processor_3400+-with-gentoo-1.12.13
Timestamp of tree: Fri, 20 Nov 2009 04:55:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt dbus dri dts dvd dvdr eds emboss encode fam firefox flac gdbm gif gnome gpm gstreamer gtk hal hardened iconv jpeg justify libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib ncurses network nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png ppds pppd python quicktime readline reflection sdl session spell spl sqlite3 sse sse2 ssl startup-notification svg sysfs tcpd theora thunar tiff truetype unicode urandom usb vorbis x264 xml xorg xulrunner xv xvid 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 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Gef 2009-11-20 06:23:24 UTC
>=dev-db/mysql-5.0.83 as a DEPEND on >=gcc-4:

DEPEND="|| ( >=sys-devel/gcc-4 >=sys-devel/gcc-apple-4 )"

Selected compiler on your system is gcc-3.4.6. You may have emerged gcc:4.1 or gcc:4.3 but forgotten to switch gcc profile with /usr/bin/gcc-config
Comment 2 Postmodern 2009-11-20 07:54:26 UTC
That fixed it. Thank you.