Hello,
I’m attempting to build MerBench.
I configured, built and install UPC, a main dependency of MerBench thusly:
```
cd build
../configure \
--prefix=$HOME/upc_exabiome/berkeley_upc-2022.5.0/install \
--with-MPI_CC="mpicc" \
CC=gcc \
CXX=g++ \
# TO BUILD AND INSTALL:
gmake; gmake install
```
The configure, build and install seemed to work:
```
pwd
$HOME/upc_exabiome/berkeley_upc-2022.5.0/install/bin
ls -l upc*
lrwxrwxrwx 1 ajpowel ajpowel 10 Sep 8 14:27 upcc -> upcc_multi
-rwxr-xr-x 1 ajpowel ajpowel 3913 Sep 8 14:27 upcc_multi
-rw-r--r-- 1 ajpowel ajpowel 13516 Sep 8 14:27 upcc_multi.pl
lrwxrwxrwx 1 ajpowel ajpowel 18 Sep 8 14:27 upcdecl -> ../opt/bin/upcdecl
lrwxrwxrwx 1 ajpowel ajpowel 17 Sep 8 14:27 upcrun -> ../opt/bin/upcrun
lrwxrwxrwx 1 ajpowel ajpowel 20 Sep 8 14:27 upc_trace -> ../opt/bin/upc_trace
```
Transitioning to Merbench, I configured thusly:
```
[ajpowel@kokkos-dev-2 build]$ which upcc
~/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_UPC_COMPILER=$(which upcc) \
-DCMAKE_INSTALL_PREFIX=../install \
../
```
But I’m getting these configuration errors (possible main errors highlighted below):
```
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:1 (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.
Building microbenchmarks Release UPC code using '/ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc ' to compile UPC code
-- Performing Test CXX_SUPPORTS_0X
-- Performing Test CXX_SUPPORTS_0X - Success
Checked CXX compiler for -std=c++0x: 1 ''
-- Performing Test CXX_SUPPORTS_11
-- Performing Test CXX_SUPPORTS_11 - Success
Checked CXX compiler for -std=c++11: 1 ''
-- Performing Test C_SUPPORTS_99
-- Performing Test C_SUPPORTS_99 - Success
Checked C compiler for -std=c99: 1 ''
CMakeDetermineUPCCompiler starting
Using user-supplied CMAKE_UPC_COMPILER: /ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc
UPC compiler is Berkeley UPC
Checking BUPC for -cupc2c translator
/ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc -cupc2c;-o;/ascldap/users/ajpowel/exabiome_merbench/merbench-code/build/CMakeFiles/CMakeTmp/testUPCCompiler.upc.a.out;/ascldap/users/ajpowel/exabiome_merbench/merbench-code/build/CMakeFiles/CMakeTmp/testUPCCompiler.upc
upcc: unrecognized flag '-upc2c'
Could not use upc2c Berkeley UPC translator:
Discovered UPC Compiler (BUPC): /ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc
Loaded cached UPC Compiler Variables /ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc
Building CMake UPC Information and Rules: /ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc
Looking for Compiler/BUPC-UPC or Platform/Linux-BUPC-UPC or Platform/Linux-upcc or Platform/Linux
Loading Compiler/BUPC-UPC
Testing UPC Compiler
-- Check for working UPC compiler: /ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc
Loaded cached UPC Compiler Variables /ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc
Building CMake UPC Information and Rules: /ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc
Looking for Compiler/BUPC-UPC or Platform/Linux-BUPC-UPC or Platform/Linux-upcc or Platform/Linux
Loading Compiler/BUPC-UPC
-- Check for working UPC compiler: /ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc -- broken
The UPC compiler "/ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /ascldap/users/ajpowel/exabiome_merbench/merbench-code/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_a9dda/fast && /usr/bin/gmake -f CMakeFiles/cmTC_a9dda.dir/build.make CMakeFiles/cmTC_a9dda.dir/build
gmake[1]: Entering directory `/home/ajpowel/exabiome_merbench/merbench-code/build/CMakeFiles/CMakeTmp'
Building UPC object CMakeFiles/cmTC_a9dda.dir/testUPCCompiler.o
/ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc -o CMakeFiles/cmTC_a9dda.dir/testUPCCompiler.o -c /ascldap/users/ajpowel/exabiome_merbench/merbench-code/build/CMakeFiles/CMakeTmp/testUPCCompiler.upc
upcc: Error: Can't connect to http://upc-translator.lbl.gov/upcc-2022.5.0.cgi: Connection timed out
gmake[1]: *** [CMakeFiles/cmTC_a9dda.dir/testUPCCompiler.o] Error 110
gmake[1]: Leaving directory `/home/ajpowel/exabiome_merbench/merbench-code/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_a9dda/fast] Error 2
CMake will not be able to correctly generate this project.
Detected Berkeley UPC
adding -DUSE_BUPC defintion to all builds
-- Found ZLIB: /usr/lib64/libz.so (found suitable version "1.2.7", minimum required is "1.2.3")
-- Performing Test CXX_HAS_DASH_O
-- Performing Test CXX_HAS_DASH_O - Success
Checked CXX compiler for -O: 1 ''
-- Performing Test C_HAS_STATIC_LIBGCC
-- Performing Test C_HAS_STATIC_LIBGCC - Success
-- Performing Test CXX_HAS_STATIC_LIBGCC
-- Performing Test CXX_HAS_STATIC_LIBGCC - Success
Checked C and CXX compiler for --static-libgcc: 1 1 ''
Successfully found CMAKE_EXE_LINKER_FLAGS: -static-libgcc
-- Configuring done
-- Generating done
-- Build files have been written to: /ascldap/users/ajpowel/exabiome_merbench/merbench-code/build
```
I am working on a Linux machine with these compilers:
```
module list
Currently Loaded Modules:
1) sems-git/2.29.0 2) sems-cmake/3.23.1 3) openmpi-4.1.3-gcc-7.3.0-vgu3weh
[ajpowel@kokkos-dev-2 build]$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ajpowel@kokkos-dev-2 build]$ g++ --version
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ajpowel@kokkos-dev-2 build]$ mpicc --version
gcc (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ajpowel@kokkos-dev-2 build]$ mpicxx --version
g++ (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
I suspect the main issue is that I don’t have a sound build / install of the UPC dependency.
Whatever the problem, would someone who’s knowledgeable about these two software packages please help me work through these issues?
Many thanks,
AJP
Checking BUPC for -cupc2c translator
/ascldap/users/ajpowel/upc_exabiome/berkeley_upc-2022.5.0/install/bin/upcc -cupc2c;-o;/ascldap/users/ajpowel/exabiome_merbench/merbench-code/build/CMakeFiles/CMakeTmp/testUPCCompiler.upc.a.out;/ascldap/users/ajpowel/exabiome_merbench/merbench-code/build/CMakeFiles/CMakeTmp/testUPCCompiler.upc
upcc: unrecognized flag '-upc2c'
upcc: Error: Can't connect to http://upc-translator.lbl.gov/upcc-2022.5.0.cgi: Connection timed out
--
You received this message because you are subscribed to the Google Groups "upc-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to upc-users+...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/upc-users/B1401108-605F-4B20-A3AF-9CF9AD1A93E9%40sandia.gov.