src/libwapcaplet.c: In function ‘lwc_intern_string’: src/libwapcaplet.c:148:16: error: cast between incompatible function types from ‘void * (*)(void * restrict, const void * restrict, size_t)’ {aka ‘void * (*)(void * restrict, const void * restrict, long unsigned int)’} to ‘void (*)(char *, const char *, size_t)’ {aka ‘void (*)(char *, const char *, long unsigned int)’} [-Werror=cast-function-type] strncmp, (lwc_memcpy)memcpy); ^ cc1: all warnings being treated as errors ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-no-multilib_20180820-193102 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-8.2.0 * Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby23 (with Rubygems) * emerge -qpv dev-libs/libwapcaplet [ebuild N ] dev-libs/libwapcaplet-0.4.0 USE="-debug -static-libs -test"
Created attachment 544516 [details] emerge-info.txt
Created attachment 544518 [details] dev-libs:libwapcaplet-0.4.0:20180822-120444.log
Created attachment 544520 [details] emerge-history.txt
Created attachment 544522 [details] environment
Created attachment 544524 [details] etc.portage.tbz2
Created attachment 544526 [details] temp.tbz2
This is caused by gcc 8. Compiling with gcc 7 works fine. I tested the following: sys-devel/gcc-8.2.0-r3[hardened] -> broken sys-devel/gcc-7.3.0-r5[hardened] -> works Isn't this a duplicate of bug 669328?
*** Bug 669328 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41f212cc11c2cbe97edccd200c21a345dc88c6be commit 41f212cc11c2cbe97edccd200c21a345dc88c6be Author: Virgil Dupras <vdupras@gentoo.org> AuthorDate: 2018-10-26 00:28:09 +0000 Commit: Virgil Dupras <vdupras@gentoo.org> CommitDate: 2018-10-26 00:29:20 +0000 dev-libs/libwapcaplet: fix compilation error with gcc 8 Closes: https://bugs.gentoo.org/664288 Signed-off-by: Virgil Dupras <vdupras@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 .../libwapcaplet/files/libwapcaplet-0.4.1-makefile.patch | 12 ++++++++++++ dev-libs/libwapcaplet/libwapcaplet-0.4.1.ebuild | 5 +++++ 2 files changed, 17 insertions(+)