Last active
March 25, 2022 14:12
-
-
Save advancedwebdeveloper/e2da8c8be474f7afbe58b61245d978b2 to your computer and use it in GitHub Desktop.
Trying to build gollvm, under emulated RISC-V, with GCC and mold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cmake -DCMAKE_BUILD_TYPE=MinSizeRel -G Ninja ../llvm-project/llvm | |
-- The C compiler identification is GNU 9.4.0 | |
-- The CXX compiler identification is GNU 9.4.0 | |
-- The ASM compiler identification is GNU | |
-- Found assembler: /usr/bin/cc | |
-- 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 | |
-- 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/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 sysexits.h | |
-- Looking for sysexits.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 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 - not 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 | |
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD | |
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed | |
-- 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 ZLIB: /usr/lib/riscv64-linux-gnu/libz.so (found version "1.2.11") | |
-- Looking for compress2 | |
-- Looking for compress2 - found | |
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) | |
-- Performing Test Terminfo_LINKABLE | |
-- Performing Test Terminfo_LINKABLE - Success | |
-- Found Terminfo: /usr/lib/riscv64-linux-gnu/libtinfo.so | |
-- 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 __register_frame | |
-- Looking for __register_frame - found | |
-- Looking for __deregister_frame | |
-- Looking for __deregister_frame - found | |
-- Looking for __unw_add_dynamic_fde | |
-- Looking for __unw_add_dynamic_fde - not found | |
-- 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 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 mallinfo2 | |
-- Looking for mallinfo2 - not 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 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 | |
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC | |
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed | |
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC | |
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Success | |
-- Looking for __GLIBC__ | |
-- Looking for __GLIBC__ - found | |
-- Looking for pthread_getname_np | |
-- Looking for pthread_getname_np - found | |
-- Looking for pthread_setname_np | |
-- Looking for pthread_setname_np - found | |
-- Looking for proc_pid_rusage | |
-- Looking for proc_pid_rusage - not found | |
-- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE | |
-- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE - Success | |
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB | |
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Failed | |
-- Looking for __atomic_fetch_add_4 in atomic | |
-- Looking for __atomic_fetch_add_4 in atomic - found | |
-- Performing Test HAVE_CXX_ATOMICS_WITH_LIB | |
-- Performing Test HAVE_CXX_ATOMICS_WITH_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 RISCV | |
-- Threads enabled. | |
-- Doxygen disabled. | |
-- Go bindings disabled. | |
-- Ninja version: 1.10.0 | |
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) | |
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) | |
-- OCaml bindings disabled. | |
-- Could NOT find Python module pygments | |
-- Could NOT find Python module pygments.lexers.c_cpp | |
-- Could NOT find Python module yaml | |
-- LLVM host triple: riscv64-unknown-linux-gnu | |
-- LLVM default target triple: riscv64-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 C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION | |
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success | |
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION | |
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success | |
-- 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_MISSING_FIELD_INITIALIZERS_FLAG | |
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success | |
-- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG | |
-- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Failed | |
-- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG | |
-- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Failed | |
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG | |
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success | |
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG | |
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_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 - Success | |
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG | |
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG - Success | |
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG | |
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG - Success | |
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG | |
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG - Success | |
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR | |
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Failed | |
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG | |
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success | |
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL | |
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - 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 C_SUPPORTS_MISLEADING_INDENTATION_FLAG | |
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success | |
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG | |
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success | |
-- 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 | |
-- Looking for os_signpost_interval_begin | |
-- Looking for os_signpost_interval_begin - not found | |
-- Found Python3: /usr/bin/python3.8 (found suitable version "3.8.10", minimum required is "3.6") found components: Interpreter | |
-- Linker detection: GNU ld | |
-- Performing Test HAS_WERROR_GLOBAL_CTORS | |
-- Performing Test HAS_WERROR_GLOBAL_CTORS - Failed | |
-- Found Git: /usr/bin/git (found version "2.25.1") | |
-- Targeting AArch64 | |
-- Targeting AMDGPU | |
-- Targeting ARM | |
-- Targeting AVR | |
-- Targeting BPF | |
-- Targeting Hexagon | |
-- Targeting Lanai | |
-- Targeting Mips | |
-- Targeting MSP430 | |
-- Targeting NVPTX | |
-- Targeting PowerPC | |
-- Targeting RISCV | |
-- Targeting Sparc | |
-- Targeting SystemZ | |
-- Targeting VE | |
-- Targeting WebAssembly | |
-- Targeting X86 | |
-- Targeting XCore | |
-- default linker set to "gold" | |
-- Performing Test C_SUPPORTS_CF_PROTECTION_BRANCH | |
-- Performing Test C_SUPPORTS_CF_PROTECTION_BRANCH - Failed | |
-- Performing Test SPLIT_STACK_FUNCTIONAL | |
-- Performing Test SPLIT_STACK_FUNCTIONAL - Failed | |
CMake Error at tools/gollvm/cmake/modules/AddGollvm.cmake:68 (message): | |
C compiler does not support -fsplit-stack | |
Call Stack (most recent call first): | |
tools/gollvm/CMakeLists.txt:22 (include) | |
-- starting libgo configuration. | |
CMake Error at tools/gollvm/cmake/modules/GoVars.cmake:15 (message): | |
Arch riscv64 not yet supported | |
Call Stack (most recent call first): | |
tools/gollvm/libgo/CMakeLists.txt:11 (include) | |
CMake Error at tools/gollvm/cmake/modules/GoVars.cmake:31 (message): | |
Arch riscv64 not yet supported | |
Call Stack (most recent call first): | |
tools/gollvm/libgo/CMakeLists.txt:11 (include) | |
-- Performing Test HAVE_ATOMIC_FUNCTIONS | |
-- Performing Test HAVE_ATOMIC_FUNCTIONS - Failed | |
-- Looking for clock_gettime | |
-- Looking for clock_gettime - not found | |
-- Looking for strnlen | |
-- Looking for strnlen - not found | |
-- Looking for dl_iterate_phdr | |
-- Looking for dl_iterate_phdr - not found | |
-- Looking for fcntl | |
-- Looking for fcntl - not found | |
-- Looking for getexecname | |
-- Looking for getexecname - not found | |
-- Looking for lstat | |
-- Looking for lstat - not found | |
-- Looking for readlink | |
-- Looking for readlink - not found | |
-- Looking for mmap | |
-- Looking for mmap - not found | |
-- Looking for accept4 | |
-- Looking for accept4 - not found | |
-- Looking for dup3 | |
-- Looking for dup3 - not found | |
-- Looking for epoll_create1 | |
-- Looking for epoll_create1 - not found | |
-- Looking for faccessat | |
-- Looking for faccessat - not found | |
-- Looking for fallocate | |
-- Looking for fallocate - not found | |
-- Looking for fchmodat | |
-- Looking for fchmodat - not found | |
-- Looking for fchownat | |
-- Looking for fchownat - not found | |
-- Looking for futimesat | |
-- Looking for futimesat - not found | |
-- Looking for inotify_add_watch | |
-- Looking for inotify_add_watch - not found | |
-- Looking for inotify_init | |
-- Looking for inotify_init - not found | |
-- Looking for inotify_init1 | |
-- Looking for inotify_init1 - not found | |
-- Looking for inotify_rm_watch | |
-- Looking for inotify_rm_watch - not found | |
-- Looking for listxattr | |
-- Looking for listxattr - not found | |
-- Looking for mincore | |
-- Looking for mincore - not found | |
-- Looking for mkdirat | |
-- Looking for mkdirat - not found | |
-- Looking for openat | |
-- Looking for openat - not found | |
-- Looking for removexattr | |
-- Looking for removexattr - not found | |
-- Looking for renameat | |
-- Looking for renameat - not found | |
-- Looking for setxattr | |
-- Looking for setxattr - not found | |
-- Looking for splice | |
-- Looking for splice - not found | |
-- Looking for sync_file_range | |
-- Looking for sync_file_range - not found | |
-- Looking for syscall | |
-- Looking for syscall - not found | |
-- Looking for tee | |
-- Looking for tee - not found | |
-- Looking for unlinkat | |
-- Looking for unlinkat - not found | |
-- Looking for unsetenv | |
-- Looking for unsetenv - not found | |
-- Looking for unshare | |
-- Looking for unshare - not found | |
-- Looking for utimensat | |
-- Looking for utimensat - not found | |
-- Looking for wait4 | |
-- Looking for wait4 - not found | |
-- Looking for open64 | |
-- Looking for open64 - not found | |
-- Looking for mknodat | |
-- Looking for mknodat - not found | |
-- Looking for pipe2 | |
-- Looking for pipe2 - not found | |
-- Looking for memmem | |
-- Looking for memmem - not found | |
-- Looking for strsignal | |
-- Looking for strsignal - not found | |
-- Looking for inttypes.h | |
-- Looking for inttypes.h - not found | |
-- Looking for linux/ether.h | |
-- Looking for linux/ether.h - not found | |
-- Looking for linux/filter.h | |
-- Looking for linux/filter.h - not found | |
-- Looking for linux/fs.h | |
-- Looking for linux/fs.h - not found | |
-- Looking for linux/if_addr.h | |
-- Looking for linux/if_addr.h - not found | |
-- Looking for linux/if_ether.h | |
-- Looking for linux/if_ether.h - not found | |
-- Looking for linux/if_tun.h | |
-- Looking for linux/if_tun.h - not found | |
-- Looking for linux/netlink.h | |
-- Looking for linux/netlink.h - not found | |
-- Looking for linux/ptrace.h | |
-- Looking for linux/ptrace.h - not found | |
-- Looking for linux/reboot.h | |
-- Looking for linux/reboot.h - not found | |
-- Looking for linux/rtnetlink.h | |
-- Looking for linux/rtnetlink.h - not found | |
-- Looking for memory.h | |
-- Looking for memory.h - not found | |
-- Looking for net/if.h | |
-- Looking for net/if.h - not found | |
-- Looking for net/if_arp.h | |
-- Looking for net/if_arp.h - not found | |
-- Looking for net/route.h | |
-- Looking for net/route.h - not found | |
-- Looking for netinet/icmp6.h | |
-- Looking for netinet/icmp6.h - not found | |
-- Looking for netinet/if_ether.h | |
-- Looking for netinet/if_ether.h - not found | |
-- Looking for netinet/in_systm.h | |
-- Looking for netinet/in_systm.h - not found | |
-- Looking for netinet/ip.h | |
-- Looking for netinet/ip.h - not found | |
-- Looking for netinet/ip_mroute.h | |
-- Looking for netinet/ip_mroute.h - not found | |
-- Looking for netpacket/packet.h | |
-- Looking for netpacket/packet.h - not found | |
-- Looking for port.h | |
-- Looking for port.h - not found | |
-- Looking for sched.h | |
-- Looking for sched.h - not found | |
-- Looking for semaphore.h | |
-- Looking for semaphore.h - not found | |
-- Looking for stdint.h | |
-- Looking for stdint.h - not found | |
-- Looking for stdlib.h | |
-- Looking for stdlib.h - not found | |
-- Looking for strings.h | |
-- Looking for strings.h - not found | |
-- Looking for sys/epoll.h | |
-- Looking for sys/epoll.h - not found | |
-- Looking for sys/file.h | |
-- Looking for sys/file.h - not found | |
-- Looking for sys/inotify.h | |
-- Looking for sys/inotify.h - not found | |
-- Looking for sys/mount.h | |
-- Looking for sys/mount.h - not found | |
-- Looking for sys/prctl.h | |
-- Looking for sys/prctl.h - not found | |
-- Looking for sys/ptrace.h | |
-- Looking for sys/ptrace.h - not found | |
-- Looking for sys/select.h | |
-- Looking for sys/select.h - not found | |
-- Looking for sys/statfs.h | |
-- Looking for sys/statfs.h - not found | |
-- Looking for sys/syscall.h | |
-- Looking for sys/syscall.h - not found | |
-- Looking for sys/sysinfo.h | |
-- Looking for sys/sysinfo.h - not found | |
-- Looking for sys/timex.h | |
-- Looking for sys/timex.h - not found | |
-- Looking for sys/user.h | |
-- Looking for sys/user.h - not found | |
-- Looking for sys/utsname.h | |
-- Looking for sys/utsname.h - not found | |
-- Looking for sys/vfs.h | |
-- Looking for sys/vfs.h - not found | |
-- Looking for syscall.h | |
-- Looking for syscall.h - not found | |
-- Looking for utime.h | |
-- Looking for utime.h - not found | |
-- Looking for compress in z | |
-- Looking for compress in z - not found | |
-- Looking for stddef.h | |
-- Looking for stddef.h - not found | |
-- Check size of double | |
-- Check size of double - failed | |
-- Check size of long double | |
-- Check size of long double - failed | |
-- Check size of long double | |
-- Check size of long double - failed | |
-- Check size of void* | |
-- Check size of void* - failed | |
-- Looking for alloca.h | |
-- Looking for alloca.h - not found | |
-- Looking for alloca | |
-- Looking for alloca - not found | |
-- Looking for memcpy | |
-- Looking for memcpy - not found | |
-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 | |
-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 - Failed | |
-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 | |
-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 - Failed | |
-- Performing Test HAVE_AS_X86_AES | |
-- Performing Test HAVE_AS_X86_AES - Failed | |
CMake Error at tools/gollvm/cmake/modules/LibbacktraceUtils.cmake:8 (if): | |
if given arguments: | |
"STREQUAL" "amd64" | |
Unknown arguments specified | |
Call Stack (most recent call first): | |
tools/gollvm/libgo/CMakeLists.txt:45 (setup_libbacktrace) | |
-- Configuring incomplete, errors occurred! | |
See also "/home/ubuntu/workarea/release/CMakeFiles/CMakeOutput.log". | |
See also "/home/ubuntu/workarea/release/CMakeFiles/CMakeError.log". | |
ubuntu@umoldbuntu:~/workarea/release$ -DLLVM_USE_LINKER= -G Ninja ../llvm-project/llvm | |
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) G Ninja ../llvm-project/llvm | |
-- Native target architecture is RISCV | |
-- Threads enabled. | |
-- Doxygen disabled. | |
-- Go bindings disabled. | |
-- Ninja version: 1.10.0 | |
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) | |
ubuntu@ubuntu:~/workarea/release$ rcmake -DCMAKE_BUILD cmake -DCMAKE_BUILDRcmake cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVke -DCMAKE_BUIL-cma cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_USE_LINKER=mold -DGOLLVM_DEFAULT_LINKER=mold -G Ninja ../llvm-project/llvm | |
-- The C compiler identification is GNU 9.4.0 | |
-- The CXX compiler identification is GNU 9.4.0 | |
-- The ASM compiler identification is GNU | |
-- Found assembler: /usr/bin/cc | |
-- 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 | |
-- 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/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 sysexits.h | |
-- Looking for sysexits.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 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 - not 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 | |
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD | |
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed | |
-- 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 ZLIB: /usr/lib/riscv64-linux-gnu/libz.so (found version "1.2.11") | |
-- Looking for compress2 | |
-- Looking for compress2 - found | |
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) | |
-- Performing Test Terminfo_LINKABLE | |
-- Performing Test Terminfo_LINKABLE - Success | |
-- Found Terminfo: /usr/lib/riscv64-linux-gnu/libtinfo.so | |
-- 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 __register_frame | |
-- Looking for __register_frame - found | |
-- Looking for __deregister_frame | |
-- Looking for __deregister_frame - found | |
-- Looking for __unw_add_dynamic_fde | |
-- Looking for __unw_add_dynamic_fde - not found | |
-- 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 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 mallinfo2 | |
-- Looking for mallinfo2 - not 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 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 | |
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC | |
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed | |
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC | |
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Success | |
-- Looking for __GLIBC__ | |
-- Looking for __GLIBC__ - found | |
-- Looking for pthread_getname_np | |
-- Looking for pthread_getname_np - found | |
-- Looking for pthread_setname_np | |
-- Looking for pthread_setname_np - found | |
-- Looking for proc_pid_rusage | |
-- Looking for proc_pid_rusage - not found | |
-- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE | |
-- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE - Success | |
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB | |
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Failed | |
-- Looking for __atomic_fetch_add_4 in atomic | |
-- Looking for __atomic_fetch_add_4 in atomic - found | |
-- Performing Test HAVE_CXX_ATOMICS_WITH_LIB | |
-- Performing Test HAVE_CXX_ATOMICS_WITH_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 RISCV | |
-- Threads enabled. | |
-- Doxygen disabled. | |
-- Go bindings disabled. | |
-- Ninja version: 1.10.0 | |
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) | |
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) | |
-- OCaml bindings disabled. | |
-- Could NOT find Python module pygments | |
-- Could NOT find Python module pygments.lexers.c_cpp | |
-- Could NOT find Python module yaml | |
-- LLVM host triple: riscv64-unknown-linux-gnu | |
-- LLVM default target triple: riscv64-unknown-linux-gnu | |
-- Performing Test CXX_SUPPORTS_CUSTOM_LINKER | |
-- Performing Test CXX_SUPPORTS_CUSTOM_LINKER - Failed | |
CMake Error at cmake/modules/HandleLLVMOptions.cmake:308 (message): | |
Host compiler does not support '-fuse-ld=mold' | |
Call Stack (most recent call first): | |
CMakeLists.txt:775 (include) | |
-- Configuring incomplete, errors occurred! | |
See also "/home/ubuntu/workarea/release/CMakeFiles/CMakeOutput.log". | |
See also "/home/ubuntu/workarea/release/CMakeFiles/CMakeError.log". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment