HikariObfuscator / Hikari

LLVM Obfuscator
1.93k stars 547 forks source link

Compilation errors #65

Closed watashiwa-toki closed 5 years ago

watashiwa-toki commented 5 years ago

What exact list of prerequisites fo install this? I'am not a sorcerer to guess this. SWIG, Python, CMake, GCC/Clang, zlib is not enough.

canterel@LocusSolusStation:~$ git clone -b release_70 https://github.com/HikariObfuscator/Hikari.git Hikari && mkdir Build && cd Build && cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_APPEND_VC_REV=on ../Hikari && ninja && ninja install && git clone https://github.com/HikariObfuscator/Resources.git ~/Hikari
Cloning into 'Hikari'...
remote: Enumerating objects: 51, done.
remote: Counting objects: 100% (51/51), done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 87178 (delta 18), reused 15 (delta 5), pack-reused 87127
Receiving objects: 100% (87178/87178), 128.82 MiB | 10.49 MiB/s, done.
Resolving deltas: 100% (24475/24475), done.
Checking connectivity... done.
Checking out files: 100% (60501/60501), done.
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- 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 using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for link.h
-- Looking for link.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Looking for mach/mach.h
-- Looking for mach/mach.h - not found
-- Looking for histedit.h
-- Looking for histedit.h - found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for linux/magic.h
-- Looking for linux/magic.h - found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_getspecific in pthread
-- Looking for pthread_getspecific in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
-- Looking for pthread_mutex_lock in pthread
-- Looking for pthread_mutex_lock in pthread - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- 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  
-- Looking for compress2 in z
-- Looking for compress2 in z - found
-- Looking for el_init in edit
-- Looking for el_init in edit - found
-- Looking for setupterm in tinfo
-- Looking for setupterm in tinfo - found
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.3") 
-- Looking for xar_open in xar
-- Looking for xar_open in xar - not found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - found
-- Looking for sigaltstack
-- Looking for sigaltstack - found
-- Looking for lseek64
-- Looking for lseek64 - found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for posix_spawn
-- Looking for posix_spawn - found
-- Looking for pread
-- Looking for pread - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for sbrk
-- Looking for sbrk - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for strerror_s
-- Looking for strerror_s - not found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for dladdr
-- Looking for dladdr - not found
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Looking for sched_getaffinity
-- Looking for sched_getaffinity - found
-- Looking for CPU_COUNT
-- Looking for CPU_COUNT - found
-- Looking for pthread_getname_np
-- Looking for pthread_getname_np - found
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Success
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Failed
-- Performing Test HAS_MAYBE_UNINITIALIZED
-- Performing Test HAS_MAYBE_UNINITIALIZED - Success
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found OCaml: /home/canterel/opam-coq.8.8.0/4.05.0/bin/ocamlfind  
-- OCaml bindings disabled, need ctypes >=0.4.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_CXX11
-- Performing Test CXX_SUPPORTS_CXX11 - Success
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Failed
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Failed
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FDATA_SECTIONS
-- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.12") 
-- Constructing LLVMBuild project information
-- Linker detection: GNU ld
-- Targeting AArch64
-- Targeting AMDGPU
-- Targeting ARM
-- Targeting BPF
-- Targeting Hexagon
-- Targeting Lanai
-- Targeting Mips
-- Targeting MSP430
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting Sparc
-- Targeting SystemZ
-- Targeting X86
-- Targeting XCore
-- ISL version: isl-0.20-35-ge0a98b62
-- Performing Test HAS_ATTRIBUTE_WARN_UNUSED_RESULT
-- Performing Test HAS_ATTRIBUTE_WARN_UNUSED_RESULT - Success
-- Performing Test HAVE___ATTRIBUTE__
-- Performing Test HAVE___ATTRIBUTE__ - Success
-- Performing Test HAVE_DECL_FFS
-- Performing Test HAVE_DECL_FFS - Success
-- Performing Test HAVE_DECL___BUILTIN_FFS
-- Performing Test HAVE_DECL___BUILTIN_FFS - Success
-- Performing Test HAVE_DECL__BITSCANFORWARD
-- Performing Test HAVE_DECL__BITSCANFORWARD - Failed
-- Performing Test HAVE_DECL_STRCASECMP
-- Performing Test HAVE_DECL_STRCASECMP - Success
-- Performing Test HAVE_DECL__STRICMP
-- Performing Test HAVE_DECL__STRICMP - Failed
-- Performing Test HAVE_DECL_STRNCASECMP
-- Performing Test HAVE_DECL_STRNCASECMP - Success
-- Performing Test HAVE_DECL__STRNICMP
-- Performing Test HAVE_DECL__STRNICMP - Failed
-- Performing Test HAVE_DECL_SNPRINTF
-- Performing Test HAVE_DECL_SNPRINTF - Success
-- Performing Test HAVE_DECL__SNPRINTF
-- Performing Test HAVE_DECL__SNPRINTF - Failed
-- Performing Test HAVE_UINT8T
-- Performing Test HAVE_UINT8T - Failed
-- Performing Test HAVE_STDINT_H
-- Performing Test HAVE_STDINT_H - Success
-- Performing Test HAVE_INTTYPES_H
-- Performing Test HAVE_INTTYPES_H - Success
-- Performing Test HAVE_SYS_INTTYPES_H
-- Performing Test HAVE_SYS_INTTYPES_H - Failed
-- PPCG version: ppcg-0.07
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Clang version: 7.0.0
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
-- LLD version: 7.0.0
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (found version "3.5.2") 
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success
-- Performing Test CXX_SUPPORTS_NO_UNKNOWN_PRAGMAS
-- Performing Test CXX_SUPPORTS_NO_UNKNOWN_PRAGMAS - Success
-- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING
-- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING - Success
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_REGISTER
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_REGISTER - Success
-- Performing Test CXX_SUPPORTS_NO_VLA_EXTENSION
-- Performing Test CXX_SUPPORTS_NO_VLA_EXTENSION - Success
-- Performing Test CXX_SUPPORTS_NO_GNU_ANONYMOUS_STRUCT
-- Performing Test CXX_SUPPORTS_NO_GNU_ANONYMOUS_STRUCT - Success
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES - Success
-- LLDB version: 7.0.0
-- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so  
-- Looking for __GLIBCXX__
-- Looking for __GLIBCXX__ - found
-- Performing Test LLDB_USING_LIBSTDCXX_4_9
-- Performing Test LLDB_USING_LIBSTDCXX_4_9 - Success
-- Looking for ppoll
-- Looking for ppoll - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for accept4
-- Looking for accept4 - found
-- Looking for include files sys/types.h, sys/event.h
-- Looking for include files sys/types.h, sys/event.h - not found
-- Looking for process_vm_readv
-- Looking for process_vm_readv - found
-- Looking for __NR_process_vm_readv
-- Looking for __NR_process_vm_readv - found
-- Looking for compression_encode_buffer in compression
-- Looking for compression_encode_buffer in compression - not found
-- Looking for el_winsertstr
-- Looking for el_winsertstr - not found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of el_rfunc_t
-- Check size of el_rfunc_t - failed
-- Found libedit: /usr/include (found version ".") 
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Found SWIG: /usr/bin/swig3.0 (found version "3.0.8") 
-- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED
-- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED - Success
-- Symbols (liblldb): exporting all symbols from the lldb namespace
-- Configuring done
-- Generating done
-- Build files have been written to: /home/canterel/Build
[63/4640] Building CXX object lib/Supp.../CMakeFiles/LLVMSupport.dir/JSON.cpp.o
In file included from /home/canterel/Hikari/lib/Support/JSON.cpp:10:0:
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = bool]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:393:23:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     return *reinterpret_cast<T *>(Union.buffer);
                                               ^
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = double]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:398:25:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = long int]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:400:26:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = std::__cxx11::basic_string<char>]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:418:46:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = llvm::StringRef]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:420:34:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = llvm::json::Object]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:424:62:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = llvm::json::Array]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:430:60:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
[126/4640] Building CXX object lib/Tab...les/LLVMTableGen.dir/JSONBackend.cpp.o
In file included from /home/canterel/Hikari/lib/TableGen/JSONBackend.cpp:20:0:
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = bool]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:393:23:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     return *reinterpret_cast<T *>(Union.buffer);
                                               ^
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = double]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:398:25:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = long int]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:400:26:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = std::__cxx11::basic_string<char>]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:418:46:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = llvm::StringRef]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:420:34:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = llvm::json::Object]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:424:62:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = llvm::json::Array]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:430:60:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
[246/4640] Building CXX object lib/IR/...LLVMCore.dir/SafepointIRVerifier.cpp.o
/home/canterel/Hikari/lib/IR/SafepointIRVerifier.cpp: In member function ‘bool {anonymous}::CFGDeadness::hasLiveIncomingEdge(const llvm::PHINode*, const llvm::BasicBlock*) const’:
/home/canterel/Hikari/lib/IR/SafepointIRVerifier.cpp:87:10: warning: variable ‘Listed’ set but not used [-Wunused-but-set-variable]
     bool Listed = false;
          ^
