IFeelBloated / minsrp

simple blurring/sharpening filter for vaporsynth
2 stars 1 forks source link

build failure with GCC 6.x #3

Closed pingplug closed 8 years ago

pingplug commented 8 years ago

system: Arch Linux 64bit GCC version:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc-multilib/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 6.1.1 20160501 (GCC) 

and the error:

In file included from ../../src/Source.cpp:2:0:
../../src/Kernel.hpp: In function ‘void _reverse_dif(const float*, float*, int, double, bool)’:
../../src/Kernel.hpp:132:69: error: ‘pow’ was not declared in this scope
    (_amp * 4. * pow(_abs(srcp[x] * 256. - dstp[x] * 256.) / 4., 0.25)) *
                                                                     ^
Makefile:485: recipe for target '../../src/Source.lo' failed
make: *** [../../src/Source.lo] Error 1
IFeelBloated commented 8 years ago

https://github.com/IFeelBloated/minsrp/commit/f90c5a78f4c9f4f91d089b5a7a6368e32b98fb08 working now?

pingplug commented 8 years ago

yes, thanks!

ps: there are some errors in mvtools_sf with GCC 6.1

In file included from src/GroupOfPlanes.h:3:0,
                 from src/MVAnalyze.cpp:8:
src/PlaneOfBlocks.h:169:29: error: call of overloaded ‘abs(double)’ is ambiguous
    if (abs(srcLuma - refLuma) > (srcLuma + refLuma) / 32) {
                             ^
In file included from /usr/include/c++/6.1.1/cstdlib:75:0,
                 from src/MVAnalyze.cpp:2:
/usr/include/stdlib.h:774:12: note: candidate: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^~~
In file included from src/MVAnalyze.cpp:2:0:
/usr/include/c++/6.1.1/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
   abs(long long __x) { return __builtin_llabs (__x); }
   ^~~
/usr/include/c++/6.1.1/cstdlib:172:3: note: candidate: long int std::abs(long int)
   abs(long __i) { return __builtin_labs(__i); }
   ^~~
Makefile:562: recipe for target 'src/MVAnalyze.lo' failed
make: *** [src/MVAnalyze.lo] Error 1
make: *** Waiting for unfinished jobs....