yyan7@yyan7-Ubuntu:~/tools/pinsight/build$ cmake -DOPENMP_INCLUDE_PATH=/opt/llvm-install/llvm-20201103/lib/clang/12.0.0/include ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
============================================================
Build with OpenMP Support: TRUE
OPENMP_INCLUDE_PATH: /opt/llvm-install/llvm-20201103/lib/clang/12.0.0/include
Build with MPI Support: FALSE
Build with CUDA Support: FALSE
============================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yyan7/tools/pinsight/build
yyan7@yyan7-Ubuntu:~/tools/pinsight/build$ make
/usr/local/bin/cmake -S/home/yyan7/tools/pinsight -B/home/yyan7/tools/pinsight/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/bin/cmake -E cmake_progress_start /home/yyan7/tools/pinsight/build/CMakeFiles /home/yyan7/tools/pinsight/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/yyan7/tools/pinsight/build'
make -f CMakeFiles/pinsight.dir/build.make CMakeFiles/pinsight.dir/depend
make[2]: Entering directory '/home/yyan7/tools/pinsight/build'
cd /home/yyan7/tools/pinsight/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/yyan7/tools/pinsight /home/yyan7/tools/pinsight /home/yyan7/tools/pinsight/build /home/yyan7/tools/pinsight/build /home/yyan7/tools/pinsight/build/CMakeFiles/pinsight.dir/DependInfo.cmake --color=
Scanning dependencies of target pinsight
make[2]: Leaving directory '/home/yyan7/tools/pinsight/build'
make -f CMakeFiles/pinsight.dir/build.make CMakeFiles/pinsight.dir/build
make[2]: Entering directory '/home/yyan7/tools/pinsight/build'
[ 20%] Building C object CMakeFiles/pinsight.dir/src/env_config.c.o
/usr/bin/cc -Dpinsight_EXPORTS -I/opt/llvm-install/llvm-20201103/lib/clang/12.0.0/include -I/home/yyan7/tools/pinsight/build/src -I/home/yyan7/tools/pinsight/src -g -fPIC -o CMakeFiles/pinsight.dir/src/env_config.c.o -c /home/yyan7/tools/pinsight/src/env_config.c
In file included from /usr/include/stdlib.h:31:0,
from /home/yyan7/tools/pinsight/src/env_config.h:8,
from /home/yyan7/tools/pinsight/src/env_config.c:4:
/opt/llvm-install/llvm-20201103/lib/clang/12.0.0/include/stddef.h:41:39: error: missing binary operator before token "("
#if !defined(_SIZE_T) || __has_feature(modules)
^
/opt/llvm-install/llvm-20201103/lib/clang/12.0.0/include/stddef.h:67:40: error: missing binary operator before token "("
#if !defined(_WCHAR_T) || __has_feature(modules)
^
In file included from /home/yyan7/tools/pinsight/src/env_config.h:8:0,
from /home/yyan7/tools/pinsight/src/env_config.c:4:
/usr/include/stdlib.h:97:8: error: unknown type name ‘size_t’
extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:145:0,
from /usr/include/stdlib.h:394,
from /home/yyan7/tools/pinsight/src/env_config.h:8,
from /home/yyan7/tools/pinsight/src/env_config.c:4:
/opt/llvm-install/llvm-20201103/lib/clang/12.0.0/include/stddef.h:41:39: error: missing binary operator before token "("
#if !defined(_SIZE_T) || __has_feature(modules)
^
In file included from /home/yyan7/tools/pinsight/src/env_config.h:8:0,
from /home/yyan7/tools/pinsight/src/env_config.c:4:
/usr/include/stdlib.h:411:4: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
size_t __statelen) __THROW __nonnull ((2));
^~~~~~
ssize_t
/usr/include/stdlib.h:441:4: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
size_t __statelen,
^~~~~~
ssize_t
/usr/include/stdlib.h:539:22: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^~~~~~
ssize_t
/usr/include/stdlib.h:541:22: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void *calloc (size_t __nmemb, size_t __size)
^~~~~~
ssize_t
/usr/include/stdlib.h:541:38: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void *calloc (size_t __nmemb, size_t __size)
^~~~~~
ssize_t
/usr/include/stdlib.h:549:36: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void *realloc (void *__ptr, size_t __size)
^~~~~~
ssize_t
In file included from /usr/include/alloca.h:24:0,
from /usr/include/stdlib.h:566,
from /home/yyan7/tools/pinsight/src/env_config.h:8,
from /home/yyan7/tools/pinsight/src/env_config.c:4:
/opt/llvm-install/llvm-20201103/lib/clang/12.0.0/include/stddef.h:41:39: error: missing binary operator before token "("
#if !defined(_SIZE_T) || __has_feature(modules)
^
In file included from /usr/include/stdlib.h:566:0,
from /home/yyan7/tools/pinsight/src/env_config.h:8,
from /home/yyan7/tools/pinsight/src/env_config.c:4:
/usr/include/alloca.h:32:22: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void *alloca (size_t __size) __THROW;
^~~~~~
ssize_t
In file included from /home/yyan7/tools/pinsight/src/env_config.h:8:0,
from /home/yyan7/tools/pinsight/src/env_config.c:4:
/usr/include/stdlib.h:572:22: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
^~~~~~
ssize_t
/usr/include/stdlib.h:577:45: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
^~~~~~
ssize_t
/usr/include/stdlib.h:577:65: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
^~~~~~
ssize_t
/usr/include/stdlib.h:583:29: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void *aligned_alloc (size_t __alignment, size_t __size)
^~~~~~
ssize_t
/usr/include/stdlib.h:583:49: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void *aligned_alloc (size_t __alignment, size_t __size)
^~~~~~
ssize_t
/usr/include/stdlib.h:818:9: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^~~~~~
ssize_t
/usr/include/stdlib.h:818:25: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^~~~~~
ssize_t
/usr/include/stdlib.h:827:34: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^~~~~~
ssize_t
/usr/include/stdlib.h:827:50: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^~~~~~
ssize_t
/usr/include/stdlib.h:901:6: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
size_t __len) __THROW __nonnull ((3, 4, 5));
^~~~~~
ssize_t
/usr/include/stdlib.h:904:6: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
size_t __len) __THROW __nonnull ((3, 4, 5));
^~~~~~
ssize_t
/usr/include/stdlib.h:908:31: error: unknown type name ‘size_t’; did you mean ‘ssize_t’?
char *__restrict __buf, size_t __len)
^~~~~~
ssize_t
See below error msg: