On 2017/10/07 13:45, Marc Espie wrote:
> On Fri, Oct 06, 2017 at 01:09:02PM +0200, Christian Weisgerber wrote:
> > Port build failures on amd64 -current after the clang 5.0 update:
> >
> > devel/valgrind
> > games/qgo
> > geo/gpstk
> > math/freemat
> > x11/kde/libs3
> >
> > valgrind errors out in configure because it doesn't recognize the
> > compiler version:
> > configure: error: please use gcc >= 3.0 or clang >= 2.9
> >
> > The other ports all suffer the same kind of C++ problem:
> > gamedialog.cpp:515:52: error: qualified reference to 'QColor' is a
> > constructor name rather than a type in this context
> >
> > handicapSpin->setPaletteBackgroundColor(QColor::QColor("cyan"));
> > ^
>
> Everything but valgrind fixed.
>
> You missed taxipilot, but that's because it fails only after kde/libs3 breaks.
>
>
> The C++ problem is people not knowing their C++.
>
> A constructor for class A gets declared as
>
> A::A(params)
> {
> ...
> }
>
> but then, the actual call is just A(params);
>
> somehow, older clang/gcc was happy with the perverted call. Newer clang does
> things correctly.
>
i386, besides kde/libs3 -
>> lang/gforth:
terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see
invocation)
OpenBSD clang version 5.0.0 (tags/RELEASE_500/final) (based on LLVM 5.0.0)
Target: i386-unknown-openbsd6.2
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/
and include the crash backtrace, preprocessed source, and associated run script.
>> geo/gpstk:
c++ -DPACKAGE_NAME="GPSTK" -DPACKAGE_TARNAME="gpstk" -DPACKAGE_VERSION="1.5"
-DPACKAGE_STRING="GPSTK 1.5" -DPACKAGE_BUGREPORT="http://www.gpstk.org/"
-DPACKAGE="gpstk" -DVERSION="1.5" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_ALLOCA=1 -DHAVE_DIRENT_H=1
-DSTDC_HEADERS=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_STRINGS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1
-DHAVE_REALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_BZERO=1
-DHAVE_FLOOR=1 -DHAVE_GETCWD=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMSET=1
-DHAVE_MKDIR=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_REGCOMP=1 -DHAVE_SQRT=1
-DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -I. -I. -I./../../src/ -O2
-pipe -O1 -g -MT Variable.lo -MD -MP -MF .deps/Variable.Tpo -c Variable.cpp
-fPIC -DPIC -o .libs/Variable.o
In file included from Variable.cpp:31:
In file included from ./Variable.hpp:35:
In file included from ./DataStructures.hpp:46:
In file included from ./../../src/Matrix.hpp:709:
In file included from ./../../src/MatrixOperators.hpp:34:
./../../src/MatrixFunctors.hpp:298:28: warning: comparison of unsigned
expression >= 0 is always true [-Wtautological-compare]
while(kk >= 0) {
~~ ^ ~
Variable.cpp:157:17: error: qualified reference to 'Variable' is a constructor
name rather than a type in this context
Variable::Variable( type,
^
Variable.cpp:178:17: error: qualified reference to 'Variable' is a constructor
name rather than a type in this context
Variable::Variable( type,
^
1 warning and 2 errors generated.
>> math/freemat:
F = Array::Array(Bool,Acast.dimensions());
^
/usr/obj/ports/freemat-4.0/FreeMat-4.0.1-Source/libs/libFreeMat/Operators.hpp:449:18:
error: qualified reference to 'Array' is a constructor name rather than a type
in this context
>> devel/cryptocpp:
c++ -O2 -pipe -Wno-unused -DCRYPTOPP_DISABLE_SSSE3 -DCRYPTOPP_DISABLE_AESNI
-DCRYPTOPP_NO_UNALIGNED_DATA_ACCESS -DNDEBUG -fPIC -c vmac.cpp
vmac.cpp:302:2: error: invalid operand for instruction
ASJ( jne, 0, b)
^
./cpu.h:454:23: note: expanded from macro 'ASJ'
#define ASJ(x, y, z) GNU_ASJ(x, y, z)
^
./cpu.h:448:27: note: expanded from macro 'GNU_ASJ'
#define GNU_ASJ(x, y, z) #x " " #y #z ";" NEW_LINE
^
<scratch space>:75:2: note: expanded from here
"jne"
^
<inline asm>:61:1: note: instantiated into assembly here
jne 0b;
^
1 error generated.
>> games/qgo:
play_white_button->setPaletteBackgroundColor(QColor::QColor("cyan"));
^
gamedialog.cpp:563:57: error: qualified reference to 'QColor' is a constructor
name rather than a type in this context