antonmks/Alenka

Compiling Error

Closed this issue · 3 comments

Hey I tried to compile Alenka on a linux machine it raises the error

nvcc --machine 64 -O3 -std=c++11 -I moderngpu-master/include/ -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -c -I moderngpu-master/include/ bison.cu
In file included from /usr/include/c++/4.8.2/cstdint:41:0,
                 from /usr/include/c++/4.8.2/bits/char_traits.h:376,
                 from /usr/include/c++/4.8.2/ios:40,
                 from /usr/include/c++/4.8.2/ostream:38,
                 from /usr/include/c++/4.8.2/iterator:64,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/iterator/iterator_traits.h:34,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/detail/type_traits/pointer_traits.h:23,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/memory.h:23,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/device_ptr.h:25,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/device_malloc_allocator.h:25,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/device_vector.h:25,
                 from cm.h:21,
                 from bison.y:19:
./stdint.h:33:2: error: #error "Use this header only with Microsoft Visual C++ compilers!"
 #error "Use this header only with Microsoft Visual C++ compilers!"
  ^
In file included from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/detail/cstdint.h:20:0,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/system/cuda/detail/bulk/async.hpp:23,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/system/cuda/detail/bulk/bulk.hpp:23,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/system/cuda/detail/bulk.h:47,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/system/cuda/detail/throw_on_error.h:22,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/system/cuda/detail/malloc_and_free.h:26,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/system/detail/adl/malloc_and_free.h:32,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/system/detail/generic/memory.inl:21,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/system/detail/generic/memory.h:71,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/detail/reference.inl:22,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/detail/reference.h:166,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/memory.h:25,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/device_ptr.h:25,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/device_malloc_allocator.h:25,
                 from /usr/local/cuda-7.0/bin/../targets/x86_64-linux/include/thrust/device_vector.h:25,
                 from cm.h:21,
                 from bison.y:19:
./stdint.h:33:2: error: #error "Use this header only with Microsoft Visual C++ compilers!"
 #error "Use this header only with Microsoft Visual C++ compilers!"
  ^
make: *** [bison.o] Error 1

what OS?

redhat

which version? I am using CentOS 7, should work on RedHat 7. Note RH6 will not work due to older kernel