[733/4640] Building CXX object lib/Tra.../LLVMObfuscation.dir/CryptoUtils.cpp.o
/home/canterel/Hikari/lib/Transforms/Obfuscation/CryptoUtils.cpp: In member function ‘int llvm::CryptoUtils::sha256_process(llvm::CryptoUtils::sha256_state*, const unsigned char*, long unsigned int)’:
/home/canterel/Hikari/lib/Transforms/Obfuscation/CryptoUtils.cpp:865:55: warning: cast from type ‘const unsigned char*’ to type ‘unsigned char*’ casts away qualifiers [-Wcast-qual]
       if ((err = sha256_compress(md, (unsigned char *)in)) != 0) {
                                                       ^
[740/4640] Building CXX object lib/Tra...cation.dir/FunctionCallObfuscate.cpp.o
In file included from /home/canterel/Hikari/lib/Transforms/Obfuscation/FunctionCallObfuscate.cpp:29:0:
/home/canterel/Hikari/lib/Transforms/Obfuscation/json.hpp:58:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic push
 ^
/home/canterel/Hikari/lib/Transforms/Obfuscation/json.hpp:59:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic ignored "-Wcovered-switch-default"
 ^
In file included from /home/canterel/Hikari/lib/Transforms/Obfuscation/FunctionCallObfuscate.cpp:29:0:
/home/canterel/Hikari/lib/Transforms/Obfuscation/json.hpp:17301:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic pop
 ^
[2210/4640] Building CXX object tools/...lyCore.dir/Exchange/JSONExporter.cpp.o
In file included from /home/canterel/Hikari/tools/polly/lib/Exchange/JSONExporter.cpp:25:0:
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = bool]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:393:23:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     return *reinterpret_cast<T *>(Union.buffer);
                                               ^
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = double]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:398:25:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = long int]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:400:26:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = std::__cxx11::basic_string<char>]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:418:46:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = llvm::StringRef]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:420:34:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = llvm::json::Object]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:424:62:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/canterel/Hikari/include/llvm/Support/JSON.h: In instantiation of ‘T& llvm::json::Value::as() const [with T = llvm::json::Array]’:
/home/canterel/Hikari/include/llvm/Support/JSON.h:430:60:   required from here
/home/canterel/Hikari/include/llvm/Support/JSON.h:455:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
[2788/4640] Building CXX object tools/...keFiles/clangSema.dir/ParsedAttr.cpp.o
In file included from /home/canterel/Hikari/tools/clang/lib/Sema/ParsedAttr.cpp:169:0:
tools/clang/include/clang/Sema/AttrParsedAttrImpl.inc: In function ‘bool {anonymous}::isImplicitObjectParameter(const clang::Decl*)’:
tools/clang/include/clang/Sema/AttrParsedAttrImpl.inc:1049:19: warning: unused variable ‘S’ [-Wunused-variable]
   if (const auto *S = dyn_cast<FunctionDecl>(D))
                   ^
