Dear both, On Wed, 20 Apr 2016 03:44:41 +0200 Andreas Beckmann <a...@debian.org> wrote: > Hi Chris, > [...] > > I cannot reproduce this in my sid pbuilder setup. Could you check again? > (I think gcc got updated since you filed this bug.)
I am able to reproduce the problem using cowbuilder unstable/amd64. I will try to see if the new upstream version (2.4-14) fixes the problem and update the package. Pablo
make[1]: Entering directory '/build/r-cran-tgp-2.4-9/src' gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -DRPRINT -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c all_draws.c -o all_draws.o g++ -I/usr/share/R/include -DNDEBUG -DRPRINT -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c base.cc -o base.o In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib: In function 'long long int std::abs(long long int)': /usr/include/c++/5/cstdlib:174:20: error: conflicting declaration of C function 'long long int std::abs(long long int)' abs(long long __x) { return __builtin_llabs (__x); } ^ /usr/include/c++/5/cstdlib:166:3: note: previous declaration 'long int std::abs(long int)' abs(long __i) { return __builtin_labs(__i); } ^ /usr/include/c++/5/cstdlib: In function '__int128 std::abs(__int128)': /usr/include/c++/5/cstdlib:179:33: error: conflicting declaration of C function '__int128 std::abs(__int128)' abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; } ^ /usr/include/c++/5/cstdlib:174:3: note: previous declaration 'long long int std::abs(long long int)' abs(long long __x) { return __builtin_llabs (__x); } ^ /usr/include/c++/5/cstdlib:179:33: error: conflicting declaration of C function '__int128 std::abs(__int128)' abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; } ^ /usr/include/c++/5/cstdlib:166:3: note: previous declaration 'long int std::abs(long int)' abs(long __i) { return __builtin_labs(__i); } ^ In file included from /usr/include/c++/5/cmath:42:0, from /usr/share/R/include/R.h:43, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/bits/cpp_type_traits.h: At global scope: /usr/include/c++/5/bits/cpp_type_traits.h:72:3: error: template with C linkage template<typename _Iterator, typename _Container> ^ /usr/include/c++/5/bits/cpp_type_traits.h:85:3: error: template with C linkage template<bool> ^ /usr/include/c++/5/bits/cpp_type_traits.h:89:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:95:3: error: template with C linkage template<class _Sp, class _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:103:3: error: template with C linkage template<typename, typename> ^ /usr/include/c++/5/bits/cpp_type_traits.h:110:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:118:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:125:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:135:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:146:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:153:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:160:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:167:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:175:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:199:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:206:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:213:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:220:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:227:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:234:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:241:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:248:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:270:1: error: template specialization with C linkage __INT_N(__GLIBCXX_TYPE_INT_N_0) ^ /usr/include/c++/5/bits/cpp_type_traits.h:270:1: error: template specialization with C linkage __INT_N(__GLIBCXX_TYPE_INT_N_0) ^ /usr/include/c++/5/bits/cpp_type_traits.h:287:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:295:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:302:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:309:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:319:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:326:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:336:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:343:3: error: template with C linkage template<typename _Iterator, typename _Container> ^ /usr/include/c++/5/bits/cpp_type_traits.h:354:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:362:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:370:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:377:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:385:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:393:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/bits/cpp_type_traits.h:400:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:407:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:414:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/bits/cpp_type_traits.h:424:3: error: template with C linkage template<typename _Tp> ^ In file included from /usr/include/c++/5/cmath:43:0, from /usr/share/R/include/R.h:43, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/ext/type_traits.h:42:3: error: template with C linkage template<bool, typename> ^ /usr/include/c++/5/ext/type_traits.h:46:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/ext/type_traits.h:52:3: error: template with C linkage template<bool _Cond, typename _Iftrue, typename _Iffalse> ^ /usr/include/c++/5/ext/type_traits.h:56:3: error: template with C linkage template<typename _Iftrue, typename _Iffalse> ^ /usr/include/c++/5/ext/type_traits.h:62:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/ext/type_traits.h:72:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:76:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:80:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:84:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:88:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:92:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:97:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:100:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:105:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/ext/type_traits.h:115:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:119:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:123:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:127:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:131:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:135:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:140:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:143:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:148:3: error: template with C linkage template<typename _Type> ^ /usr/include/c++/5/ext/type_traits.h:153:3: error: template with C linkage template<typename _Type> ^ /usr/include/c++/5/ext/type_traits.h:165:3: error: template with C linkage template<typename _Tp, bool = std::__is_integer<_Tp>::__value> ^ /usr/include/c++/5/ext/type_traits.h:172:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/ext/type_traits.h:176:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:180:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:184:3: error: template specialization with C linkage template<> ^ /usr/include/c++/5/ext/type_traits.h:188:3: error: template with C linkage template<typename _Tp, typename _Up, ^ /usr/include/c++/5/ext/type_traits.h:196:3: error: template with C linkage template<typename _Tp, typename _Up, typename _Vp, ^ /usr/include/c++/5/ext/type_traits.h:205:3: error: template with C linkage template<typename _Tp, typename _Up, typename _Vp, typename _Wp, ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath: In function 'double std::abs(double)': /usr/include/c++/5/cmath:81:17: error: conflicting declaration of C function 'double std::abs(double)' abs(double __x) ^ In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib:179:3: note: previous declaration '__int128 std::abs(__int128)' abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; } ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath:81:17: error: conflicting declaration of C function 'double std::abs(double)' abs(double __x) ^ In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib:174:3: note: previous declaration 'long long int std::abs(long long int)' abs(long long __x) { return __builtin_llabs (__x); } ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath:81:17: error: conflicting declaration of C function 'double std::abs(double)' abs(double __x) ^ In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib:166:3: note: previous declaration 'long int std::abs(long int)' abs(long __i) { return __builtin_labs(__i); } ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath: In function 'float std::abs(float)': /usr/include/c++/5/cmath:87:16: error: conflicting declaration of C function 'float std::abs(float)' abs(float __x) ^ /usr/include/c++/5/cmath:81:3: note: previous declaration 'double std::abs(double)' abs(double __x) ^ /usr/include/c++/5/cmath:87:16: error: conflicting declaration of C function 'float std::abs(float)' abs(float __x) ^ In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib:179:3: note: previous declaration '__int128 std::abs(__int128)' abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; } ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath:87:16: error: conflicting declaration of C function 'float std::abs(float)' abs(float __x) ^ In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib:174:3: note: previous declaration 'long long int std::abs(long long int)' abs(long long __x) { return __builtin_llabs (__x); } ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath:87:16: error: conflicting declaration of C function 'float std::abs(float)' abs(float __x) ^ In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib:166:3: note: previous declaration 'long int std::abs(long int)' abs(long __i) { return __builtin_labs(__i); } ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath: In function 'long double std::abs(long double)': /usr/include/c++/5/cmath:91:22: error: conflicting declaration of C function 'long double std::abs(long double)' abs(long double __x) ^ /usr/include/c++/5/cmath:87:3: note: previous declaration 'float std::abs(float)' abs(float __x) ^ /usr/include/c++/5/cmath:91:22: error: conflicting declaration of C function 'long double std::abs(long double)' abs(long double __x) ^ /usr/include/c++/5/cmath:81:3: note: previous declaration 'double std::abs(double)' abs(double __x) ^ /usr/include/c++/5/cmath:91:22: error: conflicting declaration of C function 'long double std::abs(long double)' abs(long double __x) ^ In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib:179:3: note: previous declaration '__int128 std::abs(__int128)' abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; } ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath:91:22: error: conflicting declaration of C function 'long double std::abs(long double)' abs(long double __x) ^ In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib:174:3: note: previous declaration 'long long int std::abs(long long int)' abs(long long __x) { return __builtin_llabs (__x); } ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath:91:22: error: conflicting declaration of C function 'long double std::abs(long double)' abs(long double __x) ^ In file included from /usr/share/R/include/R.h:40:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cstdlib:166:3: note: previous declaration 'long int std::abs(long int)' abs(long __i) { return __builtin_labs(__i); } ^ In file included from /usr/share/R/include/R.h:43:0, from rhelp.h:20, from base.h:30, from base.cc:25: /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:95:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::acos(long double)': /usr/include/c++/5/cmath:110:23: error: conflicting declaration of C function 'long double std::acos(long double)' acos(long double __x) ^ /usr/include/c++/5/cmath:106:3: note: previous declaration 'float std::acos(float)' acos(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:114:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::asin(long double)': /usr/include/c++/5/cmath:129:23: error: conflicting declaration of C function 'long double std::asin(long double)' asin(long double __x) ^ /usr/include/c++/5/cmath:125:3: note: previous declaration 'float std::asin(float)' asin(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:133:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::atan(long double)': /usr/include/c++/5/cmath:148:23: error: conflicting declaration of C function 'long double std::atan(long double)' atan(long double __x) ^ /usr/include/c++/5/cmath:144:3: note: previous declaration 'float std::atan(float)' atan(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:152:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::atan2(long double, long double)': /usr/include/c++/5/cmath:167:41: error: conflicting declaration of C function 'long double std::atan2(long double, long double)' atan2(long double __y, long double __x) ^ /usr/include/c++/5/cmath:163:3: note: previous declaration 'float std::atan2(float, float)' atan2(float __y, float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:171:3: error: template with C linkage template<typename _Tp, typename _Up> ^ /usr/include/c++/5/cmath: In function 'long double std::ceil(long double)': /usr/include/c++/5/cmath:188:23: error: conflicting declaration of C function 'long double std::ceil(long double)' ceil(long double __x) ^ /usr/include/c++/5/cmath:184:3: note: previous declaration 'float std::ceil(float)' ceil(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:192:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::cos(long double)': /usr/include/c++/5/cmath:207:22: error: conflicting declaration of C function 'long double std::cos(long double)' cos(long double __x) ^ /usr/include/c++/5/cmath:203:3: note: previous declaration 'float std::cos(float)' cos(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:211:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::cosh(long double)': /usr/include/c++/5/cmath:226:23: error: conflicting declaration of C function 'long double std::cosh(long double)' cosh(long double __x) ^ /usr/include/c++/5/cmath:222:3: note: previous declaration 'float std::cosh(float)' cosh(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:230:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::exp(long double)': /usr/include/c++/5/cmath:245:22: error: conflicting declaration of C function 'long double std::exp(long double)' exp(long double __x) ^ /usr/include/c++/5/cmath:241:3: note: previous declaration 'float std::exp(float)' exp(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:249:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::fabs(long double)': /usr/include/c++/5/cmath:264:23: error: conflicting declaration of C function 'long double std::fabs(long double)' fabs(long double __x) ^ /usr/include/c++/5/cmath:260:3: note: previous declaration 'float std::fabs(float)' fabs(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:268:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::floor(long double)': /usr/include/c++/5/cmath:283:24: error: conflicting declaration of C function 'long double std::floor(long double)' floor(long double __x) ^ /usr/include/c++/5/cmath:279:3: note: previous declaration 'float std::floor(float)' floor(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:287:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::fmod(long double, long double)': /usr/include/c++/5/cmath:302:40: error: conflicting declaration of C function 'long double std::fmod(long double, long double)' fmod(long double __x, long double __y) ^ /usr/include/c++/5/cmath:298:3: note: previous declaration 'float std::fmod(float, float)' fmod(float __x, float __y) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:306:3: error: template with C linkage template<typename _Tp, typename _Up> ^ /usr/include/c++/5/cmath: In function 'long double std::frexp(long double, int*)': /usr/include/c++/5/cmath:323:36: error: conflicting declaration of C function 'long double std::frexp(long double, int*)' frexp(long double __x, int* __exp) ^ /usr/include/c++/5/cmath:319:3: note: previous declaration 'float std::frexp(float, int*)' frexp(float __x, int* __exp) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:327:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::ldexp(long double, int)': /usr/include/c++/5/cmath:342:35: error: conflicting declaration of C function 'long double std::ldexp(long double, int)' ldexp(long double __x, int __exp) ^ /usr/include/c++/5/cmath:338:3: note: previous declaration 'float std::ldexp(float, int)' ldexp(float __x, int __exp) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:346:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::log(long double)': /usr/include/c++/5/cmath:361:22: error: conflicting declaration of C function 'long double std::log(long double)' log(long double __x) ^ /usr/include/c++/5/cmath:357:3: note: previous declaration 'float std::log(float)' log(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:365:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::log10(long double)': /usr/include/c++/5/cmath:380:24: error: conflicting declaration of C function 'long double std::log10(long double)' log10(long double __x) ^ /usr/include/c++/5/cmath:376:3: note: previous declaration 'float std::log10(float)' log10(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:384:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::modf(long double, long double*)': /usr/include/c++/5/cmath:399:44: error: conflicting declaration of C function 'long double std::modf(long double, long double*)' modf(long double __x, long double* __iptr) ^ /usr/include/c++/5/cmath:395:3: note: previous declaration 'float std::modf(float, float*)' modf(float __x, float* __iptr) ^ /usr/include/c++/5/cmath: In function 'long double std::pow(long double, long double)': /usr/include/c++/5/cmath:411:39: error: conflicting declaration of C function 'long double std::pow(long double, long double)' pow(long double __x, long double __y) ^ /usr/include/c++/5/cmath:407:3: note: previous declaration 'float std::pow(float, float)' pow(float __x, float __y) ^ /usr/include/c++/5/cmath: In function 'double std::pow(double, int)': /usr/include/c++/5/cmath:418:26: error: conflicting declaration of C function 'double std::pow(double, int)' pow(double __x, int __i) ^ /usr/include/c++/5/cmath:411:3: note: previous declaration 'long double std::pow(long double, long double)' pow(long double __x, long double __y) ^ /usr/include/c++/5/cmath:418:26: error: conflicting declaration of C function 'double std::pow(double, int)' pow(double __x, int __i) ^ /usr/include/c++/5/cmath:407:3: note: previous declaration 'float std::pow(float, float)' pow(float __x, float __y) ^ /usr/include/c++/5/cmath: In function 'float std::pow(float, int)': /usr/include/c++/5/cmath:422:25: error: conflicting declaration of C function 'float std::pow(float, int)' pow(float __x, int __n) ^ /usr/include/c++/5/cmath:418:3: note: previous declaration 'double std::pow(double, int)' pow(double __x, int __i) ^ /usr/include/c++/5/cmath:422:25: error: conflicting declaration of C function 'float std::pow(float, int)' pow(float __x, int __n) ^ /usr/include/c++/5/cmath:411:3: note: previous declaration 'long double std::pow(long double, long double)' pow(long double __x, long double __y) ^ /usr/include/c++/5/cmath:422:25: error: conflicting declaration of C function 'float std::pow(float, int)' pow(float __x, int __n) ^ /usr/include/c++/5/cmath:407:3: note: previous declaration 'float std::pow(float, float)' pow(float __x, float __y) ^ /usr/include/c++/5/cmath: In function 'long double std::pow(long double, int)': /usr/include/c++/5/cmath:426:31: error: conflicting declaration of C function 'long double std::pow(long double, int)' pow(long double __x, int __n) ^ /usr/include/c++/5/cmath:422:3: note: previous declaration 'float std::pow(float, int)' pow(float __x, int __n) ^ /usr/include/c++/5/cmath:426:31: error: conflicting declaration of C function 'long double std::pow(long double, int)' pow(long double __x, int __n) ^ /usr/include/c++/5/cmath:418:3: note: previous declaration 'double std::pow(double, int)' pow(double __x, int __i) ^ /usr/include/c++/5/cmath:426:31: error: conflicting declaration of C function 'long double std::pow(long double, int)' pow(long double __x, int __n) ^ /usr/include/c++/5/cmath:411:3: note: previous declaration 'long double std::pow(long double, long double)' pow(long double __x, long double __y) ^ /usr/include/c++/5/cmath:426:31: error: conflicting declaration of C function 'long double std::pow(long double, int)' pow(long double __x, int __n) ^ /usr/include/c++/5/cmath:407:3: note: previous declaration 'float std::pow(float, float)' pow(float __x, float __y) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:431:3: error: template with C linkage template<typename _Tp, typename _Up> ^ /usr/include/c++/5/cmath: In function 'long double std::sin(long double)': /usr/include/c++/5/cmath:448:22: error: conflicting declaration of C function 'long double std::sin(long double)' sin(long double __x) ^ /usr/include/c++/5/cmath:444:3: note: previous declaration 'float std::sin(float)' sin(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:452:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::sinh(long double)': /usr/include/c++/5/cmath:467:23: error: conflicting declaration of C function 'long double std::sinh(long double)' sinh(long double __x) ^ /usr/include/c++/5/cmath:463:3: note: previous declaration 'float std::sinh(float)' sinh(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:471:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::sqrt(long double)': /usr/include/c++/5/cmath:486:23: error: conflicting declaration of C function 'long double std::sqrt(long double)' sqrt(long double __x) ^ /usr/include/c++/5/cmath:482:3: note: previous declaration 'float std::sqrt(float)' sqrt(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:490:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::tan(long double)': /usr/include/c++/5/cmath:505:22: error: conflicting declaration of C function 'long double std::tan(long double)' tan(long double __x) ^ /usr/include/c++/5/cmath:501:3: note: previous declaration 'float std::tan(float)' tan(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:509:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath: In function 'long double std::tanh(long double)': /usr/include/c++/5/cmath:524:23: error: conflicting declaration of C function 'long double std::tanh(long double)' tanh(long double __x) ^ /usr/include/c++/5/cmath:520:3: note: previous declaration 'float std::tanh(float)' tanh(float __x) ^ /usr/include/c++/5/cmath: At global scope: /usr/include/c++/5/cmath:528:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:831:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:841:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:850:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:859:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:868:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:877:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:890:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:899:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:908:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:917:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:926:3: error: template with C linkage template<typename _Tp> ^ /usr/include/c++/5/cmath:935:3: error: template with C linkage template<typename _Tp> ^ /usr/lib/R/etc/Makeconf:139: recipe for target 'base.o' failed make[1]: *** [base.o] Error 1 make[1]: Leaving directory '/build/r-cran-tgp-2.4-9/src' make[1]: Entering directory '/build/r-cran-tgp-2.4-9/src' make[1]: Leaving directory '/build/r-cran-tgp-2.4-9/src' ERROR: compilation failed for package 'tgp' * removing '/build/r-cran-tgp-2.4-9/debian/r-cran-tgp/usr/lib/R/site-library/tgp' /usr/share/R/debian/r-cran.mk:98: recipe for target 'R_any_arch' failed make: *** [R_any_arch] Error 1 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 I: copying local configuration E: Failed autobuilding of package I: unmounting dev/pts filesystem I: unmounting run/shm filesystem I: unmounting proc filesystem -> Cleaning COW directory forking: rm -rf /var/cache/pbuilder/build/cow.2309