Hi,
I’m trying to install ver 20220623 and it proceeds well for a while but generates several errors and eventually fails. The errors are as follows, many related to format.h. See build info at end too please.
Please advise. Is there perhaps a previous version that might not yield these issues please? I’m needing one which has “lepton” option.
Much appreciated,
Anton
[ 34%] Building CXX object CMakeFiles/lammps.dir/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmtlib_format.cpp.o
In file included from /mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format-inl.h:29:0,
from /mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmtlib_format.cpp:9:
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h: In instantiation of ‘constexpr fmt::v9_lmp::detail::format_decimal_result fmt::v9_lmp::detail::format_decimal(Iterator, UInt, int) [with Char = char; UInt = unsigned int; Iterator = fmt::v9_lmp::appender; typename std::enable_if<(! std::is_pointer<typename std::remove_cv<typename std::remove_reference<_Arg>::type>::type>::value), int>::type = 0]’:
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:2068:38: required from ‘fmt::v9_lmp::detail::write_int(OutputIt, fmt::v9_lmp::detail::write_int_arg, const fmt::v9_lmp::basic_format_specs&, fmt::v9_lmp::detail::locale_ref)::<lambda(fmt::v9_lmp::detail::reserve_iterator)> [with Char = char; OutputIt = fmt::v9_lmp::appender; T = unsigned int; fmt::v9_lmp::detail::reserve_iterator = fmt::v9_lmp::appender]’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:2068:54: required from ‘struct fmt::v9_lmp::detail::write_int(OutputIt, fmt::v9_lmp::detail::write_int_arg, const fmt::v9_lmp::basic_format_specs&, fmt::v9_lmp::detail::locale_ref) [with Char = char; OutputIt = fmt::v9_lmp::appender; T = unsigned int]::<lambda(fmt::v9_lmp::detail::reserve_iteratorfmt::v9_lmp::appender)>’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:2066:21: required from ‘constexpr OutputIt fmt::v9_lmp::detail::write_int(OutputIt, fmt::v9_lmp::detail::write_int_arg, const fmt::v9_lmp::basic_format_specs&, fmt::v9_lmp::detail::locale_ref) [with Char = char; OutputIt = fmt::v9_lmp::appender; T = unsigned int]’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:2115:19: required from ‘constexpr OutputIt fmt::v9_lmp::detail::write_int_noinline(OutputIt, fmt::v9_lmp::detail::write_int_arg, const fmt::v9_lmp::basic_format_specs&, fmt::v9_lmp::detail::locale_ref) [with Char = char; OutputIt = fmt::v9_lmp::appender; T = unsigned int]’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:2124:28: required from ‘constexpr OutputIt fmt::v9_lmp::detail::write(OutputIt, T, const fmt::v9_lmp::basic_format_specs&, fmt::v9_lmp::detail::locale_ref) [with Char = char; OutputIt = fmt::v9_lmp::appender; T = int; typename std::enable_if<((fmt::v9_lmp::detail::is_integral::value && (! std::is_same<T, bool>::value)) && std::is_same<OutputIt, typename std::conditional<std::is_same<Char, char>::value, fmt::v9_lmp::appender, std::back_insert_iterator<fmt::v9_lmp::detail::buffer > >::type>::value), int>::type = 0]’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:3396:25: required from ‘constexpr fmt::v9_lmp::detail::arg_formatter::iterator fmt::v9_lmp::detail::arg_formatter::operator()(T) [with T = int; Char = char; fmt::v9_lmp::detail::arg_formatter::iterator = fmt::v9_lmp::appender]’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/core.h:1639:15: required from ‘constexpr decltype (vis(0)) fmt::v9_lmp::visit_format_arg(Visitor&&, const fmt::v9_lmp::basic_format_arg&) [with Visitor = fmt::v9_lmp::detail::arg_formatter&; Context = fmt::v9_lmp::basic_format_context<fmt::v9_lmp::appender, char>; decltype (vis(0)) = fmt::v9_lmp::appender]’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:4134:42: required from ‘const Char* fmt::v9_lmp::detail::vformat_to(fmt::v9_lmp::detail::buffer&, fmt::v9_lmp::basic_string_view, fmt::v9_lmp::basic_format_args<fmt::v9_lmp::basic_format_context<typename std::conditional<std::is_same<typename fmt::v9_lmp::type_identity::type, char>::value, fmt::v9_lmp::appender, std::back_insert_iterator<fmt::v9_lmp::detail::buffer<typename fmt::v9_lmp::type_identity::type> > >::type, typename fmt::v9_lmp::type_identity::type> >, fmt::v9_lmp::detail::locale_ref)::format_handler::on_format_specs(int, const Char*, const Char*) [with Char = char]’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:4137:3: required from ‘void fmt::v9_lmp::detail::vformat_to(fmt::v9_lmp::detail::buffer&, fmt::v9_lmp::basic_string_view, fmt::v9_lmp::basic_format_args<fmt::v9_lmp::basic_format_context<typename std::conditional<std::is_same<typename fmt::v9_lmp::type_identity::type, char>::value, fmt::v9_lmp::appender, std::back_insert_iterator<fmt::v9_lmp::detail::buffer<typename fmt::v9_lmp::type_identity::type> > >::type, typename fmt::v9_lmp::type_identity::type> >, fmt::v9_lmp::detail::locale_ref) [with Char = char; typename fmt::v9_lmp::type_identity::type = char; typename std::conditional<std::is_same<typename fmt::v9_lmp::type_identity::type, char>::value, fmt::v9_lmp::appender, std::back_insert_iterator<fmt::v9_lmp::detail::buffer<typename fmt::v9_lmp::type_identity::type> > >::type = fmt::v9_lmp::appender]’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format-inl.h:1472:39: required from here
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1241:8: error: uninitialized variable ‘buffer’ in ‘constexpr’ function
Char buffer[digits10() + 1];
^~~~~~
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1667:9: error: use of ‘fmt::v9_lmp::detail::write_int(OutputIt, int, unsigned int, const fmt::v9_lmp::basic_
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1116:4: error: use of ‘fmt::v9_lmp::detail::count_digits(UInt)::<lambda(UInt)> [with int BITS = 4; UInt = unsigned int]’ before deduction of ‘auto’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1921:43: error: use of ‘fmt::v9_lmp::detail::write_int(OutputIt, fmt::v9_lmp::detail::write_int_arg, const fmt::v9_lmp::basic_format_specs&, fmt::v9_lmp::detail::locale_ref)::<lambda(fmt::v9_lmp::detail::reserve_iterator)> [with Char = char; OutputIt = fmt::v9_lmp::appender; T = unsigned int; fmt::v9_lmp::detail::reserve_iterator = fmt::v9_lmp::appender]’ before deduction of ‘auto’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1667:9: error: use of ‘fmt::v9_lmp::detail::write_int(OutputIt, int, unsigned int, const fmt::v9_lmp::basic_
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1116:4: error: use of ‘fmt::v9_lmp::detail::count_digits(UInt)::<lambda(UInt)> [with int BITS = 1; UInt = unsigned int]’ before deduction of ‘auto’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1921:43: error: use of ‘fmt::v9_lmp::detail::write_int(OutputIt, fmt::v9_lmp::detail::write_int_arg, const fmt::v9_lmp::basic_format_specs&, fmt::v9_lmp::detail::locale_ref)::<lambda(fmt::v9_lmp::detail::reserve_iterator)> [with Char = char; OutputIt = fmt::v9_lmp::appender; T = unsigned int; fmt::v9_lmp::detail::reserve_iterator = fmt::v9_lmp::appender]’ before deduction of ‘auto’
return base_iterator(out, write_digits(it));
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1667:9: error: use of ‘fmt::v9_lmp::detail::write_int(OutputIt, int, unsigned int, const fmt::v9_lmp::basic_format_specs&, W)::<lambda(fmt::v9_lmp::detail::reserve_iterator)> [with OutputIt = fmt::v9_lmp::appender; Char = char; W = fmt::v9_lmp::detail::write_int(Ou
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1116:4: error: use of ‘fmt::v9_lmp::detail::count_digits(UInt)::<lambda(UInt)> [with int BITS = 3; UInt = unsigned int]’ before deduction of ‘auto’
/mnt/lustre/users/alopis/Installs/LAMMPS/June23/src/fmt/format.h:1921:43: error: use of ‘fmt::v9_lmp::detail::write_int(OutputIt, fmt::v9_lmp::detail::write_int_arg, const fmt::v9_lmp::basic_format_specs&, fmt::v9_lmp::detail::locale_ref)::<lambda(fmt::v9_lmp::detail::reserve_iterator)> [with Char = char; OutputIt = fmt::v9_lmp::appender; T = unsigned int; fmt::v9_lmp::detail::reserve_iterator = fmt::v9_lmp::appender]’ before deduction of ‘auto’
etc.
The build setup info from the log is as follows:
– The CXX compiler identification is GNU 6.1.0
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: /cm/local/apps/gcc/6.1.0/bin/c++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– Found Git: /bin/git (found version “1.8.3.1”)
– Running check for auto-generated files from make-based build system
– Found MPI_CXX: /apps/libs/openmpi/4.0.0-gcc6.1.0/lib/libmpi.so (found version “3.1”)
– Found MPI: TRUE (found version “3.1”)
– Looking for C++ include omp.h
– Looking for C++ include omp.h - found
– Found OpenMP_CXX: -fopenmp (found version “4.5”)
– Found OpenMP: TRUE (found version “4.5”) found components: CXX
– Found GZIP: /bin/gzip
– Could NOT find FFMPEG (missing: FFMPEG_EXECUTABLE)
– Found PkgConfig: /bin/pkg-config (found version “0.27.1”)
– Checking for module ‘fftw3’
– No package ‘fftw3’ found
– Looking for C++ include cmath
– Looking for C++ include cmath - found
– Setting default Kokkos CXX standard to 14
– Setting policy CMP0074 to use _ROOT variables
– The project name is: Kokkos
– SERIAL backend is being turned on to ensure there is at least one Host space. To change this, you must enable another host execution space and configure with -DKokkos_ENABLE_SERIAL=OFF or change CMakeCache.txt
– Using -std=c++14 for C++14 standard as feature
– Built-in Execution Spaces:
– Device Parallel: NoTypeDefined
– Host Parallel: NoTypeDefined
– Host Serial: SERIAL
– Architectures:
– Found TPLLIBDL: /usr/lib64/libdl.so
– Kokkos Devices: SERIAL, Kokkos Backends: SERIAL
– Generating style headers…
– Generating package headers…
– Generating lmpinstalledpkgs.h…
– Could NOT find ClangFormat (missing: ClangFormat_EXECUTABLE) (Required is at least version “8.0”)
– The following tools and libraries have been found and configured:
- Git
- MPI
- OpenMP
- PkgConfig
- TPLLIBDL
– <<< Build configuration >>>
LAMMPS Version: 20220623
Operating System: Linux CentOS Linux 7
CMake Version: 3.20.0-rc4
Build type: RelWithDebInfo
Install path: /mnt/lustre/users/alopis/Installs/LAMMPS/June23
Generator: Unix Makefiles using /bin/gmake
– Enabled packages: BODY;COLLOID;DIPOLE;GRANULAR;KOKKOS;KSPACE;MANYBODY;MISC;MOLECULE;REAXFF;RIGID
– <<< Compilers and Flags: >>>
– C++ Compiler: /cm/local/apps/gcc/6.1.0/bin/c++
Type: GNU
Version: 6.1.0
C++ Flags: -O2 -g -DNDEBUG
Defines: LAMMPS_SMALLBIG;LAMMPS_MEMALIGN=64;LAMMPS_OMP_COMPAT=3;LAMMPS_GZIP;FFT_KISS;$<BUILD_INTERFACE:LMP_KOKKOS>
– <<< Linker flags: >>>
– Executable name: lmp
– Static library flags:
– <<< MPI flags >>>
– MPI_defines: MPICH_SKIP_MPICXX;OMPI_SKIP_MPICXX;_MPICC_H
– MPI includes: /apps/libs/openmpi/4.0.0-gcc6.1.0/include
– MPI libraries: /apps/libs/openmpi/4.0.0-gcc6.1.0/lib/libmpi.so;
– Kokkos Devices: SERIAL
– <<< FFT settings >>>
– Primary FFT lib: KISS
– Using double precision FFTs
– Using non-threaded FFTs
– Kokkos FFT: KISS
– Configuring done
– Generating done
– Build files have been written to: /mnt/lustre/users/alopis/Installs/LAMMPS/June23/build