Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474866 - =dev-db/mysql-connector-c++-1.1.1 - x86_64-pc-linux-gnu-g++: error: unrecognized command line option '-model'
Summary: =dev-db/mysql-connector-c++-1.1.1 - x86_64-pc-linux-gnu-g++: error: unrecogni...
Status: RESOLVED DUPLICATE of bug 442662
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hanno Zysik (geki)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-26 12:28 UTC by Johannes Hirte
Modified: 2013-09-04 05:40 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,17.38 KB, text/x-log)
2013-07-03 09:32 UTC, Johannes Hirte
Details
environment (environment,104.02 KB, text/plain)
2013-07-09 21:04 UTC, Johannes Hirte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2013-06-26 12:28:27 UTC
When trying to emerge dev-db/mysql-connector-c++, I get the following error:

[ 93%] [ 93%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/nativeapi/mysql_native_resultset_wrapper.cpp.o
Building CXX object driver/CMakeFiles/mysqlcppconn-static.dir/nativeapi/mysql_native_driver_wrapper.cpp.o
Linking CXX shared library libmysqlcppconn.so
x86_64-pc-linux-gnu-g++: error: unrecognized command line option '-model'
x86_64-pc-linux-gnu-g++: error: unrecognized command line option '-model'
make[2]: *** [driver/libmysqlcppconn.so.6.1.1.1] Error 1
make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 95%] Building CXX object driver/CMakeFiles/mysqlcppconn-static.dir/nativeapi/mysql_native_connection_wrapper.cpp.o
[ 97%] Building CXX object driver/CMakeFiles/mysqlcppconn-static.dir/nativeapi/mysql_native_statement_wrapper.cpp.o
[100%] Building CXX object driver/CMakeFiles/mysqlcppconn-static.dir/nativeapi/mysql_native_resultset_wrapper.cpp.o
Linking CXX static library libmysqlcppconn-static.a
[100%] Built target mysqlcppconn-static
make: *** [all] Error 2
 * ERROR: dev-db/mysql-connector-c++-1.1.1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-db/mysql-connector-c++-1.1.1'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-connector-c++-1.1.1'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.1/work/mysql-connector-c++-1.1.1_build'
 * S: '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.1/work/mysql-connector-c++-1.1.1'

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

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



Reproducible: Always




emerge --info
Portage 2.2.0_alpha185 (default/linux/amd64/13.0, gcc-4.8.1, glibc-2.17, 3.10.0-rc7-00008-gacdb37c x86_64)
=================================================================
System uname: Linux-3.10.0-rc7-00008-gacdb37c-x86_64-AMD_Athlon-tm-_II_P320_Dual-Core_Processor-with-gentoo-2.2
KiB Mem:     4049208 total,   1091768 free
KiB Swap:    4194300 total,   3776808 free
Timestamp of tree: Wed, 26 Jun 2013 11:30:01 +0000
ld GNU gold (GNU Binutils 2.23.1) 1.11
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.4, 4.7.3, 4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x11 kde gamerlay local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x AdobeFlash-10.1 AdobeFlash-10.3 ETQW google-chrome googleearth Google-TOS Intel-SDP Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-z,combreloc -O2 -pipe"
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="/usr/local/portage/layman/x11 /usr/local/portage/layman/kde /usr/local/portage/layman/gamerlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aacs acl acoustid addressbook aften aio alsa amd64 amr apng assistant attica audiofile autotools berkdb bluetooth bluray bzip2 c++0x cairo calendar canberra caps caps-ng cdda cddb chm cli cmake consolekit corefonts cracklib crypt cups cvs cxx dbus declarative desktopglobe device-mapper dirac djvu dri dts dv dvd ebook eigen embedded emf encode exif expoblending faac faad fam ffmpeg fftw fits flac flash fontconfig fortran fpm fpx ftdi gbm gd gdbm gif git glamor gles1 gles2 glew gmp gold google gphoto2 gpm graphicsmagick graphviz gs gsl hdri highlight iconv icu id3tag inotify ipv6 jemalloc jpeg jpeg2k json kate kde kdepim kipi kpathsea lame lapack latex lcms lensfun libffi libkms liblockfile libsamplerate live lm_sensors lzma lzo mad marble midi minizip mjpeg mmap mmx mmx2 mmxext mng modules mongodb mp3 mp4 mpeg mtp mudflap multilib musicbrainz mysql ncurses netlink networkmanager nfsidmap nfsv3 nls nptl ogg okteta openal openexr opengl openmp opus oscar otr pam panorama pcre pdf pdfimport perl plasma png policykit postscript pyqt4 python python3 qt3support qt4 qthelp quicktime raw readline redeyes reviewboard rle romio samba scanner schroedinger semantic-desktop session sift sip smi sndfile soundtouch spell sqlite sqlite3 sse sse2 sse3 ssl subversion svg system-sqlite taglib tcmalloc tcpd theora threads thumbnail tiff truetype twolame udev udisks udisks2 unicode usb v4l v8 valgrind vamp vdpau vlc vorbis vpx webkit webp wmf x264 xattr xcb xcomposite xetex xml xmp xscreensaver xv xvid yaz zlib" ABI_X86="64 32" 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="braindump flow karbon kexi kpresenter krita plan sheets stage tables words" CAMERAS="canon directory" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fancyindex fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi stub_status upstream_ip_hash userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="net snapscan" USERLAND="GNU" VIDEO_CARDS="r600 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-26 13:14:16 UTC
Please attach the entire build log to this bug report.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-30 08:06:14 UTC
(In reply to Jeroen Roovers from comment #1)
> Please attach the entire build log to this bug report.
Comment 3 Johannes Hirte 2013-07-03 09:32:22 UTC
Created attachment 352502 [details]
build.log
Comment 4 Johannes Hirte 2013-07-08 12:32:03 UTC
build log attached
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-09 17:54:11 UTC
Hmm, grepping the ebuild itself and temporary ebuild directory I only see "-cmodel" in my environment which is slightly different from the flag you are seeing. Looking in `man gcc` I see there is "-mcmodel" and "-mmodel" which might correspond to these; but well, before drawing assumptions we need to see what it lists for you and whether we can find relevant debugging information:

1) Please attach the "environment" file from the same directory as build.log.