[3445/4640] Building CXX object tools/...les/lldELF.dir/SyntheticSections.cpp.o
/home/canterel/Hikari/tools/lld/ELF/SyntheticSections.cpp: In function ‘uint32_t getSymSectionIndex(lld::elf::Symbol*)’:
/home/canterel/Hikari/tools/lld/ELF/SyntheticSections.cpp:1951:46: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
     return OS->SectionIndex >= SHN_LORESERVE ? SHN_XINDEX : OS->SectionIndex;
                                              ^
[3599/4640] Building CXX object tools/...les/lldbHost.dir/common/MainLoop.cpp.o
/home/canterel/Hikari/tools/lldb/source/Host/common/MainLoop.cpp: In member function ‘lldb_private::MainLoop::SignalHandleUP lldb_private::MainLoop::RegisterSignal(int, const Callback&, lldb_private::Status&)’:
/home/canterel/Hikari/tools/lldb/source/Host/common/MainLoop.cpp:313:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
   int ret = sigaction(signo, &new_action, &info.old_action);
       ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-vla-extension’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
[3610/4640] Building CXX object tools/...dbHost.dir/common/PseudoTerminal.cpp.o
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp: In member function ‘bool lldb_private::PseudoTerminal::OpenFirstAvailableMaster(int, char*, size_t)’:
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp:91:48: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
       ::strerror_r(errno, error_str, error_len);
                                                ^
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp:98:48: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
       ::strerror_r(errno, error_str, error_len);
                                                ^
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp:106:48: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
       ::strerror_r(errno, error_str, error_len);
                                                ^
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp: In member function ‘bool lldb_private::PseudoTerminal::OpenSlave(int, char*, size_t)’:
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp:146:48: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
       ::strerror_r(errno, error_str, error_len);
                                                ^
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp: In member function ‘const char* lldb_private::PseudoTerminal::GetSlaveName(char*, size_t) const’:
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp:178:46: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
     ::strerror_r(errno, error_str, error_len);
                                              ^
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp: In member function ‘lldb::pid_t lldb_private::PseudoTerminal::Fork(char*, size_t)’:
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp:216:50: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         ::strerror_r(errno, error_str, error_len);
                                                  ^
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp:238:54: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
             ::strerror_r(errno, error_str, error_len);
                                                      ^
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp:243:54: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
             ::strerror_r(errno, error_str, error_len);
                                                      ^
