Created attachment 476250 [details] build log Using gcc-6.3.0 I get /var/tmp/portage/dev-db/mariadb-10.1.24/work/mysql/mysys/my_context.c:207: Error: CFI instruction used without previous .cfi_startproc This is caused by the following inline assembler code __asm__ __volatile__ ( "movq %%rsp, (%[save])\n\t" "movq %[stack], %%rsp\n\t" #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) || __clang__) && \ !defined(__INTEL_COMPILER) /* This emits a DWARF DW_CFA_undefined directive to make the return address undefined. This indicates that this is the top of the stack frame, and helps tools that use DWARF stack unwinding to obtain stack traces. (I use numeric constant to avoid a dependency on libdwarf includes). */ ".cfi_escape 0x07, 16\n\t" #endif "movq %%rbp, 8(%[save])\n\t" "movq %%rbx, 16(%[save])\n\t" "movq %%r12, 24(%[save])\n\t" "movq %%r13, 32(%[save])\n\t" "movq %%r14, 40(%[save])\n\t" "movq %%r15, 48(%[save])\n\t" "leaq 1f(%%rip), %%rax\n\t" "leaq 2f(%%rip), %%rcx\n\t" "movq %%rax, 56(%[save])\n\t" "movq %%rcx, 64(%[save])\n\t" /* Constraint below puts the argument to the user function into %rdi, as needed for the calling convention. */ "callq *%[f]\n\t" "jmpq *56(%[save])\n" /* Come here when operation is done. We do not need to restore callee-save registers, as the called function will do this for us if needed. */ "1:\n\t" "movq (%[save]), %%rsp\n\t" "xorl %[ret], %[ret]\n\t" "jmp 3f\n" /* Come here when operation was suspended. */ "2:\n\t" "movl $1, %[ret]\n" "3:\n" : [ret] "=a" (ret), [f] "+S" (f), /* Need this in %rdi to follow calling convention. */ [d] "+D" (d) : [stack] "a" (c->stack_top), /* Need this in callee-save register to preserve in function call. */ [save] "b" (&c->save[0]) : "rcx", "rdx", "r8", "r9", "r10", "r11", "memory", "cc" ); emerge --info dev-db/mariadb Portage 2.3.6 (python 3.6.1-final-0, default/linux/amd64/13.0/desktop, gcc-6.3.0, glibc-2.25, 4.11.2-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.11.2-gentoo-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.4.1 KiB Mem: 7903448 total, 249592 free KiB Swap: 4194300 total, 4193020 free Timestamp of repository gentoo: Tue, 13 Jun 2017 05:45:01 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 ccache version 3.3.4 [disabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::local dev-lang/perl: 5.24.1-r2::gentoo dev-lang/python: 2.7.13::gentoo, 3.6.1-r1::gentoo dev-util/ccache: 3.3.4::gentoo dev-util/cmake: 3.8.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1::gentoo sys-apps/openrc: 0.27.2::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r3::gentoo sys-devel/automake: 1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo, 2.28-r2::gentoo sys-devel/gcc: 5.4.0-r3::gentoo, 6.3.0::gentoo, 7.1.0-r1::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.25::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.informatik.rwth-aachen.de/gentoo-portage priority: -1000 java location: /usr/local/portage/layman/java sync-type: git sync-uri: git://anongit.gentoo.org/proj/java.git masters: gentoo priority: 50 lisp location: /usr/local/portage/layman/lisp sync-type: git sync-uri: git://anongit.gentoo.org/proj/lisp.git masters: gentoo priority: 50 nx location: /usr/local/portage/layman/nx sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/proj/nx.git masters: gentoo priority: 50 octave location: /usr/local/portage/layman/octave sync-type: git sync-uri: git://github.com/rafaelmartins/octave-overlay.git masters: gentoo priority: 50 palemoon location: /usr/local/portage/layman/palemoon sync-type: git sync-uri: https://github.com/deuiore/palemoon-overlay.git masters: gentoo priority: 50 science location: /usr/local/portage/layman/science sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/sci.git masters: gentoo priority: 50 seden location: /usr/local/portage/layman/seden sync-type: laymansync sync-uri: git://anongit.gentoo.org/user/seden.git masters: gentoo priority: 50 local location: /usr/local/portage masters: gentoo priority: 99 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -msse3 -pipe -fPIC -fno-unwind-tables -fno-asynchronous-unwind-tables" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -msse3 -pipe -fPIC -fno-unwind-tables -fno-asynchronous-unwind-tables" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg 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 xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo " LANG="en_US.iso88591" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gcj gdbm gfortran gif gimp glamor gpm gtk gtk3 iconv ipv6 jpeg lapack lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds python qt qt3support qt4 qt5 readline sdl seccomp session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xulrunner xv xvid zlib" ABI_X86="64" 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" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow mmx 3dnowext mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc multiboot" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi r600" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= dev-db/mariadb-10.1.23::gentoo was built with the following: USE="backup cracklib embedded extraengine latin1 openssl pam perl server xml -bindist -debug -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -libressl -mroonga -odbc -oqgraph -profiling (-selinux) -sphinx -sst-rsync -sst-xtrabackup -static -static-libs -systemd -systemtap -tcmalloc -test -tokudb -yassl" ABI_X86="(64) -32 (-x32)" CFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC -fno-strict-aliasing" CXXFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC -felide-constructors -fno-strict-aliasing"
(In reply to Helmut Jarausch from comment #0) > ================================================================= > Package Settings > ================================================================= > > dev-db/mariadb-10.1.23::gentoo was built with the following: > USE="backup cracklib embedded extraengine latin1 openssl pam perl server xml > -bindist -debug -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc > -jemalloc -kerberos -libressl -mroonga -odbc -oqgraph -profiling (-selinux) > -sphinx -sst-rsync -sst-xtrabackup -static -static-libs -systemd -systemtap > -tcmalloc -test -tokudb -yassl" ABI_X86="(64) -32 (-x32)" > CFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC -fno-strict-aliasing" > CXXFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC -felide-constructors > -fno-strict-aliasing" Works for my gcc-6.3.0 test compile. Please try simpler CFLAGS. -fPIC should not be there, it is added as needed
(In reply to Brian Evans from comment #1) > (In reply to Helmut Jarausch from comment #0) > > ================================================================= > > Package Settings > > ================================================================= > > > > dev-db/mariadb-10.1.23::gentoo was built with the following: > > USE="backup cracklib embedded extraengine latin1 openssl pam perl server xml > > -bindist -debug -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc > > -jemalloc -kerberos -libressl -mroonga -odbc -oqgraph -profiling (-selinux) > > -sphinx -sst-rsync -sst-xtrabackup -static -static-libs -systemd -systemtap > > -tcmalloc -test -tokudb -yassl" ABI_X86="(64) -32 (-x32)" > > CFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC -fno-strict-aliasing" > > CXXFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC -felide-constructors > > -fno-strict-aliasing" > > Works for my gcc-6.3.0 test compile. Please try simpler CFLAGS. -fPIC > should not be there, it is added as needed I don't know where the -fPIC comes from. I've removed it from /etc/portage/make.conf and I don't have /etc/portage/env/dev-db/mariadb I think it's setup by Gentoo's gcc installation. Could you post your (effective) CFLAGS and CXXFLAGS? Thanks, Helmut
(In reply to Helmut Jarausch from comment #2) > (In reply to Brian Evans from comment #1) > > (In reply to Helmut Jarausch from comment #0) > > > ================================================================= > > > Package Settings > > > ================================================================= > > > > > > dev-db/mariadb-10.1.23::gentoo was built with the following: > > > USE="backup cracklib embedded extraengine latin1 openssl pam perl server xml > > > -bindist -debug -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc > > > -jemalloc -kerberos -libressl -mroonga -odbc -oqgraph -profiling (-selinux) > > > -sphinx -sst-rsync -sst-xtrabackup -static -static-libs -systemd -systemtap > > > -tcmalloc -test -tokudb -yassl" ABI_X86="(64) -32 (-x32)" > > > CFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC -fno-strict-aliasing" > > > CXXFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC -felide-constructors > > > -fno-strict-aliasing" > > > > Works for my gcc-6.3.0 test compile. Please try simpler CFLAGS. -fPIC > > should not be there, it is added as needed > > I don't know where the -fPIC comes from. I've removed it from > /etc/portage/make.conf > and I don't have /etc/portage/env/dev-db/mariadb > > I think it's setup by Gentoo's gcc installation. > > Could you post your (effective) CFLAGS and CXXFLAGS? > > Thanks, > Helmut My testing box builds like this (and i just retried it, some parts omitted for brevity): Portage 2.3.6 (python 3.4.6-final-0, default/linux/amd64/13.0, gcc-6.3.0, glibc-2.24-r1, 4.11.0-bcachefs+ x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.11.0-bcachefs+-x86_64-Intel_Celeron_4x0_-Conroe-Merom_Class_Core_2-with-gentoo-2.4.1 KiB Mem: 1001752 total, 31588 free KiB Swap: 3145724 total, 3138600 free sh bash 4.4_p12 ld GNU ld (Gentoo 2.28 p1.2) 2.28 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1-r2::gentoo dev-lang/python: 2.7.13::gentoo, 3.4.6::gentoo dev-util/cmake: 3.8.2::gentoo sys-apps/baselayout: 2.4.1::gentoo sys-apps/openrc: 0.27.2::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.69-r3::gentoo sys-devel/automake: 1.13.4-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo, 2.28-r2::gentoo sys-devel/gcc: 6.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r1::gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="-O2 -pipe" DISTDIR="/var/lib/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=y --keep-going" 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 sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" ================================================================= Package Settings ================================================================= dev-db/mariadb-10.1.24::gentoo was built with the following: USE="backup cracklib embedded extraengine jemalloc latin1 openssl pam perl profiling server tokudb -bindist -debug -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -kerberos -libressl -mroonga -odbc -oqgraph (-selinux) -sphinx -sst-rsync -sst-xtrabackup -static -static-libs -systemd -systemtap -tcmalloc -test -xml -yassl" ABI_X86="(64) -32 (-x32)" CFLAGS="-O2 -pipe -g -fno-strict-aliasing" CXXFLAGS="-O2 -pipe -g -felide-constructors -fno-strict-aliasing"
*** Bug 622674 has been marked as a duplicate of this bug. ***