2) Please comment with the output of

       gcc -march=native -E -v - </dev/null 2>&1 | grep cc1

3) You appear to use gcc 4.8.1; if you have an older gcc, can you try that?

Thank you in advance.
Comment 6 Johannes Hirte 2013-07-09 21:04:58 UTC
Created attachment 352958 [details]
environment
Comment 7 Johannes Hirte 2013-07-09 21:07:24 UTC
(In reply to Tom Wijsman (TomWij) from comment #5)
> Hmm, grepping the ebuild itself and temporary ebuild directory I only see
> "-cmodel" in my environment which is slightly different from the flag you
> are seeing. Looking in `man gcc` I see there is "-mcmodel" and "-mmodel"
> which might correspond to these; but well, before drawing assumptions we
> need to see what it lists for you and whether we can find relevant debugging
> information:
> 
> 1) Please attach the "environment" file from the same directory as build.log.

attached

> 2) Please comment with the output of
> 
>        gcc -march=native -E -v - </dev/null 2>&1 | grep cc1

gcc -march=native -E -v - </dev/null 2>&1 | grep cc1
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.1/cc1 -E -quiet -v - -march=amdfam10 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mlzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mprfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10

> 3) You appear to use gcc 4.8.1; if you have an older gcc, can you try that?

I've the same problem on a second machine with gcc-4.7.3, also amd64.
Comment 8 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-09 21:24:54 UTC
Ah, should have looked closer to the build log:

> -- MySQL Link flags: -model -pipe -fno-strict-aliasing  -g -DNDEBUG

If we look a bit closer where this comes from we see in /var/tmp/portage/dev-db/mysql-connector-c++-1.1.1/work/mysql-connector-c++-1.1.1/FindMySQL.cm lines 61-62:

> STRING(REGEX MATCHALL "-m([^\r\n]+)" MYSQL_LINK_FLAGS "${_mysql_config_output}")
> STRING(REGEX REPLACE "[\r\n]$" "" MYSQL_CXXFLAGS "${_mysql_config_output}")

So, it indeed takes the -model out of -mmodel this way; I'm not entirely sure where it comes from in your case, but this should at least help the maintainer patch this to not include that flag _or_ include the proper flag. Some more insight on what the flag is for needs to be gathered; on a first sight, it seems to do with generated code size...
Comment 9 Pat Erley 2013-07-28 18:30:27 UTC
I ran into a similar bug with this package, (-mine instead of -model), but compiling it with gcc 4.6.4 instead of 4.7.3 resolved it.  This appears to be an upstream gcc >4.7 incompatibility.
Comment 10 Johannes Hirte 2013-09-03 21:20:58 UTC
It seems this is a duplicate of https://bugs.gentoo.org/show_bug.cgi?id=442662. Is somebody investigating on this? Cause of this bug libreoffice isn't installable with mysql useflag.
Comment 11 Sergey Popov gentoo-dev 2013-09-04 05:40:34 UTC
Yeah, it is duplicate, thanks for catching this up

*** This bug has been marked as a duplicate of bug 442662 ***