AdaptiveCpp: Permission issue in manual build

Hello, I’m trying to build hipSYCL manually following the steps in README file.

git clone --recurse-submodules https://github.com/illuhad/hipSYCL
cd hipSYCL
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=. ..

and this is the output

-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- 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
CMake Warning (dev) at CMakeLists.txt:17 (set):
  implicitly converting 'INTEGER' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /software/nvidia/cuda/10.0 (found version "10.0")
-- Boost version: 1.57.0
-- Found the following Boost libraries:
--   filesystem
--   system
-- Boost version: 1.57.0
-- Configuring done
-- Generating done
-- Build files have been written to: /path/hipSYCL/build

then I tried to build it with: make install it causes fatal error:

make install
Scanning dependencies of target hipSYCL_cuda
[  2%] Building CXX object src/libhipSYCL/CMakeFiles/hipSYCL_cuda.dir/application.cpp.o
syclcc fatal error: [Errno 13] Permission denied: '/path/hipSYCL/bin/'
make[2]: *** [src/libhipSYCL/CMakeFiles/hipSYCL_cuda.dir/application.cpp.o] Error 255
make[1]: *** [src/libhipSYCL/CMakeFiles/hipSYCL_cuda.dir/all] Error 2
make: *** [all] Error 2

however the permissions for source and build directory have not changed since their creation and also /path/hipSYCL/bin/ exists and contains syclcc syclcc-clang.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20

Most upvoted comments

That’s great to hear! I’ll open a new issue to put on my todo list that we should detect llvm flags automatically, so that fno-rtti is added if necessary.