Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 617870 - dev-cpp/clucene- with sys-devel/gcc-7.1.0 - Call Stack (most recent call first): src/shared/cmake/MacroCheckGccVisibility.cmake:35 (macro_ensure_version) src/shared/CMakeLists.txt:230 (MACRO_CHECK_GCC_VISIBILITY)
Summary: dev-cpp/clucene- with sys-devel/gcc-7.1.0 - Call Stack (most recent...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
: 620872 (view as bug list)
Depends on:
Blocks: gcc-7
  Show dependency tree
Reported: 2017-05-08 16:36 UTC by lekto
Modified: 2020-11-27 23:58 UTC (History)
9 users (show)

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

build.log (build.log,19.02 KB, text/plain)
2017-05-08 16:36 UTC, lekto
emerge --info (,4.67 KB, text/plain)
2017-05-08 16:38 UTC, lekto
build.log (build.log,2.26 KB, text/plain)
2017-05-09 11:02 UTC, Ivan

Note You need to log in before you can comment on or make changes to this bug.
Description lekto 2017-05-08 16:36:11 UTC
Created attachment 471980 [details]

CMake Error at src/shared/cmake/MacroEnsureVersion.cmake:27 (MATH):
  math cannot parse the expression: "x86_647*10000 + x86_641*100 + x86_640":
  syntax error, unexpected exp_NUMBER, expecting $end (8)
Call Stack (most recent call first):
  src/shared/cmake/MacroCheckGccVisibility.cmake:35 (macro_ensure_version)
  src/shared/CMakeLists.txt:230 (MACRO_CHECK_GCC_VISIBILITY)
Comment 1 lekto 2017-05-08 16:38:10 UTC
Created attachment 471982 [details]
emerge --info
Comment 2 Cănărău Constantin 2017-05-08 17:47:32 UTC
Very easy to fix add a 7 in existing clucene- change [3456] to [34567] or crate a file (and subdirectories) /etc/portage/patches/dev-cpp/clucene/clucene- with the following content:
diff --git a/src/shared/cmake/MacroCheckGccVisibility.cmake b/src/shared/cmake/MacroCheckGccVisibility.cmake
index 2022aa3..020f913 100644
--- a/src/shared/cmake/MacroCheckGccVisibility.cmake
+++ b/src/shared/cmake/MacroCheckGccVisibility.cmake
@@ -15,7 +15,7 @@ macro(MACRO_CHECK_GCC_VISIBILITY GccVisibility)
    # get the gcc version
    exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info)

-   string (REGEX MATCH "[3456]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
+   string (REGEX MATCH "[34567]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
    if (NOT _gcc_version)

       # clang reports: clang version 1.1 (trunk 95754)
Comment 3 lekto 2017-05-08 18:41:40 UTC
Git pr:
Comment 4 Ivan 2017-05-09 11:02:04 UTC
Build with GCC-7.1.0-r1 fails for me too.

USE="-debug -doc -static-libs"

emerge --info:
Portage 2.3.5 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-7.1.0, glibc-2.24-r1, 4.4.66 x86_64)
System uname: Linux-4.4.66-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.3
KiB Mem:    16358300 total,    328340 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 09 May 2017 10:30:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.8.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.25::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::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.24-r1::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000

    location: /usr/local/my
    masters: gentoo
    priority: 0

    location: /var/lib/layman/deadbeef-overlay
    masters: gentoo
    priority: 50

    location: /var/lib/layman/scrill
    masters: gentoo
    priority: 50

    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

    location: /var/lib/layman/vortex
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
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="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
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 protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="X a52 aac acl acpi aes aften alsa amd64 amr ass audio avx bash-completion branding bzip2 cairo cdda cdr cleartype consolekit cracklib crypt css cups cxx dbus declarative device-mapper djvu dri dts dv dvd dvdr encode exif faac faad fam fat ffmpeg firefox firmware-loader flac fontconfig gd gif glamor gpm gzip iconv icu id3tag ieee1394 imagemagick ipv6 jit jpeg kde keymap ladspa lame lash lcms libass libnotify lm_sensors lzma lzo mad matroska midi mmx mmxext mng modules mp3 mp4 mpeg mplayer mtp mudflap multilib ncurses nls nptl ntfs nvidia ogg opengl openmp opus pam pango pcre pdf phonon pie plasma png policykit popcnt ppds pppd pulseaudio qml qt3support qt4 qt5 quicktime rar raw readline scanner sdl seccomp session sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svc svg sysfs tcpd theora threads tiff toolame truetype twolame udev udisks unicode upower usb vaapi vdpau vorbis vpx wav wavpack widgets win32codecs wxwidgets x264 x265 xattr xcb xcomposite xml xorg xscreensaver xulrunner xv xvfb xvid xvmc zip zlib" ABI_X86="64" ALSA_CARDS="emu10k1" 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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="evdev" KERNEL="linux" L10N="ru en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" 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"
USE_PYTHON="2.7 3.4"
Comment 5 Ivan 2017-05-09 11:02:59 UTC
Created attachment 472064 [details]
Comment 6 Ivan 2017-05-09 11:05:52 UTC
Proposed solution by  Cănărău Constantin fixes the issue for me.
Comment 7 Pacho Ramos gentoo-dev 2017-06-06 17:28:12 UTC
Any reason for not adding also "8" and "9" to make this more future proof? :/
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-06-18 18:17:57 UTC
*** Bug 620872 has been marked as a duplicate of this bug. ***
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-06-18 18:50:46 UTC
commit 6cdb97e62d8b13c849b4ca0ab873071deca63688
Author:     Michał Górny <>
AuthorDate: Sun Jun 18 20:49:04 2017
Commit:     Michał Górny <>
CommitDate: Sun Jun 18 20:50:03 2017

    dev-cpp/clucene: Allow any gcc version, #617870

I've made it more future proof by allowing [0-9]+ for each component. However, that doesn't change the fact that the package is dead and needs constant care.