This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help needed : /usr/include/c++/7.2.0/bits/std_abs.h:55:26: error: use of undeclared identifier '__builtin_labs'


could anyone advise about gcc header issue at
https://paste.ubuntu.com/p/jHgrChvyjJ/ ? there is no solution for this
similar problem online.


phung@UbuntuHW15:~/Documents/fpga_overlay/hls_source_code_32-bit/YUV2RGB$
make clean && make
rm -rfv test-gpp test-gpp.prj test-fpga test-fpga.prj test-x86-64
test-x86-64.prj
No target specified, defaulting to test-x86-64
Available targets: test-x86-64, test-fpga, test-gpp, clean
i++ main.cpp yuv2rgb.cpp   -I"/usr/include/c++/7.2.0"
-I"/opt/intelFPGA/17.1/hls/bin//i++/include"
-I"/usr/include/x86_64-linux-gnu/c++/7.2.0" -march=x86-64 -o test-x86-64
In file included from main.cpp:2:
In file included from /usr/include/c++/7.2.0/stdlib.h:36:
In file included from /usr/include/c++/7.2.0/cstdlib:76:
/usr/include/c++/7.2.0/bits/std_abs.h:55:26: error: use of undeclared
identifier '__builtin_labs'
  abs(long __i) { return __builtin_labs(__i); }
                         ^
/usr/include/c++/7.2.0/bits/std_abs.h:60:31: error: use of undeclared
identifier '__builtin_llabs'
  abs(long long __x) { return __builtin_llabs (__x); }
                              ^
In file included from main.cpp:4:
/usr/include/malloc.h:38:14: error: declaration conflicts with target of
using declaration already in scope
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
             ^
/usr/include/stdlib.h:466:14: note: target of using declaration
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
             ^
/usr/include/c++/7.2.0/stdlib.h:65:12: note: using declaration
using std::malloc;
           ^
In file included from main.cpp:4:
/usr/include/malloc.h:41:14: error: declaration conflicts with target of
using declaration already in scope
extern void *calloc (size_t __nmemb, size_t __size)
             ^
/usr/include/stdlib.h:468:14: note: target of using declaration
extern void *calloc (size_t __nmemb, size_t __size)
             ^
/usr/include/c++/7.2.0/stdlib.h:59:12: note: using declaration
using std::calloc;
           ^
In file included from main.cpp:4:
/usr/include/malloc.h:49:14: error: declaration conflicts with target of
using declaration already in scope
extern void *realloc (void *__ptr, size_t __size)
             ^
/usr/include/stdlib.h:480:14: note: target of using declaration
extern void *realloc (void *__ptr, size_t __size)
             ^
/usr/include/c++/7.2.0/stdlib.h:73:12: note: using declaration
using std::realloc;
           ^
In file included from main.cpp:4:
/usr/include/malloc.h:53:13: error: declaration conflicts with target of
using declaration already in scope
extern void free (void *__ptr) __THROW;
            ^
/usr/include/stdlib.h:483:13: note: target of using declaration
extern void free (void *__ptr) __THROW;
            ^
/usr/include/c++/7.2.0/stdlib.h:61:12: note: using declaration
using std::free;
           ^
6 errors generated.
HLS x86-64 compile FAILED.
Makefile:40: recipe for target 'test-x86-64' failed
make: *** [test-x86-64] Error 1
phung@UbuntuHW15:~/Documents/fpga_overlay/hls_source_code_32-bit/YUV2RGB$


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]