/home/canterel/Hikari/tools/lldb/source/Host/common/PseudoTerminal.cpp:248:54: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
             ::strerror_r(errno, error_str, error_len);
                                                      ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-vla-extension’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
[3806/4640] Building CXX object tools/...dbPluginObjCLanguage.dir/NSArray.cpp.o
/home/canterel/Hikari/tools/lldb/source/Plugins/Language/ObjC/NSArray.cpp:184:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
       };
       ^
cc1plus: warning: unrecognized command line option ‘-Wno-nested-anon-types’
cc1plus: warning: unrecognized command line option ‘-Wno-gnu-anonymous-struct’
cc1plus: warning: unrecognized command line option ‘-Wno-vla-extension’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
[3808/4640] Building CXX object tools/...ginObjCLanguage.dir/NSDictionary.cpp.o
/home/canterel/Hikari/tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp:292:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
       };
       ^
/home/canterel/Hikari/tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp:298:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
       };
       ^
/home/canterel/Hikari/tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp:312:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
       };
       ^
/home/canterel/Hikari/tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp:318:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
       };
       ^
cc1plus: warning: unrecognized command line option ‘-Wno-nested-anon-types’
cc1plus: warning: unrecognized command line option ‘-Wno-gnu-anonymous-struct’
cc1plus: warning: unrecognized command line option ‘-Wno-vla-extension’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
[3814/4640] Building CXX object tools/...lldbPluginObjCLanguage.dir/NSSet.cpp.o
/home/canterel/Hikari/tools/lldb/source/Plugins/Language/ObjC/NSSet.cpp:168:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
       };
       ^
/home/canterel/Hikari/tools/lldb/source/Plugins/Language/ObjC/NSSet.cpp:182:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
       };
       ^
cc1plus: warning: unrecognized command line option ‘-Wno-nested-anon-types’
cc1plus: warning: unrecognized command line option ‘-Wno-gnu-anonymous-struct’
cc1plus: warning: unrecognized command line option ‘-Wno-vla-extension’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
[3924/4640] Building CXX object tools/....dir/RegisterContextDarwin_arm64.cpp.o
/home/canterel/Hikari/tools/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp: In member function ‘virtual bool RegisterContextDarwin_arm64::ReadRegister(const lldb_private::RegisterInfo*, lldb_private::RegisterValue&)’:
/home/canterel/Hikari/tools/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp:425:47: warning: array subscript is above array bounds [-Warray-bounds]
                    endian::InlHostByteOrder());
                                               ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-vla-extension’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
[4282/4640] Building CXX object tools/...akeFiles/lldb-test.dir/lldb-test.cpp.o
/home/canterel/Hikari/tools/lldb/tools/lldb-test/lldb-test.cpp: In function ‘llvm::Expected<llvm::Error (*)(lldb_private::Module&)> opts::symbols::getAction()’:
/home/canterel/Hikari/tools/lldb/tools/lldb-test/lldb-test.cpp:587:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-vla-extension’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
[4640/4640] Linking CXX static library lib/libLLVMTestingSupport.a
[2/2] Install the project...
-- Install configuration: "MinSizeRel"
-- Installing: /usr/local/include/llvm
CMake Error at cmake_install.cmake:36 (file):
  file INSTALL cannot make directory "/usr/local/include/llvm": Permission
  denied

FAILED: cd /home/canterel/Build && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
canterel@LocusSolusStation:~/Build$
Naville commented 5 years ago
 file INSTALL cannot make directory "/usr/local/include/llvm": **Permission
  denied**