Hi I am trying to install Tapir/LLVM with the cilk support on my server.
The native GCC version on the server is 4.4.7 but I installed version 6.1 and linked it to the terminal by exporting the variables.
When I build the cmake I get errors and the build fails.
ERROR SUMMARY:
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:8:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’
static_assert(sizeof(func_prop_t) == 8, "Size of func_prop_t is not 64 bits.");
^~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:8:41: error: expected declaration specifiers or ‘...’ before string constant
static_assert(sizeof(func_prop_t) == 8, "Size of func_prop_t is not 64 bits.");
^~~~~~~~~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:9:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’
static_assert(sizeof(func_exit_prop_t) == 8, "Size of func_exit_prop_t is not 64 bits.");
^~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:9:46: error: expected declaration specifiers or ‘...’ before string constant
static_assert(sizeof(func_exit_prop_t) == 8, "Size of func_exit_prop_t is not 64 bits.");
^~~~~~~~~~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:10:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’
static_assert(sizeof(bb_prop_t) == 8, "Size of bb_prop_t is not 64 bits.");
^~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:10:39: error: expected declaration specifiers or ‘...’ before string constant
static_assert(sizeof(bb_prop_t) == 8, "Size of bb_prop_t is not 64 bits.");
^~~~~~~~~~~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:11:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’
static_assert(sizeof(call_prop_t) == 8, "Size of call_prop_t is not 64 bits.");
^~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:11:41: error: expected declaration specifiers or ‘...’ before string constant
static_assert(sizeof(call_prop_t) == 8, "Size of call_prop_t is not 64 bits.");
^~~~~~~~~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:12:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’
static_assert(sizeof(load_prop_t) == 8, "Size of load_prop_t is not 64 bits.");
^~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:12:41: error: expected declaration specifiers or ‘...’ before string constant
static_assert(sizeof(load_prop_t) == 8, "Size of load_prop_t is not 64 bits.");
^~~~~~~~~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:13:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’
static_assert(sizeof(store_prop_t) == 8, "Size of store_prop_t is not 64 bits.");
^~
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:13:42: error: expected declaration specifiers or ‘...’ before string constant
static_assert(sizeof(store_prop_t) == 8, "Size of store_prop_t is not 64 bits.");
^~~~~~~~~~
I did something that is not recommended and commented out the static asserts and a few other errors that came later and got the build to work (this is not recommended I know).
However,
Next I try to install the cilk runtime with clang 5 from the previous build but again I get errors.
It tries to build the runtime with the native GCC version 4.4.7 version on the server
and that causes errors. Even thought I exported version 6.1 in the terminal.
ERROR SUMMARY FOR CILK RUNTIME (compiled using clang version 5 ):
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cstddef:51:11: error: no member named 'ptrdiff_t' in the global namespace
using ::ptrdiff_t;
Do you have any solution?
kindly get back to me. thank you.
Hi I am trying to install Tapir/LLVM with the cilk support on my server. The native GCC version on the server is 4.4.7 but I installed version 6.1 and linked it to the terminal by exporting the variables. When I build the cmake I get errors and the build fails.
ERROR SUMMARY:
/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:8:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’ static_assert(sizeof(func_prop_t) == 8, "Size of func_prop_t is not 64 bits."); ^
~/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:8:41: error: expected declaration specifiers or ‘...’ before string constant static_assert(sizeof(func_prop_t) == 8, "Size of func_prop_t is not 64 bits."); ^~~~~~~~~ /local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:9:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’ static_assert(sizeof(func_exit_prop_t) == 8, "Size of func_exit_prop_t is not 64 bits."); ^~/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:9:46: error: expected declaration specifiers or ‘...’ before string constant static_assert(sizeof(func_exit_prop_t) == 8, "Size of func_exit_prop_t is not 64 bits."); ^~~~~~~~~~ /local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:10:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’ static_assert(sizeof(bb_prop_t) == 8, "Size of bb_prop_t is not 64 bits."); ^~/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:10:39: error: expected declaration specifiers or ‘...’ before string constant static_assert(sizeof(bb_prop_t) == 8, "Size of bb_prop_t is not 64 bits."); ^~~~~~~~~~~ /local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:11:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’ static_assert(sizeof(call_prop_t) == 8, "Size of call_prop_t is not 64 bits."); ^~/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:11:41: error: expected declaration specifiers or ‘...’ before string constant static_assert(sizeof(call_prop_t) == 8, "Size of call_prop_t is not 64 bits."); ^~~~~~~~~ /local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:12:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’ static_assert(sizeof(load_prop_t) == 8, "Size of load_prop_t is not 64 bits."); ^~/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:12:41: error: expected declaration specifiers or ‘...’ before string constant static_assert(sizeof(load_prop_t) == 8, "Size of load_prop_t is not 64 bits."); ^~~~~~~~~ /local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:13:15: error: expected declaration specifiers or ‘...’ before ‘sizeof’ static_assert(sizeof(store_prop_t) == 8, "Size of store_prop_t is not 64 bits."); ^~/local/scratch/a/Tapir-Meta/tapir/projects/compiler-rt/lib/csi/csirt.c:13:42: error: expected declaration specifiers or ‘...’ before string constant static_assert(sizeof(store_prop_t) == 8, "Size of store_prop_t is not 64 bits."); ^~~~~~~~~~I did something that is not recommended and commented out the static asserts and a few other errors that came later and got the build to work (this is not recommended I know).
However, Next I try to install the cilk runtime with clang 5 from the previous build but again I get errors. It tries to build the runtime with the native GCC version 4.4.7 version on the server and that causes errors. Even thought I exported version 6.1 in the terminal.
ERROR SUMMARY FOR CILK RUNTIME (compiled using clang version 5 ):
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cstddef:51:11: error: no member named 'ptrdiff_t' in the global namespace using ::ptrdiff_t;
Do you have any solution? kindly get back to me. thank you.