Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mysql-5.6.12 compile fail please help me
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
gbling
n00b
n00b


Joined: 02 Aug 2013
Posts: 5

PostPosted: Fri Aug 02, 2013 8:40 am    Post subject: mysql-5.6.12 compile fail please help me Reply with quote

this is emerge --info:

localhost mysql-5.6.12 # emerge --info
Portage 2.1.12.2 (default/linux/sparc/13.0/desktop, gcc-4.5.4, glibc-2.15-r3, 3.8.13-gentoo sparc64)
=================================================================
System uname: Linux-3.8.13-gentoo-sparc64-sun4u-with-gentoo-2.1
KiB Mem: 1023264 total, 46864 free
KiB Swap: 524280 total, 523224 free
Timestamp of tree: Sat, 27 Jul 2013 06:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p37
dev-lang/python: 2.7.3-r3, 3.2.3
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.69
sys-devel/automake: 1.11.6, 1.12.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.5.4
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="sparc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-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"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/ http://mirrors.xmu.edu.cn/gentoo/"
LANG="es_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage/"
USE="X a52 aac acl alsa berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gcc64 gdbm gif gpm iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session sparc spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga r128 radeon sunbw2 suncg14 suncg3 suncg6 sunffb sunleo tdfx dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


this is the error:
Linking CXX static library libslave.a
[ 63%] Built target slave
[ 63%] Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/pfs_connect_attr-t.cc.o
[ 63%] Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/__/__/__/sql/sql_builtin.cc.o
[ 63%] Building C object storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/__/__/__/mysys/string.c.o
Linking CXX executable pfs_connect_attr-t
../../../sql/libbinlog.a(binlog.cc.o): In function `__exchange_and_add':
/usr/lib/gcc/sparc-unknown-linux-gnu/4.5.4/include/g++-v4/ext/atomicity.h:49: undefined reference to ` :oops: __sync_fetch_and_add_4'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.5.4/include/g++-v4/ext/atomicity.h:49: undefined reference to ` :oops: __sync_fetch_and_add_4'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.5.4/include/g++-v4/ext/atomicity.h:49: undefined reference to ` :oops: __sync_fetch_and_add_4'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.5.4/include/g++-v4/ext/atomicity.h:49: undefined reference to ` :oops: __sync_fetch_and_add_4'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.5.4/include/g++-v4/ext/atomicity.h:49: undefined reference to ` :oops: __sync_fetch_and_add_4'
../../../sql/libbinlog.a(binlog.cc.o):/usr/lib/gcc/sparc-unknown-linux-gnu/4.5.4/include/g++-v4/ext/atomicity.h:49: more undefined references to `__sync_fetch_and_add_4' follow
collect2: ld returned 1 exit status
make[2]: *** [storage/perfschema/unittest/pfs_connect_attr-t] Error 1
make[1]: *** [storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all] Error 2
make: *** [all] Error 2





I see some people set -march=i586 then compile success,but SPARC don't have -march option,please tell me how to fix it .
Back to top
View user's profile Send private message
gbling
n00b
n00b


Joined: 02 Aug 2013
Posts: 5

PostPosted: Fri Aug 02, 2013 1:05 pm    Post subject: more information Reply with quote

localhost ext # uname -r
3.8.13-gentoo

localhost ext # uname -m
sparc64

localhost ext # cat /proc/cpuinfo
cpu : TI UltraSparc IIe (Hummingbird)
fpu : UltraSparc IIe integrated FPU
pmu : ultra12
prom : OBP 4.0.18 2002/05/23 18:22
type : sun4u
ncpus probed : 1
ncpus active : 1
D$ parity tl1 : 0
I$ parity tl1 : 0
cpucaps : flush,stbar,swap,muldiv,v9,mul32,div32,v8plus,vis
Cpu0ClkTck : 0000000020a9d100
MMU Type : Spitfire
MMU PGSZs : 8K,64K,512K,4MB
State:
CPU0: online
Back to top
View user's profile Send private message
gbling
n00b
n00b


Joined: 02 Aug 2013
Posts: 5

PostPosted: Sat Aug 03, 2013 2:43 am    Post subject: this is gcc information Reply with quote

localhost ~ # gcc -v
Using built-in specs.
COLLECT_GCC=/usr/sparc-unknown-linux-gnu/gcc-bin/4.5.4/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/sparc-unknown-linux-gnu/4.5.4/lto-wrapper
Target: sparc-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.5.4/work/gcc-4.5.4/configure --prefix=/usr --bindir=/usr/sparc-unknown-linux-gnu/gcc-bin/4.5.4 --includedir=/usr/lib/gcc/sparc-unknown-linux-gnu/4.5.4/include --datadir=/usr/share/gcc-data/sparc-unknown-linux-gnu/4.5.4 --mandir=/usr/share/gcc-data/sparc-unknown-linux-gnu/4.5.4/man --infodir=/usr/share/gcc-data/sparc-unknown-linux-gnu/4.5.4/info --with-gxx-include-dir=/usr/lib/gcc/sparc-unknown-linux-gnu/4.5.4/include/g++-v4 --host=sparc-unknown-linux-gnu --build=sparc-unknown-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/sparc-unknown-linux-gnu/4.5.4/python --enable-checking=release --disable-libgcj --enable-libstdcxx-time --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.4 p1.1, pie-0.4.7'
Thread model: posix
gcc version 4.5.4 (Gentoo 4.5.4 p1.1, pie-0.4.7)
Back to top
View user's profile Send private message
gbling
n00b
n00b


Joined: 02 Aug 2013
Posts: 5

PostPosted: Sat Aug 03, 2013 2:45 am    Post subject: aaa Reply with quote

I try to use these command

CFLAGS="-O3 -mcpu=v9 -pipe"
CFLAGS="-O3 -mcpu=v9 -pipe"
CFLAGS="-O3 -mcpu=v8plugs -pipe"
CFLAGS="-O3 -mcpu=sparc64 -pipe"
CFLAGS="-O3 -mcpu=ultrasparc -pipe"
CFLAGS="-O3 -mcpu=native -pipe"
CFLAGS="-O3 -mcpu=spraclite -pipe"
CFLAGS="-O3 -mcpu=i686 -pipe"

but it's not ok
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 7820

PostPosted: Mon Aug 05, 2013 3:25 am    Post subject: Reply with quote

Take this for what it is worth, given that I am not presently a Sparc user and do not have access to one to test this either way. Based on the error itself I would suggest attempting to build mysql with a different version of gcc (such as 4.4.7 which is also stable on sparc), with CFLAGS set according to the usual recommendations.

Moved from Portage & Programming to Gentoo on Sparc, given my suspicion that this is likely architecture specific.
Back to top
View user's profile Send private message
gbling
n00b
n00b


Joined: 02 Aug 2013
Posts: 5

PostPosted: Mon Aug 05, 2013 3:43 am    Post subject: Reply with quote

thank you very much :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum