Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721484 - dev-db/mysql-connector-c-8.0.20 - compilation issue
Summary: dev-db/mysql-connector-c-8.0.20 - compilation issue
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-07 13:47 UTC by Marek Duranik
Modified: 2020-11-10 22:44 UTC (History)
2 users (show)

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


Attachments
CMakeError.log (CMakeError.log,29.99 KB, text/plain)
2020-05-07 13:50 UTC, Marek Duranik
Details
build.log (build.log,21.15 KB, text/x-log)
2020-05-07 13:53 UTC, Marek Duranik
Details
CMakeOutput.log (CMakeOutput.log,105.79 KB, text/plain)
2020-05-13 05:29 UTC, Marek Duranik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Duranik 2020-05-07 13:47:45 UTC
Last version of mysql-connector-c which I could compile was: mysql-connector-c-6.1.11-r2. All next version crashed during attempt of compilation:
mysql-connector-c-8.0.17-r3
mysql-connector-c-8.0.18
mysql-connector-c-8.0.19
mysql-connector-c-8.0.20

It look on some compiler issue. In attachment are output log files from last version of connector 8.0.20


Portage 2.3.99 (python 3.6.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.31-r2, 5.6.5-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.6.5-gentoo-x86_64-x86_64-Intel-R-_Xeon-R-_CPU_X3450_@_2.67GHz-with-gentoo-2.7
KiB Mem:    16358180 total,   8096856 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Tue, 05 May 2020 06:00:01 +0000
Head commit of repository gentoo: 9db1be6404ade038930e3c496d08c837950243d6
sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p1) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r1::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.17.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -mno-aes -mno-pclmul"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="en sk cz"
MAKEOPTS="-j9"
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="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk iconv icu jpeg kde kipi kwallet lcms ldap libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg openg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop sensord spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en sk cz" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

-- CMAKE_CXX_FLAGS:  -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Woverloaded-virtual -Wcast-qual -Wimplicit-fallthrough=2 -Wstringop-truncation -Wlogical-op
-- CMAKE_CXX_FLAGS_DEBUG: -DSAFE_MUTEX -DENABLED_DEBUG_SYNC -g
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -DDBUG_OFF -O2 -g -DNDEBUG
-- CMAKE_CXX_FLAGS_RELEASE: -DDBUG_OFF -O3 -DNDEBUG
-- CMAKE_CXX_FLAGS_MINSIZEREL: -DDBUG_OFF -Os -DNDEBUG
-- CMAKE_C_LINK_FLAGS:  -fuse-ld=lld
-- CMAKE_CXX_LINK_FLAGS:  -fuse-ld=lld
-- CMAKE_EXE_LINKER_FLAGS -Wl,-O1 -Wl,--sort-common,-fuse-ld=gold
-- CMAKE_MODULE_LINKER_FLAGS -Wl,-O1 -Wl,--sort-common,-fuse-ld=gold
-- CMAKE_SHARED_LINKER_FLAGS -Wl,-O1 -Wl,--sort-common,-fuse-ld=gold
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe -mno-aes -mno-pclmul -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Wwrite-strings -Wjump-misses-init -Wstringop-truncation
C++              -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Woverloaded-virtual -Wcast-qual -Wimplicit-fallthrough=2 -Wstringop-truncation -Wlogical-op
Linker flags:
Executable      -Wl,-O1 -Wl,--sort-common,-fuse-ld=gold
Module          -Wl,-O1 -Wl,--sort-common,-fuse-ld=gold
Shared          -Wl,-O1 -Wl,--sort-common,-fuse-ld=gold

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/work/mysql-8.0.20-abi_x86_64.amd64/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/work/mysql-8.0.20-abi_x86_64.amd64/CMakeFiles/CMakeError.log".
 * ERROR: dev-db/mysql-connector-c-8.0.20::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2530:  Called cmake-multilib_src_configure
 *   environment, line  725:  Called multilib-minimal_src_configure
 *   environment, line 1860:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2093:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1790:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1788:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  588:  Called multilib-minimal_abi_src_configure
 *   environment, line 1854:  Called multilib_src_configure
 *   environment, line 2318:  Called cmake-utils_src_configure
 *   environment, line  902:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-db/mysql-connector-c-8.0.20::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-connector-c-8.0.20::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/work/mysql-8.0.20-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/work/mysql-8.0.20'

>>> Failed to emerge dev-db/mysql-connector-c-8.0.20, Log file:

>>>  '/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/temp/build.log'

 * Messages for package dev-db/mysql-connector-c-8.0.20:

 * ERROR: dev-db/mysql-connector-c-8.0.20::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2530:  Called cmake-multilib_src_configure
 *   environment, line  725:  Called multilib-minimal_src_configure
 *   environment, line 1860:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2093:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1790:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1788:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  588:  Called multilib-minimal_abi_src_configure
 *   environment, line 1854:  Called multilib_src_configure
 *   environment, line 2318:  Called cmake-utils_src_configure
 *   environment, line  902:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-db/mysql-connector-c-8.0.20::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-connector-c-8.0.20::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/work/mysql-8.0.20-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/work/mysql-8.0.20'
Comment 1 Marek Duranik 2020-05-07 13:50:05 UTC
Created attachment 636728 [details]
CMakeError.log
Comment 2 Marek Duranik 2020-05-07 13:53:58 UTC
Created attachment 636730 [details]
build.log
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-05-12 22:41:55 UTC
CMake is failing in configure phase:

-- Configuring incomplete, errors occurred!

But I am failing to spot the problem in the provided output.

Please provide See also "/var/tmp/portage/dev-db/mysql-connector-c-8.0.20/work/mysql-8.0.20-abi_x86_64.amd64/CMakeFiles/CMakeOutput.log".
Comment 4 Marek Duranik 2020-05-13 05:29:00 UTC
Created attachment 638502 [details]
CMakeOutput.log
Comment 5 Ctibor Brančík 2020-08-04 18:52:05 UTC
I have just hit this problem too. The only error I have found in build.log, is the same as in the already attached file:

CMake Error at CMakeLists.txt:821 (STRING):
  STRING sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-04 19:55:23 UTC
I still don't understand why you are failing in https://github.com/Whissi/gentoo-mysql/blob/mysql-8.0.20-gentoo/CMakeLists.txt#L812-L834

Also, the command is passing 6 arguments so it looks like some value must be unset for you.

I am curious: Your C++/CMAKE_CXX_FLAGS value doesn't match your C/CMAKE_C_FLAGS according to shown logs. However, when running in clean stage3, they match...

Maybe you you have some broken/crazy CXX flags?
Comment 7 Ctibor Brančík 2020-08-05 11:17:36 UTC
Thank you, for the hint. I had typo in my make.conf. Now it compiles for me. Might be, that original reporter does not have $CXXFLAGS set in make.conf like i didn't.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-05 23:28:25 UTC
(In reply to Ctibor Brančík from comment #7)
> Thank you, for the hint. I had typo in my make.conf. Now it compiles for me.
> Might be, that original reporter does not have $CXXFLAGS set in make.conf
> like i didn't.

CXXFLAGS=""

Yep.