Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637126 - dev-util/codeblocks-16.01: error: there are no arguments to '_strcmp' that depend on a template parameter, so a declaration of '_strcmp' must be available [-fpermissive]
Summary: dev-util/codeblocks-16.01: error: there are no arguments to '_strcmp' that de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard: ~arch only
Keywords:
: 649248 (view as bug list)
Depends on:
Blocks: gcc-7
  Show dependency tree
 
Reported: 2017-11-11 10:10 UTC by lekto
Modified: 2018-06-09 11:15 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,62.07 KB, text/x-log)
2017-11-11 10:10 UTC, lekto
Details
emerge --info (file_637126.txt,5.47 KB, text/plain)
2017-11-11 10:10 UTC, lekto
Details
gcc-7.2 build log (build.log,72.70 KB, text/x-log)
2017-11-21 19:10 UTC, Collin Day
Details
gcc7 patch for codeblocks 16.01 (codeblocks-16.01-gcc7.patch,426 bytes, patch)
2017-12-28 17:51 UTC, Keith Harrison
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lekto 2017-11-11 10:10:00 UTC
Created attachment 503576 [details]
build.log

I'm able to build codebocks with gcc:6.4.0.
Comment 1 lekto 2017-11-11 10:10:39 UTC
Created attachment 503578 [details]
emerge --info
Comment 2 Collin Day 2017-11-21 19:08:59 UTC
I can confirm this happens with gcc-7.2.0

Portage 2.3.14 (python 3.6.3-final-0, default/linux/amd64/13.0, gcc-7.2.0, glibc-2.25-r7, 4.10.16-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.10.16-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2620_0_@_2.00GHz-with-gentoo-2.4.1
KiB Mem:    32827864 total,   9883532 free
KiB Swap:    8388604 total,   8387400 free
Timestamp of repository gentoo: Thu, 16 Nov 2017 00:00:01 +0000
Head commit of repository gentoo: 47092007862525d557490731b85c257b32255813
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1::gentoo
dev-lang/python:          2.7.14::gentoo, 3.5.4::gentoo, 3.6.3::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.33.1::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

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

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

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    masters: gentoo
    priority: 50

gnu-elpa
    location: /var/lib/layman/gnu-elpa
    masters: gentoo
    priority: 50

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

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

melpa
    location: /var/lib/layman/melpa
    masters: gnu-elpa gentoo
    priority: 50

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13"
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 \ acl amd64 berkdb bzip2 cli cracklib crypt cxx dri ffmpeg fortran gdbm iconv ipv6 mmx modules multilib ncurses nls nptl openmp pam pcre png qt3support readline seccomp session sse sse2 ssl tcpd truetype unicode zlib" ABI_X86="32 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="mmx mmxext sse sse2" 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="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="ARM Hexagon MSP430 Mips PowerPC Sparc SystemZ XCore AMDGPU BPF NVPTX" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby24" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Collin Day 2017-11-21 19:10:52 UTC
Created attachment 505520 [details]
gcc-7.2 build log
Comment 4 Collin Day 2017-11-21 19:11:50 UTC
emerge -pqv '=dev-util/codeblocks-16.01::gentoo' 
[ebuild  N    ] dev-util/codeblocks-16.01  USE="contrib pch -debug -static-libs"
Comment 5 Cosmin Giradu 2017-11-22 20:51:16 UTC
Upstream has this fix: https://sourceforge.net/p/codeblocks/code/11006/
Comment 6 Cosmin Giradu 2017-11-23 06:24:10 UTC
With the aforementioned patch, codeblocks compiles OK.
Comment 7 Keith Harrison 2017-12-28 17:51:01 UTC
Created attachment 511874 [details, diff]
gcc7 patch for codeblocks 16.01

gcc7 patch for codeblocks 16.01

modified slightly to work with portage

place in /etc/portage/patches/dev-util/codeblocks-16.01/
Comment 8 Peter Levine 2018-03-24 23:42:42 UTC
PR: https://github.com/gentoo/gentoo/pull/7600
Comment 9 Pacho Ramos gentoo-dev 2018-04-03 10:22:31 UTC
*** Bug 649248 has been marked as a duplicate of this bug. ***
Comment 10 Larry the Git Cow gentoo-dev 2018-04-14 16:11:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ffb32396837505f577b5b18e0cb9e6d74bbc4b1

commit 1ffb32396837505f577b5b18e0cb9e6d74bbc4b1
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2018-03-24 22:04:04 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2018-04-14 16:08:03 +0000

    dev-util/codeblocks: Fix building with GCC-7
    
    Bug: https://bugs.gentoo.org/649248
    Package-Manager: Portage-2.3.16, Repoman-2.3.6
    Closes: https://bugs.gentoo.org/649248
    Closes: https://bugs.gentoo.org/637126
    Closes: https://github.com/gentoo/gentoo/pull/7600

 dev-util/codeblocks/codeblocks-16.01.ebuild        |  4 ++-
 .../codeblocks/files/codeblocks-16.01-gcc7.patch   | 30 ++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)
Comment 11 Pacho Ramos gentoo-dev 2018-04-14 16:12:02 UTC
*** Bug 649248 has been marked as a duplicate of this bug. ***