Skip to content

add stdint.h to fix error: ‘std::uint64_t’ has not been declared

Kevin Tee requested to merge kevinsmia1939/catalyst:master into master

I failed to compile commit afa7ec79 with this error.

cmake version 3.27.7 gcc (GCC) 13.2.0 g++ (GCC) 13.2.0

Operating System: openSUSE Tumbleweed 20231114
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.6.1-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 4600H with Radeon Graphics
Memory: 7.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1650 Ti/PCIe/SSE2
Manufacturer: LENOVO
Product Name: 82B5
System Version: Lenovo Legion 5 15ARH05
-- Build files have been written to: /run/build/Catalyst/_flatpak_build
[10/53] Building CXX object src/tools/replay/CMakeFiles/catalyst_replay.dir/catalyst_replay.cpp.o
FAILED: src/tools/replay/CMakeFiles/catalyst_replay.dir/catalyst_replay.cpp.o 
/usr/bin/c++ -DCATALYST_USE_MPI -DMPICH_SKIP_MPICXX -DMPI_NO_CPPBIND -DOMPI_SKIP_MPICXX -D_MPICC_H -I/run/build/Catalyst/thirdparty/conduit/blueprint/c -I/run/build/Catalyst/_flatpak_build/thirdparty/conduit/blueprint -I/run/build/Catalyst/_flatpak_build/thirdparty/conduit/conduit -I/run/build/Catalyst/thirdparty/conduit/conduit -I/run/build/Catalyst/thirdparty/conduit/conduit/c -I/run/build/Catalyst/src/catalyst -I/run/build/Catalyst/_flatpak_build/src/catalyst -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -g -std=c++11 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT src/tools/replay/CMakeFiles/catalyst_replay.dir/catalyst_replay.cpp.o -MF src/tools/replay/CMakeFiles/catalyst_replay.dir/catalyst_replay.cpp.o.d -o src/tools/replay/CMakeFiles/catalyst_replay.dir/catalyst_replay.cpp.o -c /run/build/Catalyst/src/tools/replay/catalyst_replay.cpp
/run/build/Catalyst/src/tools/replay/catalyst_replay.cpp:22:55: error: ‘std::uint64_t’ has not been declared
   22 | void replace_mpi_comm(conduit_cpp::Node& params, std::uint64_t communicator, int depth = 0)
      |                                                       ^~~~~~~~
/run/build/Catalyst/src/tools/replay/catalyst_replay.cpp:44:62: error: ‘std::uint64_t’ has not been declared
   44 |   const std::string& node_dir, int num_ranks, int rank, std::uint64_t communicator)
      |                                                              ^~~~~~~~
/run/build/Catalyst/src/tools/replay/catalyst_replay.cpp: In function ‘int main(int, char**)’:
/run/build/Catalyst/src/tools/replay/catalyst_replay.cpp:340:8: error: ‘uint64_t’ is not a member of ‘std’; did you mean ‘wint_t’?
  340 |   std::uint64_t communicator = static_cast<std::uint64_t>(MPI_Comm_c2f(MPI_COMM_WORLD));
      |        ^~~~~~~~
      |        wint_t
/run/build/Catalyst/src/tools/replay/catalyst_replay.cpp:376:77: error: ‘communicator’ was not declared in this scope; did you mean ‘ompi_communicator_t’?
  376 |   replay_catalyst_initialize(catalyst_data_dump_directory, num_ranks, rank, communicator);
      |                                                                             ^~~~~~~~~~~~
      |                                                                             ompi_communicator_t
[21/53] Building CXX object thirdparty/conduit/conduit/CMakeFiles/conduit.dir/conduit_data_array.cpp.o

Merge request reports

Loading