ROCm / HIPIFY

HIPIFY: Convert CUDA to Portable C++ Code
https://rocm.docs.amd.com/projects/HIPIFY/en/latest/
MIT License
503 stars 70 forks source link

[HIPIFY] Cannot build hipify clang #73

Closed amolkumarpatil closed 4 years ago

amolkumarpatil commented 5 years ago

I am using llvm+clang 6.01 on linux 18.0 LTS. I have cuda 8.0 installed as clang 6.01 support cuda 8.0. I am able to successfully build llvm +clang but when I try to build hipify clang it fails. It seems like clang is not able to find the headers.

I am attaching the log of my build:-

[  3%] Building CXX object CMakeFiles/hipify-clang.dir/src/ArgParse.cpp.o
[  6%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP.cpp.o
[ 10%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_BLAS_API_functions.cpp.o
[ 13%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_CAFFE2_API_functions.cpp.o
[ 17%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_BLAS_API_types.cpp.o
[ 20%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Complex_API_functions.cpp.o
[ 24%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_CAFFE2_API_types.cpp.o
[ 27%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Driver_API_types.cpp.o
[ 31%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Complex_API_types.cpp.o
[ 34%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_DNN_API_functions.cpp.o
[ 37%] Building CXX object CMakeFiles/hipify-clang.dir/src/HipifyAction.cpp.o
[ 44%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Runtime_API_types.cpp.o
[ 44%] Building CXX object CMakeFiles/hipify-clang.dir/src/Statistics.cpp.o
[ 51%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_DNN_API_types.cpp.o
[ 51%] Building CXX object CMakeFiles/hipify-clang.dir/src/main.cpp.o
[ 55%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Device_functions.cpp.o
[ 58%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_SPARSE_API_types.cpp.o
[ 62%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Runtime_API_functions.cpp.o
[ 65%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_RAND_API_functions.cpp.o
[ 68%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_FFT_API_functions.cpp.o
[ 72%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_SPARSE_API_functions.cpp.o
In file included from In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_Complex_API_functions.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/HipifyAction.cpp:23:
/home/amol/HIP/HIP/hipify-clang/src/HipifyAction.h:25:10: [ 75%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_FFT_API_types.cpp.o
fatal error: 'clang/Lex/PPCallbacks.h' file not found
#include "clang/Lex/PPCallbacks.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/ArgParse.cpp:23:
/home/amol/HIP/HIP/hipify-clang/src/ArgParse.h:25:10: fatal error: 'clang/Tooling/CommonOptionsParser.h' file not found
#include "clang/Tooling/CommonOptionsParser.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 96%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Python.cpp.o
[ 79%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_RAND_API_types.cpp.o
[ 82%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Driver_API_functions.cpp.o
[ 86%] Building CXX object CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Perl.cpp.o
[ 89%] Building CXX object CMakeFiles/hipify-clang.dir/src/StringUtils.cpp.o
[ 93%] Building CXX object CMakeFiles/hipify-clang.dir/src/LLVMCompat.cpp.o
In file included from In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_Runtime_API_types.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_Runtime_API_functions.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h/home/amol/HIP/HIP/hipify-clang/src/main.cpp:23:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstdio:42:
/usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_CAFFE2_API_types.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_SPARSE_API_types.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
/home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_CAFFE2_API_functions.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_BLAS_API_types.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_Driver_API_types.cpp:23In file included from In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_Perl.cpp:23:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/sstream:38:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/istream:38:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/ios:38:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/iosfwd:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/postypes.h:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cwchar:44:
/usr/include/wchar.h:35:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_Device_functions.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_BLAS_API_functions.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_DNN_API_functions.cpp:In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_DNN_API_types.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file23 not:
 foundIn file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h
:#include <stddef.h>25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h
:20:
         ^~~~~~~~~~
In file included from /usr/local/include/llvm/ADT/Optional.hIn file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_FFT_API_types.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_Complex_API_types.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_RAND_API_functions.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
/home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_Driver_API_functions.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/LLVMCompat.cpp:23:
:
:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/ArgParse.h:25:10: fatal error: 'clang/Tooling/CommonOptionsParser.h' file not found
#include "clang/Tooling/CommonOptionsParser.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_FFT_API_functions.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_RAND_API_types.cpp:23:
In file included from In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_Python.cpp:23:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/sstream:38:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/istream:38:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/ios:38:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/iosfwd:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/postypes.h:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cwchar:44:
/usr/include/wchar.h:35:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP_SPARSE_API_functions.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>/home/amol/HIP/HIP/hipify-clang/src/CUDA2HIP.h
         ^~~~~~~~~~
:25:
In file included from /usr/local/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/include/llvm/ADT/STLExtras.h:20:
In file included from /usr/local/include/llvm/ADT/Optional.h:20:
In file included from /usr/local/include/llvm/Support/AlignOf.h:18:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
In file included from /home/amol/HIP/HIP/hipify-clang/src/Statistics.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/Statistics.h:25:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/chrono:41:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/ctime:42:
/usr/include/time.h:29:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:140: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Complex_API_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Complex_API_functions.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
In file included from /home/amol/HIP/HIP/hipify-clang/src/StringUtils.cpp:23:
In file included from /home/amol/HIP/HIP/hipify-clang/src/StringUtils.h:25:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/string:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/char_traits.h:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/postypes.h:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cwchar:44:
/usr/include/wchar.h:35:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
CMakeFiles/hipify-clang.dir/build.make:361: recipe for target 'CMakeFiles/hipify-clang.dir/src/HipifyAction.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/HipifyAction.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:322: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Runtime_API_types.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Runtime_API_types.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:127: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_CAFFE2_API_types.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_CAFFE2_API_types.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:75: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:88: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_BLAS_API_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_BLAS_API_functions.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:257: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Perl.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Perl.cpp.o] Error 1
1clang++: /home/amol/HIP/new_llvm_clang/llvm-8.0.1.src/tools/clang/lib/AST/Decl.cpp:2342: bool clang::VarDecl::checkInitIsICE() const: Assertion `!Init->isValueDependent()' failed.
 error generated.
Stack dump:
0.  Program arguments: /usr/local/bin/clang++ -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name Statistics.cpp -mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /home/amol/HIP/HIP/hipify-clang/build/CMakeFiles/hipify-clang.dir/src/Statistics.cpp.gcno -resource-dir /usr/local/lib/clang/8.0.1 -D GTEST_HAS_RTTI=0 -D HIPIFY_CLANG_RES="/usr/local/lib/clang/6.0.1" -D NDEBUG -D _GNU_SOURCE -D _DEBUG -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/x86_64-linux-gnu/c++/7.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/x86_64-linux-gnu/c++/7.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/backward -internal-isystem /usr/local/include -internal-isystem /usr/local/lib/clang/8.0.1/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/amol/HIP/HIP/hipify-clang/build -ferror-limit 19 -fmessage-length 204 -fvisibility-inlines-hidden -pthread -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o CMakeFiles/hipify-clang.dir/src/Statistics.cpp.o -xCMakeFiles/hipify-clang.dir/build.make:62: recipe for target 'CMakeFiles/hipify-clang.dir/src/ArgParse.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/ArgParse.cpp.o] Error 1
 c++ /home/amol/HIP/HIP/hipify-clang/src/Statistics.cpp -faddrsig 
1.  /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/locale_facets_nonio.tcc:647:8: current parser token '__ctype'
2.  /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/ostream:41:1: parsing namespace 'std'
3.  /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/locale_facets_nonio.tcc:35:1: parsing namespace 'std::std'
4.  /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/locale_facets_nonio.tcc:637:5: parsing function body
5.  /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/locale_facets_nonio.tcc:637:5: in compound statement ('{}')
6.  /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/locale_facets_nonio.tcc:646:2: in compound statement ('{}')
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:192: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Device_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Device_functions.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:179: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_DNN_API_types.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_DNN_API_types.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:283: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_RAND_API_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_RAND_API_functions.cpp.o] Error 1
1 error generated.
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:218: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Driver_API_types.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Driver_API_types.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:348: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_SPARSE_API_types.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_SPARSE_API_types.cpp.o] Error 1
CMakeFiles/hipify-clang.dir/build.make:166: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_DNN_API_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_DNN_API_functions.cpp.o] Error 1
1 error generated.
1 error generated.
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:153: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Complex_API_types.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Complex_API_types.cpp.o] Error 1
CMakeFiles/hipify-clang.dir/build.make:114: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_CAFFE2_API_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_CAFFE2_API_functions.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:205: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Driver_API_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Driver_API_functions.cpp.o] Error 1
CMakeFiles/hipify-clang.dir/build.make:335: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_SPARSE_API_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_SPARSE_API_functions.cpp.o] Error 1
1 error generated.
1 error generated.
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:101: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_BLAS_API_types.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_BLAS_API_types.cpp.o] Error 1
CMakeFiles/hipify-clang.dir/build.make:309: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Runtime_API_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Runtime_API_functions.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:296: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_RAND_API_types.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_RAND_API_types.cpp.o] Error 1
CMakeFiles/hipify-clang.dir/build.make:244: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_FFT_API_types.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_FFT_API_types.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:231: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_FFT_API_functions.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_FFT_API_functions.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:400: recipe for target 'CMakeFiles/hipify-clang.dir/src/StringUtils.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/StringUtils.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:270: recipe for target 'CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Python.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/CUDA2HIP_Python.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:413: recipe for target 'CMakeFiles/hipify-clang.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/main.cpp.o] Error 1
1 error generated.
CMakeFiles/hipify-clang.dir/build.make:374: recipe for target 'CMakeFiles/hipify-clang.dir/src/LLVMCompat.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/LLVMCompat.cpp.o] Error 1
 #0 0x000055608fb19d6a llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/local/bin/clang+++0x1576d6a)
 ROCm-Developer-Tools/HIP#1 0x000055608fb17be4 llvm::sys::RunSignalHandlers() (/usr/local/bin/clang+++0x1574be4)
 ROCm-Developer-Tools/HIP#2 0x000055608fb17d22 SignalHandler(int) (/usr/local/bin/clang+++0x1574d22)
 ROCm-Developer-Tools/HIP#3 0x00007fd4885b5890 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
 ROCm-Developer-Tools/HIP#4 0x00007fd487266e97 gsignal /build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
 ROCm-Developer-Tools/HIP#5 0x00007fd487268801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
 ROCm-Developer-Tools/HIP#6 0x00007fd48725839a __assert_fail_base /build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
 ROCm-Developer-Tools/HIPIFY#3 0x00007fd487258412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
 ROCm-Developer-Tools/HIPIFY#4 0x000055609179a712 clang::VarDecl::checkInitIsICE() const (/usr/local/bin/clang+++0x31f7712)
 ROCm-Developer-Tools/HIP#9 0x0000556091251a96 DoMarkVarDeclReferenced(clang::Sema&, clang::SourceLocation, clang::VarDecl*, clang::Expr*) (/usr/local/bin/clang+++0x2caea96)
ROCm-Developer-Tools/HIP#10 0x00005560912523ee clang::Sema::BuildDeclRefExpr(clang::ValueDecl*, clang::QualType, clang::ExprValueKind, clang::DeclarationNameInfo const&, clang::CXXScopeSpec const*, clang::NamedDecl*, clang::TemplateArgumentListInfo const*) (/usr/local/bin/clang+++0x2caf3ee)
ROCm-Developer-Tools/HIP#11 0x0000556091252cea clang::Sema::BuildDeclarationNameExpr(clang::CXXScopeSpec const&, clang::DeclarationNameInfo const&, clang::NamedDecl*, clang::NamedDecl*, clang::TemplateArgumentListInfo const*, bool) (/usr/local/bin/clang+++0x2cafcea)
ROCm-Developer-Tools/HIP#12 0x000055609125331b clang::Sema::BuildDeclarationNameExpr(clang::CXXScopeSpec const&, clang::LookupResult&, bool, bool) (/usr/local/bin/clang+++0x2cb031b)
ROCm-Developer-Tools/HIP#13 0x000055609113e6e6 clang::Sema::ClassifyName(clang::Scope*, clang::CXXScopeSpec&, clang::IdentifierInfo*&, clang::SourceLocation, clang::Token const&, bool, std::unique_ptr<clang::CorrectionCandidateCallback, std::default_delete<clang::CorrectionCandidateCallback> >) (/usr/local/bin/clang+++0x2b9b6e6)
ROCm-Developer-Tools/HIP#14 0x0000556090f0f6e9 clang::Parser::TryAnnotateName(bool, std::unique_ptr<clang::CorrectionCandidateCallback, std::default_delete<clang::CorrectionCandidateCallback> >) (/usr/local/bin/clang+++0x296c6e9)
ROCm-Developer-Tools/HIP#15 0x0000556090faa299 clang::Parser::isCXXDeclarationSpecifier(clang::Parser::TPResult, bool*) (/usr/local/bin/clang+++0x2a07299)
ROCm-Developer-Tools/HIP#16 0x0000556090fac99f clang::Parser::isCXXConditionDeclarationOrInitStatement(bool, bool) (/usr/local/bin/clang+++0x2a0999f)
ROCm-Developer-Tools/HIP#17 0x0000556090f5b891 clang::Parser::ParseCXXCondition(clang::ActionResult<clang::Stmt*, true>*, clang::SourceLocation, clang::Sema::ConditionKind, clang::Parser::ForRangeInfo*) (/usr/local/bin/clang+++0x29b8891)
ROCm-Developer-Tools/HIP#18 0x0000556090f8de2c clang::Parser::ParseParenExprOrCondition(clang::ActionResult<clang::Stmt*, true>*, clang::Sema::ConditionResult&, clang::SourceLocation, clang::Sema::ConditionKind) (/usr/local/bin/clang+++0x29eae2c)
ROCm-Developer-Tools/HIP#19 0x0000556090f93c7d clang::Parser::ParseIfStatement(clang::SourceLocation*) (/usr/local/bin/clang+++0x29f0c7d)
ROCm-Developer-Tools/HIP#20 0x0000556090f913bb clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (/usr/local/bin/clang+++0x29ee3bb)
ROCm-Developer-Tools/HIP#21 0x0000556090f91fa9 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (/usr/local/bin/clang+++0x29eefa9)
ROCm-Developer-Tools/HIP#22 0x0000556090f8e979 clang::Parser::ParseCompoundStatementBody(bool) (/usr/local/bin/clang+++0x29eb979)
ROCm-Developer-Tools/HIP#23 0x0000556090f8eea5 clang::Parser::ParseCompoundStatement(bool, unsigned int) (/usr/local/bin/clang+++0x29ebea5)
ROCm-Developer-Tools/HIP#24 0x0000556090f914ca clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (/usr/local/bin/clang+++0x29ee4ca)
ROCm-Developer-Tools/HIP#25 0x0000556090f91fa9 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (/usr/local/bin/clang+++0x29eefa9)
ROCm-Developer-Tools/HIP#26 0x0000556090f92287 clang::Parser::ParseStatement(clang::SourceLocation*, bool) (/usr/local/bin/clang+++0x29ef287)
ROCm-Developer-Tools/HIPIFY#6 0x0000556090f954fc clang::Parser::ParseForStatement(clang::SourceLocation*) (/usr/local/bin/clang+++0x29f24fc)
ROCm-Developer-Tools/HIP#28 0x0000556090f913eb clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (/usr/local/bin/clang+++0x29ee3eb)
ROCm-Developer-Tools/HIP#29 0x0000556090f91fa9 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (/usr/local/bin/clang+++0x29eefa9)
ROCm-Developer-Tools/HIP#30 0x0000556090f8e979 clang::Parser::ParseCompoundStatementBody(bool) (/usr/local/bin/clang+++0x29eb979)
ROCm-Developer-Tools/HIP#31 0x0000556090f969e4 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/usr/local/bin/clang+++0x29f39e4)
ROCm-Developer-Tools/HIP#32 0x0000556090f0c4cc clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/usr/local/bin/clang+++0x29694cc)
ROCm-Developer-Tools/HIPIFY#7 0x0000556090fa6ea2 clang::Parser::ParseSingleDeclarationAfterTemplate(clang::DeclaratorContext, clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) (/usr/local/bin/clang+++0x2a03ea2)
ROCm-Developer-Tools/HIPIFY#8 0x0000556090fa78ec clang::Parser::ParseTemplateDeclarationOrSpecialization(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) (/usr/local/bin/clang+++0x2a048ec)
ROCm-Developer-Tools/HIPIFY#9 0x0000556090fa7ebd clang::Parser::ParseDeclarationStartingWithTemplate(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) (/usr/local/bin/clang+++0x2a04ebd)
ROCm-Developer-Tools/HIPIFY#10 0x0000556090f30e67 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) (/usr/local/bin/clang+++0x298de67)
ROCm-Developer-Tools/HIP#37 0x0000556090f0d6ba clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/usr/local/bin/clang+++0x296a6ba)
ROCm-Developer-Tools/HIP#38 0x0000556090f40ade clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/usr/local/bin/clang+++0x299dade)
ROCm-Developer-Tools/HIP#39 0x0000556090f416f3 clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (/usr/local/bin/clang+++0x299e6f3)
ROCm-Developer-Tools/HIP#40 0x0000556090f30e90 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) (/usr/local/bin/clang+++0x298de90)
ROCm-Developer-Tools/HIP#41 0x0000556090f0d6ba clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/usr/local/bin/clang+++0x296a6ba)
ROCm-Developer-Tools/HIP#42 0x0000556090f40ade clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/usr/local/bin/clang+++0x299dade)
ROCm-Developer-Tools/HIP#43 0x0000556090f416f3 clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (/usr/local/bin/clang+++0x299e6f3)
ROCm-Developer-Tools/HIP#44 0x0000556090f30e90 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) (/usr/local/bin/clang+++0x298de90)
ROCm-Developer-Tools/HIP#45 0x0000556090f0d6ba clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/usr/local/bin/clang+++0x296a6ba)
ROCm-Developer-Tools/HIP#46 0x0000556090f0e859 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) (/usr/local/bin/clang+++0x296b859)
ROCm-Developer-Tools/HIP#47 0x0000556090f04527 clang::ParseAST(clang::Sema&, bool, bool) (/usr/local/bin/clang+++0x2961527)
ROCm-Developer-Tools/HIP#48 0x000055609064a828 clang::CodeGenAction::ExecuteAction() (/usr/local/bin/clang+++0x20a7828)
ROCm-Developer-Tools/HIP#49 0x00005560901c0b2e clang::FrontendAction::Execute() (/usr/local/bin/clang+++0x1c1db2e)
ROCm-Developer-Tools/HIP#50 0x00005560901821b6 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/local/bin/clang+++0x1bdf1b6)
ROCm-Developer-Tools/HIP#51 0x0000556090263f6d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/local/bin/clang+++0x1cc0f6d)
ROCm-Developer-Tools/HIP#52 0x000055608ee66b08 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/local/bin/clang+++0x8c3b08)
ROCm-Developer-Tools/HIPIFY#11 0x000055608ee09e2d main (/usr/local/bin/clang+++0x866e2d)
ROCm-Developer-Tools/HIP#54 0x00007fd487249b97 __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
ROCm-Developer-Tools/HIPIFY#12 0x000055608ee6285a _start (/usr/local/bin/clang+++0x8bf85a)
clang++: error: unable to execute command: Aborted (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 8.0.1 (tags/RELEASE_801/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg: Error generating preprocessed source(s).
CMakeFiles/hipify-clang.dir/build.make:387: recipe for target 'CMakeFiles/hipify-clang.dir/src/Statistics.cpp.o' failed
make[2]: *** [CMakeFiles/hipify-clang.dir/src/Statistics.cpp.o] Error 254
CMakeFiles/Makefile2:78: recipe for target 'CMakeFiles/hipify-clang.dir/all' failed
make[1]: *** [CMakeFiles/hipify-clang.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
emankov commented 5 years ago

Your Ubuntu 18 configuration is not a default configuration. Clang 6.x doesn't work correctly with GNU C lib 7.x. For Bionic Ubuntu 18.x, please install llvm+clang of at least 8.0 version; for an appropriate llvm-toolchain-bionic please refer https://apt.llvm.org/. The list of supported and tested configurations provided here: https://github.com/ROCm-Developer-Tools/HIP/tree/master/hipify-clang#linux.

emankov commented 5 years ago

Closing, cause answered.

JBBIntel commented 2 years ago

I am having this same problem, only I am on Ubuntu 20.04, with an upgraded kernel (5.13.0-52-generic) to support AMD's newer GPUs. What version of llvm+clang do I need?