Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151007 - dev-db/mysql-5.0.24-r1 fails to compile on sparc/linux
Summary: dev-db/mysql-5.0.24-r1 fails to compile on sparc/linux
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-12 06:14 UTC by Narancs
Modified: 2006-11-07 12:43 UTC (History)
0 users

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


Attachments
configure log (config.log.gz,12.76 KB, application/gzip)
2006-10-12 06:16 UTC, Narancs
Details
Uncompressed configure log (config.log,236.01 KB, text/plain)
2006-10-13 21:12 UTC, Jason Wever (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Narancs 2006-10-12 06:14:29 UTC
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/mysql-5.0.24-r1/work/mysql/config.log

!!! ERROR: dev-db/mysql-5.0.24-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called mysql_src_compile
  mysql.eclass, line 419:   Called econf '--libexecdir=/usr/sbin' '--sysconfdir=/etc/mysql' '--localstatedir=/var/lib/mysql' '--sharedstatedir=/usr/share/mysql' '--libdir=/usr/lib/mysql' '--includedir=/usr/include/mysql' '--with-low-memory' '--enable-local-infile' '--with-mysqld-user=mysql' '--with-client-ldflags=-lstdc++' '--enable-thread-safe-client' '--with-comment=Gentoo Linux mysql-5.0.24-r1' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--without-readline' '--without-docs' '--enable-shared' '--enable-static' '--without-libwrap' '--with-openssl' '--without-debug' '--with-server' '--with-extra-tools' '--with-charset=utf8' '--with-collation=utf8_general_ci' '--with-extra-charsets=all' '--without-berkeley-db' '--with-geometry' '--without-ndbcluster' '--without-big-tables' '--without-embedded-privilege-control' '--without-embedded-server' '--with-bench' '--enable-assembler'
  ebuild.sh, line 541:   Called die
Comment 1 Narancs 2006-10-12 06:16:49 UTC
Created attachment 99433 [details]
configure log

configure log gzipped
Comment 2 Narancs 2006-10-12 06:17:42 UTC
Portage 2.1-r2 (default-linux/sparc/sparc64/2006.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.14-hardened-r7 sparc64)
=================================================================
System uname: 2.6.14-hardened-r7 sparc64 unknown
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r6
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe -fomit-frame-pointer -fstack-protector -fPIC"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe -fomit-frame-pointer -fstack-protector -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="ftp://gentoo.inf.elte.hu/ ftp://ftp.nyx.hu/gentoo "
LANG="hu_HU"
LC_ALL="hu_HU"
LINGUAS="hu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="sparc acl apache2 arts bash-completion berkdb bitmap-fonts bzip2 caps cgi clamav cli crypt curl dlloader dri eds encode erandom esd extensions fbcon foomaticdb fortran ftp gcc64 gd gdbm gif glibc-omitfp gnutls gstreamer hardenedphp idn imlib isdnlog jpeg libwww logrotate lzo mad maildir mbox mikmod mime motif mpeg mpm-worker mysql ncurses network nls nptl nptlonly ogg opengl oss pam pcre perl php pic pie png posix postfix pppd python radius readline reflection rrdcgi samba session snmp spl ssl ssp sysvipc threads truetype truetype-fonts type1-fonts udev urandom userlocales verbose vorbis xinetd xml xorg zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_hu userland_GNU video_cards_ati video_cards_dummy video_cards_fbdev video_cards_glint video_cards_mga video_cards_savage video_cards_sisusb video_cards_sunbw2 video_cards_suncg14 video_cards_suncg3 video_cards_suncg6 video_cards_sunffb video_cards_sunleo video_cards_tdfx video_cards_v4l video_cards_voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-10-12 06:34:22 UTC
Uh, don't gzip attachments, please.
Comment 4 Jason Wever (RETIRED) gentoo-dev 2006-10-13 21:12:51 UTC
Created attachment 99631 [details]
Uncompressed configure log
Comment 5 Jason Wever (RETIRED) gentoo-dev 2006-10-13 21:38:27 UTC
So a couple of things here.  Just about anything for CFLAGS/CXXFLAGS on SPARC that isn't "-mcpu=ultrasparc -O2 -pipe" isn't really supported due to problems.  In particular -fomit-frame-pointer is known to be problematic and slow things down on SPARC.

Even though this ebuild isn't stable yet, try without -fomit-frame-pointer and possibly -fPIC.  Using "-mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe" on a stable system here successfully completes the configure script.
Comment 6 Gustavo Zacarias (RETIRED) gentoo-dev 2006-10-20 13:32:25 UTC
-fstack-protector is kinda bad too, we don't support that, if it breaks talk to hardened people.
Comment 7 Gustavo Zacarias (RETIRED) gentoo-dev 2006-11-07 12:43:49 UTC
Reopen if it fails with reasonable CFLAGS.