Skip to content

Instantly share code, notes, and snippets.

@Joermungand
Created June 10, 2017 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joermungand/f1144f579daf6f6dadc6571e4abf58d7 to your computer and use it in GitHub Desktop.
Save Joermungand/f1144f579daf6f6dadc6571e4abf58d7 to your computer and use it in GitHub Desktop.
Photoflow
[ 36%] Building CXX object src/CMakeFiles/pfbase.dir/rt/rtengine/dcraw.cc.o
/media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc: In member function ‘void DCraw::hasselblad_correct()’:
/media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:2014:71: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
ushort dist = (ushort)sqrt(abs(corners[i][0] - row) * abs(corners[i][0] - row) + abs(corners[i][1] - col) * abs(corners[i][1] - col));
^
In file included from /usr/include/c++/7.1.1/bits/std_abs.h:38:0,
from /usr/include/c++/7.1.1/cmath:47,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/rt_math.h:3,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:6:
/usr/include/stdlib.h:751:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/7.1.1/cmath:47:0,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/rt_math.h:3,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:6:
/usr/include/c++/7.1.1/bits/std_abs.h:56:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:61:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:70:3: note: candidate: constexpr double std::abs(double)
abs(double __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
abs(float __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:78:3: note: candidate: constexpr long double std::abs(long double)
abs(long double __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:84:3: note: candidate: constexpr __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
abs(__float128 __x)
^~~
/media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:2014:98: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
ushort dist = (ushort)sqrt(abs(corners[i][0] - row) * abs(corners[i][0] - row) + abs(corners[i][1] - col) * abs(corners[i][1] - col));
^
In file included from /usr/include/c++/7.1.1/bits/std_abs.h:38:0,
from /usr/include/c++/7.1.1/cmath:47,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/rt_math.h:3,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:6:
/usr/include/stdlib.h:751:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/7.1.1/cmath:47:0,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/rt_math.h:3,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:6:
/usr/include/c++/7.1.1/bits/std_abs.h:56:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:61:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:70:3: note: candidate: constexpr double std::abs(double)
abs(double __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
abs(float __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:78:3: note: candidate: constexpr long double std::abs(long double)
abs(long double __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:84:3: note: candidate: constexpr __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
abs(__float128 __x)
^~~
/media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:2014:125: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
ushort dist = (ushort)sqrt(abs(corners[i][0] - row) * abs(corners[i][0] - row) + abs(corners[i][1] - col) * abs(corners[i][1] - col));
^
In file included from /usr/include/c++/7.1.1/bits/std_abs.h:38:0,
from /usr/include/c++/7.1.1/cmath:47,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/rt_math.h:3,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:6:
/usr/include/stdlib.h:751:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/7.1.1/cmath:47:0,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/rt_math.h:3,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:6:
/usr/include/c++/7.1.1/bits/std_abs.h:56:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:61:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:70:3: note: candidate: constexpr double std::abs(double)
abs(double __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
abs(float __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:78:3: note: candidate: constexpr long double std::abs(long double)
abs(long double __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:84:3: note: candidate: constexpr __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
abs(__float128 __x)
^~~
/media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:2014:152: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
ushort dist = (ushort)sqrt(abs(corners[i][0] - row) * abs(corners[i][0] - row) + abs(corners[i][1] - col) * abs(corners[i][1] - col));
^
In file included from /usr/include/c++/7.1.1/bits/std_abs.h:38:0,
from /usr/include/c++/7.1.1/cmath:47,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/rt_math.h:3,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:6:
/usr/include/stdlib.h:751:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/7.1.1/cmath:47:0,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/rt_math.h:3,
from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/rt/rtengine/dcraw.cc:6:
/usr/include/c++/7.1.1/bits/std_abs.h:56:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:61:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:70:3: note: candidate: constexpr double std::abs(double)
abs(double __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
abs(float __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:78:3: note: candidate: constexpr long double std::abs(long double)
abs(long double __x)
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:84:3: note: candidate: constexpr __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/7.1.1/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
abs(__float128 __x)
^~~
make[2]: *** [src/CMakeFiles/pfbase.dir/build.make:1047: src/CMakeFiles/pfbase.dir/rt/rtengine/dcraw.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:272: src/CMakeFiles/pfbase.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment