Cannot upgrade mysql to version dev-db/mysql-5.6.27 on my PPC (G4) machine: [ 47%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/api/api0api.cc.o cd /home/tmp/portage/dev-db/mysql-5.6.27/work/mysql-abi_ppc_32.ppc/storage/innobase && /usr/bin/powerpc-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS_BYTE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DLINUX_NATIVE_AIO=1 -DSIZEOF_PTHREAD_T=4 -O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -fomit-frame-pointer -pipe -fno-strict-aliasing -felide-constructors -fno-exceptions -fno-rtti -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -DNDEBUG -DDBUG_OFF -I/home/tmp/portage/dev-db/mysql-5.6.27/work/mysql-abi_ppc_32.ppc/include -I/home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/storage/innobase/include -I/home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/storage/innobase/handler -I/home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/include -I/home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/sql -I/home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/regex -DUNIV_LINUX -D_GNU_SOURCE=1 -o CMakeFiles/innobase.dir/api/api0api.cc.o -c /home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/storage/innobase/api/api0api.cc In file included from /home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/storage/innobase/include/ut0ut.h:36:0, from /home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/storage/innobase/include/univ.i:602, from /home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/storage/innobase/api/api0api.cc:27: /home/tmp/portage/dev-db/mysql-5.6.27/work/mysql/storage/innobase/include/os0sync.h:504:4: error: #error "Unsupported platform" $ emerge -pv mysql These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] dev-db/mysql-5.6.27:0/18::gentoo [5.6.26:0/18::gentoo] USE="jemalloc openssl perl -debug -embedded -extraengine -latin1 (-libressl) -minimal -profiling (-selinux) -static -static-libs -systemtap (-tcmalloc) {-test} -yassl" 0 KiB Reproducible: Always
Please attach the full build.log as an attachment and emerge --info as a comment
Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/powerpc/ppc32/13.0, gcc-4.6.4, glibc-2.21-r1, 4.0.9-gentoo ppc) ================================================================= System uname: Linux-4.0.9-gentoo-ppc-7447A,_altivec_supported-with-gentoo-2.2 KiB Mem: 1023588 total, 116584 free KiB Swap: 1048572 total, 1033928 free Timestamp of repository gentoo: Thu, 12 Nov 2015 10:00:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.8.5-r4::gentoo, 1.10.3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.6.4::gentoo, 4.7.4::gentoo, 4.8.5::gentoo, 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="ppc" ACCEPT_LICENSE="*" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -fomit-frame-pointer -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/bind /var/lib/hsqldb /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=100" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="7zip R Xaw3d a52 aac aacplus aacs aalib acl adns adobe-cff aio alisp alsa alstream altivec amr amrenc animgif ao apache2 apm apng archive arpack asf asm ass athena audio auto-hinter autoconf-archive autotrace aux_xml badval bash-completion bazaar bcmath berkdb bidi bitmap bittorrent blas blksha1 bluray bzip2 c++0x cacert cairo calendar caps caps-ng capslib catalogs cblas cdf cdio cdparanoia cgi chappa chicken chm cholmod city clamd clamdtop classic cleartype cli client client-libs clisp clucene combination-explosion-check common-lisp community conntrack consolekit contrib convert-mozilla-cookies cpufreq cracklib cramfs cron crypt cryptsetup crywrap cscope css ctype ctypes-python curl cvs cxx daemon dbi dbus ddate default-font deprecated devfs-compat dirac discard-path discouraged djbfft djvu dns dri dri3 drmaa drop-root dts dv dvb dvbpsi dvd dvdnav e2fsprogs ebook ecap edd edit elisp emacs enca encode enscript eselect etiquette excel exceptions exif expat exporter extensions extra-tools extras faac faad fame fdformat fdk ffmpeg fftw filecaps filter filter-aaaa findbugs finger fingerprint firmware-loader fits fixed-rrset flac fluidsynth fontconfig fontforge fortran fortran2003 fpx frei0r ftp fts3 gadu gcrypt gd gdbm geoip geos gif ginac git glep glib glibc-omitfp glpk gmath gme gml gmp gnuplot gnutls gopher gost gpg gphoto2 gpl gptfdisk graph graphviz grp gs gsettings gsl gsm gstreamer gudev guile gunit gzip-el hal hardcoded-tables harfbuzz hash hdf5 heterogeneous hires-icons hlapi hog http hwdb i18n ibam icap-client iconv id3tag idn iec61883 ieee1394 imagemagick imapc imlib inifile iodbc ipc iproute2 iptables ipv6 ipython isag iso jabber jack jai java java6 javacomm javamail javascript jbig jemalloc jit jmf jms jpeg jpeg2k json keymap kmod kpathsea ladspa lame lapack laptop largefile lash lasi lcms less libass libcaca libcanberra libffi libmms libproxy librtmp libs libsamplerate libssh2 libtar libv4l libwww libxml2 libyaml linuxkeys listen-queue live llvm logrotate lua luatex lucene lvm1 lz4 lzma lzo m17n-lib mad magic math mbox mclib mcve md5sum mercurial metadata-analysis-api metalink metis mew mhash mikmod mime minizip mjpeg mmap mms mng mod mode-owner modern-top modplug modules motif motif22-compatibility mouse mozsha1 mp3 mp4 mpeg mpg123 mta mudflap multicall musepack mvl mzscheme native-exceptions natspec ncat ncurses ndiff net netcdf netgroups netifrc netlink nettle network networking new-clx nfacct nfct nflog nls nmap-update nntp no-old-linux nodrm nping nptl nscd nslint nss nss-pem ntlm ntp numpy nut objc objc++ objc-gc ocaml ocamlopt odbc odt-schema offensive ogdi ogg ogm oom openal openmp openpty openrc openssl opus osmesa pac pam pari pasteafter pbs pcap pci pcntl pcre pdf pdfannotextractor pdo perl perl-geoipupdate pg-intdatetime pgm pgo phar php physfs pic pie playtools plotutils plugins pm-utils png pnm policykit portage portaudio posix postgres postproc postscript ppc ppcsha1 prelink proj proxy pth pwquality python qhull qos qpak quicktime quvi radio raw rcs readline real recursion-limit redland reencrypt reflection regex rle romio rpm rrdtool rss rtc rtmp ruby sasl scale0tilt screen script sctp sdl sdlgfx securetty sendmail serial server session sftp sha512 sharedext sharedmem shm sid sigsegv simplexml slang smi smime smpeg sms sndfile snmp soap sockets sound soundex speex spell spidermonkey spl sql sqlite3 srv ssl static-analyzer staticsocket subversion suexec suhosin supernodal svg svm syslog system-jsoncpp sysvipc szip t1lib tcl tcpd tdb tdbtest tga theora thin-splines threads threadsafe tidy tiff tilepath tk tokenizer toolame toolbar toolkit-scroll-bars tools tremor truetype tty-helpers twisted twolame type3 udev udisks unicode units_cur unlock-notify unwind update-alternatives usb utils uuid v4l v4l2 valgrind verify-file video vim vim-pager vorbis vpx wad wavpack wddx web webdav webdav-neon webp wmf x264 xbase xcb xforward xft xgetdefault xinetd xls xml xmlreader xmlwriter xmp xmpp xpdf-headers xpm xsl xslt xterm xtradb xvid xz yaz yv12 zip zlib zvbi" ABI_PPC="32" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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 asis imagemap proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http cgi" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon spca50x template" 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 ublox 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" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="dummy radeon" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
(In reply to Paul Osmialowski from comment #2) > Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/powerpc/ppc32/13.0, > gcc-4.6.4, glibc-2.21-r1, 4.0.9-gentoo ppc) > ================================================================= > sys-devel/gcc: 4.6.4::gentoo, 4.7.4::gentoo, 4.8.5::gentoo, > 4.9.3::gentoo Does it work if you select a new version of gcc? 4.6.4 may not have the full atomics that the new mysql needs
If it does work, I would love to know the minimum version. A simple test program: #include<stdint.h> int main() { unsigned char c; __atomic_test_and_set(&c, __ATOMIC_ACQUIRE); __atomic_clear(&c, __ATOMIC_RELEASE); return(0); }
I assume you wanted me to do following: $ gcc-4.6.4 -Wall -o atomic atomic.c atomic.c: In function 'main': atomic.c:7:5: warning: implicit declaration of function '__atomic_test_and_set' [-Wimplicit-function-declaration] atomic.c:7:31: error: '__ATOMIC_ACQUIRE' undeclared (first use in this function) atomic.c:7:31: note: each undeclared identifier is reported only once for each function it appears in atomic.c:8:5: warning: implicit declaration of function '__atomic_clear' [-Wimplicit-function-declaration] atomic.c:8:24: error: '__ATOMIC_RELEASE' undeclared (first use in this function) $ gcc-4.7.4 -Wall -o atomic atomic.c $ ./atomic $ gcc-4.8.5 -Wall -o atomic atomic.c $ ./atomic $ gcc-4.9.3 -Wall -o atomic atomic.c $ ./atomic
(In reply to Paul Osmialowski from comment #5) > I assume you wanted me to do following: > > $ gcc-4.6.4 -Wall -o atomic atomic.c > atomic.c: In function 'main': > atomic.c:7:5: warning: implicit declaration of function > '__atomic_test_and_set' [-Wimplicit-function-declaration] > atomic.c:7:31: error: '__ATOMIC_ACQUIRE' undeclared (first use in this > function) > atomic.c:7:31: note: each undeclared identifier is reported only once for > each function it appears in > atomic.c:8:5: warning: implicit declaration of function '__atomic_clear' > [-Wimplicit-function-declaration] > atomic.c:8:24: error: '__ATOMIC_RELEASE' undeclared (first use in this > function) > $ gcc-4.7.4 -Wall -o atomic atomic.c > $ ./atomic > $ gcc-4.8.5 -Wall -o atomic atomic.c > $ ./atomic > $ gcc-4.9.3 -Wall -o atomic atomic.c > $ ./atomic As I suspected, gcc-4.7 is the minimum version. I will adjust the ebuilds shortly.
Eclass updated to make sure gcc-4.7 or higher is selected for non x86{,_64} arches
Meanwhile I was able to build dev-db/mysql-5.6.2 with gcc-4.8.5 - note that it takes more than an hour on G4.
As this is related to InnoDB, does it really make sense to require gcc >=4.7 when building client only (USE=-server)?