Menu

#8 tools/lli/CMakeFiles/lli.dir/lli.cpp.o] Error 1

1.0
closed
nobody
None
2022-04-29
2021-12-14
No

Hello,

Our team has been trying to compile hipmer for a while and we keep running into problems. I was hoping we might be able to get a little assistance. Right now I am trying to compile using gnu 9.1.0 and cmake on CentOS 7. I was having an issue with python 3 so I started using our base install of python2. Right now I am trying to use the install_upc.sh script with the following command:
contrib/install_upc.sh smp posix install_path=$PWD
It is failing with the following error:

make[2]: *** [tools/lli/CMakeFiles/lli.dir/build.make:76: tools/lli/CMakeFiles/lli.dir/lli.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:31426: tools/lli/CMakeFiles/lli.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

  • oops
  • echo 'uh oh, something bad happened!'
    uh oh, something bad happened!
  • exit 1

There are many errors that look like this as well:
/dev/shm/bupc-root-hipmer-builds/clang-upc-3.9.1-1/include/llvm/ExecutionEngine/Orc/RPCUtils.h:823:27: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
/dev/shm/bupc-root-hipmer-builds/clang-upc-3.9.1-1/include/llvm/ExecutionEngine/Orc/RPCUtils.h:823:27: note: remove ‘std::move’ call

The script begins with:
[root@rom1 1.2.2.7]# contrib/install_upc.sh smp posix install_path=$PWD
Building bupc and upcxx, conduit=smp shared_memory=posix installdir=install_path=/wsu/el7/gnu9/hipmer/1.2.2.7 builddir=/dev/shm codedi r=/root

  • cd /root
  • builddir=/dev/shm/bupc-root-hipmer-builds
  • rm -rf /dev/shm/bupc-root-hipmer-builds
  • mkdir -p /dev/shm/bupc-root-hipmer-builds
  • '[' '!' -x install_path=/wsu/el7/gnu9/hipmer/1.2.2.7/bin/clang-upc2c ']'
  • echo 'Building Clang UPC to C translator'
    Building Clang UPC to C translator
  • cd /root
  • CUPCTAR=clang-upc-all-3.9.1-1.tar.gz
  • CUPCURL=https://github.com/Intrepid/clang-upc/releases/download/clang-upc-3.9.1-1/clang-upc-all-3.9.1-1.tar.gz
  • '[' -f clang-upc-all-3.9.1-1.tar.gz ']'
  • CUPCDIR=clang-upc-3.9.1-1
  • cd /dev/shm/bupc-root-hipmer-builds
  • '[' -d clang-upc-3.9.1-1 ']'
  • tar -xzf /root/clang-upc-all-3.9.1-1.tar.gz
  • CUPC2C_OPTS='-DCMAKE_INSTALL_PREFIX:PATH=install_path=/wsu/el7/gnu9/hipmer/1.2.2.7 -DLLVM_TARGETS_TO_BUILD:=host -DCMAKE_BUILD_TYPE: =Release'
    ++ uname -s
  • '[' Linux == Darwin ']'
  • rm -rf /dev/shm/bupc-root-hipmer-builds/build_clangupc
  • mkdir -p /dev/shm/bupc-root-hipmer-builds/build_clangupc
  • cd /dev/shm/bupc-root-hipmer-builds/build_clangupc
    ++ which gcc
  • '[' -x /wsu/el7/gnu9/9.1.0/root/usr/bin/gcc ']'
    ++ which gcc
  • CC=/wsu/el7/gnu9/9.1.0/root/usr/bin/gcc
    ++ which g++
  • CXX=/wsu/el7/gnu9/9.1.0/root/usr/bin/g++
  • cmake /dev/shm/bupc-root-hipmer-builds/clang-upc-3.9.1-1 -DCMAKE_INSTALL_PREFIX:PATH=install_path=/wsu/el7/gnu9/hipmer/1.2.2.7 -DLLV M_TARGETS_TO_BUILD:=host -DCMAKE_BUILD_TYPE:=Release
    CMake Deprecation Warning at CMakeLists.txt:15 (cmake_policy):
    The OLD behavior for policy CMP0051 will be removed from a future version
    of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

-- The C compiler identification is GNU 9.3.1
-- The CXX compiler identification is GNU 9.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /wsu/el7/gnu9/9.1.0/root/usr/bin/gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /wsu/el7/gnu9/9.1.0/root/usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /wsu/el7/gnu9/9.1.0/root/usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for dirent.h
CMake Warning (dev) at /wsu/el7/gnu9/cmake/3.21.1/Modules/CheckIncludeFile.cmake:82 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

CMAKE_REQUIRED_LIBRARIES is set to:

m

For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
cmake/config-ix.cmake:46 (check_include_file)
CMakeLists.txt:607 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for dirent.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.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 ndir.h
-- Looking for ndir.h - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for sys/dir.h
-- Looking for sys/dir.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/ndir.h
-- Looking for sys/ndir.h - not 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 sys/uio.h
-- Looking for sys/uio.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 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 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
-- 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
-- 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
-- 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 writev
-- Looking for writev - 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 mkdtemp
-- Looking for mkdtemp - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mktemp
-- Looking for mktemp - found
-- Looking for getcwd
-- Looking for getcwd - found
-- Looking for gettimeofday
-- Looking for gettimeofday - 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 strtoll
-- Looking for strtoll - 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 GLIBC
-- Looking for GLIBC - found
-- Performing Test HAVE_INT64_T
-- Performing Test HAVE_INT64_T - Success
-- Performing Test HAVE_UINT64_T
-- Performing Test HAVE_UINT64_T - Success
-- Performing Test HAVE_U_INT64_T
-- Performing Test HAVE_U_INT64_T - Success
-- 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.
-- Sphinx disabled.
-- Go bindings enabled.
-- 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.
-- 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 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 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 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_CXX11
-- Performing Test CXX_SUPPORTS_CXX11 - Success
-- 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.5")
-- Constructing LLVMBuild project information
-- Targeting X86
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Clang version: 4.0.1
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
-- Looking for numa.h
-- Looking for numa.h - found
CMake Deprecation Warning at tools/clang/runtime/libupc/CMakeLists.txt:3 (cmake_policy):
The OLD behavior for policy CMP0048 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Deprecation Warning at tools/clang/runtime/libupc/CMakeLists.txt:7 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.</max></min>

-- Looking for sched_getaffinity
-- Looking for sched_getaffinity - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Performing Test HAVE_SYNC_FETCH_AND_ADD_4
-- Performing Test HAVE_SYNC_FETCH_AND_ADD_4 - Success
-- Performing Test HAVE_SYNC_FETCH_AND_ADD_8
-- Performing Test HAVE_SYNC_FETCH_AND_ADD_8 - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /dev/shm/bupc-root-hipmer-builds/build_clangupc

  • make -j 96

    Any suggestions would be appreciated?

    Thanks much!
    Aragorn Steiger
    Wayne State University

Discussion

  • Rob Egan

    Rob Egan - 2021-12-15

    Hello Aragorn,

    I'm sorry you are having difficulty with the installation. It looks to me like the first (and hopefully only) trouble is with installing clangupc, one of the prerequisites for installing HipMer that the install_upc.sh script is meant to help with. (HipMer requires the source-to-source translator that clangupc provides as clang-upc2c)

    Do you have any other compilers available to you on your system? I know that gcc-10 does not presently work (I have a ticket open with clangupc about that: https://github.com/clangupc/clang-upc/issues/105 )and it may be the case that gcc 9.3.1 is also affected. I can attest that gcc 9.4.0 also does not work, but gcc 7.5.0 does. Sometimes compilers have bugs or get persnikety about otherwise valid code, and it isn't practical to make sure that every complier works, especially for HipMer's prerequisite software.

    Once you build and install clangupc with any compiler, then you can use your preferred one to build the rest of UPC, UPC++ and HipMer

     
  • Aragorn Steiger

    Aragorn Steiger - 2021-12-15

    Hello,
    Yes, gnu 7.3.0 is working fine for building upc. I am now looking at another problem with -pthread not being recognized. If I can't get around it I may be sending another ticket.
    Thanks!!!
    Aragorn.

     
  • Rob Egan

    Rob Egan - 2022-04-29
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB