pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

GCC 6 vs abiword-plugins, aliados, xmahjongg?



Is anyone doing bulk builds on -current/amd64 using GCC 6?  The only
ones I see regularly all use 'clang'.

I'm seeing failures which appear to be packages running afoul of GCC 6.

While building packages from pkgsrc-2018Q1 on -current/amd64 (8.99.14),
"editors/abiword-plugins" fails with:

[...]
RealmProtocol.cpp:19:1: error: narrowing conversion of '-2' from 'int' to '__uint32_t {aka unsigned int}' inside { } [-Wnarrowing]
 };
 ^
RealmProtocol.cpp:19:1: error: narrowing conversion of '-1' from 'int' to '__uint32_t {aka unsigned int}' inside { } [-Wnarrowing]
RealmProtocol.cpp:19:1: error: narrowing conversion of '-1' from 'int' to '__uint32_t {aka unsigned int}' inside { } [-Wnarrowing]
RealmProtocol.cpp:19:1: error: narrowing conversion of '-1' from 'int' to '__uint32_t {aka unsigned int}' inside { } [-Wnarrowing]
Makefile:628: recipe for target 'RealmProtocol.lo' failed
gmake[4]: *** [RealmProtocol.lo] Error 1
[...]

On the face of it, I can't see how any such conversion would succeed on
any C(++) compiler, but GCC 4.8.5 (netbsd-7) and GCC 5.5.0 (netbsd-8)
have no problem with "abiword-plugins".


A similar problem with "emulators/aliados":

[...]
--- realconsole.o ---
realconsole.cpp:158:1: error: narrowing conversion of ''\37777777667'' from 'char' to 'unsigned char' inside { } [-Wnarrowing]
 };
 ^
*** [realconsole.o] Error code 1
[...]


Meanwhile, "games/xmahjongg" has it's own issues.  Perhaps GCC 6 is being
stricter?

[...]
--- permstr.o ---
if c++ -Wall -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R7/include -I../include   -I/usr/pkg/include -I/usr/X11R7/include  -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -MT permstr.o -MD -MP -MF ".deps/permstr.Tpo" -c -o permstr.o permstr.cc;  then mv -f ".deps/permstr.Tpo" ".deps/permstr.Po"; else rm -f ".deps/permstr.Tpo"; exit 1; fi
permstr.cc: In function 'bool operator==(PermString, const char*)':
permstr.cc:163:26: error: no matching function for call to 'operator==(PermString&, bool)'
   if (operator==(a, false) || !b)
                          ^
In file included from permstr.cc:19:0:
../include/lcdf/permstr.hh:113:1: note: candidate: bool operator==(PermString, PermString)
 operator==(PermString a, PermString b)
 ^~~~~~~~
../include/lcdf/permstr.hh:113:1: note:   no known conversion for argument 2 from 'bool' to 'PermString'
permstr.cc:161:1: note: candidate: bool operator==(PermString, const char*)
 operator==(PermString a, const char *b)
 ^~~~~~~~
permstr.cc:161:1: note:   no known conversion for argument 2 from 'bool' to 'const char*'
In file included from permstr.cc:19:0:
../include/lcdf/permstr.hh:121:1: note: candidate: bool operator==(const char*, PermString)
 operator==(const char* a, PermString b)
 ^~~~~~~~
../include/lcdf/permstr.hh:121:1: note:   no known conversion for argument 1 from 'PermString' to 'const char*'
permstr.cc:164:32: error: no matching function for call to 'operator==(PermString&, bool)'
     return (operator==(a, false)) && !b;
                                ^
In file included from permstr.cc:19:0:
../include/lcdf/permstr.hh:113:1: note: candidate: bool operator==(PermString, PermString)
 operator==(PermString a, PermString b)
 ^~~~~~~~
../include/lcdf/permstr.hh:113:1: note:   no known conversion for argument 2 from 'bool' to 'PermString'
permstr.cc:161:1: note: candidate: bool operator==(PermString, const char*)
 operator==(PermString a, const char *b)
 ^~~~~~~~
permstr.cc:161:1: note:   no known conversion for argument 2 from 'bool' to 'const char*'
In file included from permstr.cc:19:0:
../include/lcdf/permstr.hh:121:1: note: candidate: bool operator==(const char*, PermString)
 operator==(const char* a, PermString b)
 ^~~~~~~~
../include/lcdf/permstr.hh:121:1: note:   no known conversion for argument 1 from 'PermString' to 'const char*'
permstr.cc:163:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if (operator==(a, false) || !b)
   ^~
permstr.cc:165:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     int l = strlen(b);
     ^~~
*** [permstr.o] Error code 1

[...]

Just logging these here to not forget them.  Machine needs to return to
other tasks.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index