[go: up one dir, main page]

error: ‘uint64_t’ does not name a type

==> Making package: marcfs-git 0.8.1.r0.ga09b634-1 (Wed 14 Jun 2023 01:10:52 PM MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating marcfs git repo...
  -> Updating curlcpp git repo...
  -> Updating googletest git repo...
==> Validating source files with md5sums...
    marcfs ... Skipped
    curlcpp ... Skipped
    googletest ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of marcfs git repo...
Cloning into 'marcfs'...
done.
  -> Creating working copy of curlcpp git repo...
Cloning into 'curlcpp'...
done.
  -> Creating working copy of googletest git repo...
Cloning into 'googletest'...
done.
==> Starting pkgver()...
==> Updated version: marcfs-git 0.8.1.r0-1
==> Sources are ready.
==> Making package: marcfs-git 0.8.1.r0-1 (Wed 14 Jun 2023 01:10:58 PM MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Submodule 'curlcpp' (https://github.com/JosephP91/curlcpp.git) registered for path 'contrib/curlcpp'
Submodule 'contrib/googletest' (https://github.com/google/googletest) registered for path 'contrib/googletest'
Cloning into '/tmp/yay/marcfs-git/src/marcfs/contrib/curlcpp'...
Cloning into '/tmp/yay/marcfs-git/src/marcfs/contrib/googletest'...
done.
Submodule path 'contrib/curlcpp': checked out 'b2f00d429a37920bac73267bd10db5f62e61972b'
Submodule path 'contrib/googletest': checked out '5b752b1947bbb4df571848a1afad00f9b06f30e0'
The Meson build system
Version: 1.1.1
Source dir: /tmp/yay/marcfs-git/src/marcfs
Build dir: /tmp/yay/marcfs-git/src/marcfs/build
Build type: native build
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300
Project name: marcfs
Project version: 0.8.1

C compiler for the host machine: ccache cc (gcc 13.1.1 "cc (GCC) 13.1.1 20230429")
C linker for the host machine: cc ld.bfd 2.40.0
C++ compiler for the host machine: ccache c++ (gcc 13.1.1 "c++ (GCC) 13.1.1 20230429")
C++ linker for the host machine: c++ ld.bfd 2.40.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.1)
Run-time dependency libcurl found: YES 8.1.2
Run-time dependency jsoncpp found: YES 1.9.4
Run-time dependency fuse3 found: YES 3.14.1

Executing subproject curlcpp method cmake 

curlcpp| Found CMake: /usr/bin/cmake (3.26.4)

| Configuring the build directory with CMake version 3.26.4
| Running CMake with: -G Ninja -DCMAKE_INSTALL_PREFIX=/usr
|   - build directory:          /tmp/yay/marcfs-git/src/marcfs/build/contrib/curlcpp/__CMake_build
|   - source directory:         /tmp/yay/marcfs-git/src/marcfs/contrib/curlcpp
|   - toolchain file:           /tmp/yay/marcfs-git/src/marcfs/build/contrib/curlcpp/__CMake_build/CMakeMesonToolchainFile.cmake
|   - preload file:             /usr/lib/python3.11/site-packages/mesonbuild/cmake/data/preload.cmake
|   - trace args:               --trace-expand --trace-format=json-v1 --no-warn-unused-cli --trace-redirect=cmake_trace.txt
|   - disabled policy warnings: [CMP0025, CMP0047, CMP0056, CMP0060, CMP0065, CMP0066, CMP0067, CMP0082, CMP0089, CMP0102]

| Running with expanded trace output on.
| Not searching for unused variables given on the command line.
| Trace will be written to cmake_trace.txt
| -- The CXX compiler identification is GNU 13.1.1
| -- 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
| -- Setting build type to 'Release' as none was specified.
| -- IPO / LTO supported, will enable for targets in release build type
| -- Found CURL: /usr/lib/libcurl.so (found suitable version "8.1.2", minimum required is "7.28.0")
| -- Configuring done (0.5s)
| -- Generating done (0.0s)
| -- Build files have been written to: /tmp/yay/marcfs-git/src/marcfs/build/contrib/curlcpp/__CMake_build

curlcpp| CMake configuration: SUCCEEDED
curlcpp| CMake project curlcpp has 1 build targets.

cmake-ast| Processing generated meson AST
cmake-ast| Build file: /tmp/yay/marcfs-git/src/marcfs/build/contrib/curlcpp/meson.build

curlcpp| Project name: curlcpp
curlcpp| Project version: undefined
curlcpp| C compiler for the host machine: ccache cc (gcc 13.1.1 "cc (GCC) 13.1.1 20230429")
curlcpp| C linker for the host machine: cc ld.bfd 2.40.0
curlcpp| C++ compiler for the host machine: ccache c++ (gcc 13.1.1 "c++ (GCC) 13.1.1 20230429")
curlcpp| C++ linker for the host machine: c++ ld.bfd 2.40.0
curlcpp| Build targets in project: 1
curlcpp| Subproject curlcpp finished.



Executing subproject googletest method cmake 


| Configuring the build directory with CMake version 3.26.4
| Running CMake with: -G Ninja -DCMAKE_INSTALL_PREFIX=/usr
|   - build directory:          /tmp/yay/marcfs-git/src/marcfs/build/contrib/googletest/__CMake_build
|   - source directory:         /tmp/yay/marcfs-git/src/marcfs/contrib/googletest
|   - toolchain file:           /tmp/yay/marcfs-git/src/marcfs/build/contrib/googletest/__CMake_build/CMakeMesonToolchainFile.cmake
|   - preload file:             /usr/lib/python3.11/site-packages/mesonbuild/cmake/data/preload.cmake
|   - trace args:               --trace-expand --trace-format=json-v1 --no-warn-unused-cli --trace-redirect=cmake_trace.txt
|   - disabled policy warnings: [CMP0025, CMP0047, CMP0056, CMP0060, CMP0065, CMP0066, CMP0067, CMP0082, CMP0089, CMP0102]

| 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.

| Running with expanded trace output on.
| Not searching for unused variables given on the command line.
| Trace will be written to cmake_trace.txt

| -- The C compiler identification is GNU 13.1.1
| -- The CXX compiler identification is GNU 13.1.1
| -- 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 googlemock/CMakeLists.txt:42 (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.


| CMake Deprecation Warning at googletest/CMakeLists.txt:53 (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.


| -- Found PythonInterp: /usr/bin/python (found version "3.11.3")
| -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
| -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
| -- Found Threads: TRUE
| -- Configuring done (0.6s)
| -- Generating done (0.0s)
| -- Build files have been written to: /tmp/yay/marcfs-git/src/marcfs/build/contrib/googletest/__CMake_build

googletest| CMake configuration: SUCCEEDED
googletest| CMake project googletest-distribution has 4 build targets.

cmake-ast| Processing generated meson AST
cmake-ast| Build file: /tmp/yay/marcfs-git/src/marcfs/build/contrib/googletest/meson.build

googletest| Project name: googletest-distribution
googletest| Project version: undefined
googletest| C++ compiler for the host machine: ccache c++ (gcc 13.1.1 "c++ (GCC) 13.1.1 20230429")
googletest| C++ linker for the host machine: c++ ld.bfd 2.40.0
googletest| Build targets in project: 5
googletest| Subproject googletest finished.


Build targets in project: 7

marcfs 0.8.1


  Subprojects
    curlcpp   : YES
    googletest: YES

  User defined options
    buildtype : plain
    prefix    : /usr

Found ninja-1.11.1 at /usr/bin/ninja
INFO: autodetecting backend as ninja                                                                
INFO: calculating backend command to run: /usr/bin/ninja -C /tmp/yay/marcfs-git/src/marcfs/build -j 12

...

FAILED: marcfs.p/src_marc_api_cloudfile.cpp.o 
ccache c++ -Imarcfs.p -I. -I.. -I../contrib/curlcpp/include -I/usr/include -Icontrib/curlcpp/__CMake_build -I../contrib/curlcpp/__CMake_build -Icontrib/curlcpp -I../contrib/curlcpp -I/usr/include/fuse3 -fdiagnostics-color=always -Wall -Winvalid-pch -std=c++17 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=35 -MD -MQ marcfs.p/src_marc_api_cloudfile.cpp.o -MF marcfs.p/src_marc_api_cloudfile.cpp.o.d -o marcfs.p/src_marc_api_cloudfile.cpp.o -c ../src/marc_api_cloudfile.cpp
In file included from ../src/marc_api_cloudfile.cpp:21:
../src/marc_api_cloudfile.h:58:5: error: ‘uint64_t’ does not name a type
   58 |     uint64_t getSize() const;
      |     ^~~~~~~~
../src/marc_api_cloudfile.h:25:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   24 | #include <string>
  +++ |+#include <cstdint>
   25 | 
../src/marc_api_cloudfile.h:59:24: error: ‘uint64_t’ does not name a type
   59 |     void setSize(const uint64_t &value);
      |                        ^~~~~~~~
../src/marc_api_cloudfile.h:59:24: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
../src/marc_api_cloudfile.h:65:5: error: ‘uint64_t’ does not name a type
   65 |     uint64_t type;
      |     ^~~~~~~~
../src/marc_api_cloudfile.h:65:5: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
../src/marc_api_cloudfile.h:71:5: error: ‘uint64_t’ does not name a type
   71 |     uint64_t size;          // size of file
      |     ^~~~~~~~
../src/marc_api_cloudfile.h:71:5: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
../src/marc_api_cloudfile.cpp: In constructor ‘CloudFile::CloudFile(const Json::Value&)’:
../src/marc_api_cloudfile.cpp:32:5: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
   32 |     type = val["type"].asString() == "file" ? S_IFREG : S_IFDIR;
      |     ^~~~
      |     wctype
../src/marc_api_cloudfile.cpp:37:5: error: ‘size’ was not declared in this scope; did you mean ‘std::size’?
   37 |     size = val["size"].asUInt64();
      |     ^~~~
      |     std::size
In file included from /usr/include/c++/13.1.1/string:53,
                 from ../src/marc_api_cloudfile.h:24:
/usr/include/c++/13.1.1/bits/range_access.h:274:5: note: ‘std::size’ declared here
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
../src/marc_api_cloudfile.cpp: In member function ‘int CloudFile::getType() const’:
../src/marc_api_cloudfile.cpp:44:12: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
   44 |     return type;
      |            ^~~~
      |            wctype
../src/marc_api_cloudfile.cpp: In member function ‘void CloudFile::setType(const int&)’:
../src/marc_api_cloudfile.cpp:49:5: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
   49 |     type = value;
      |     ^~~~
      |     wctype
../src/marc_api_cloudfile.cpp: At global scope:
../src/marc_api_cloudfile.cpp:102:10: error: no declaration matches ‘uint64_t CloudFile::getSize() const’
  102 | uint64_t CloudFile::getSize() const
      |          ^~~~~~~~~
../src/marc_api_cloudfile.cpp:102:10: note: no functions named ‘uint64_t CloudFile::getSize() const’
../src/marc_api_cloudfile.h:33:7: note: ‘class CloudFile’ defined here
   33 | class CloudFile
      |       ^~~~~~~~~
../src/marc_api_cloudfile.cpp:107:6: error: no declaration matches ‘void CloudFile::setSize(const uint64_t&)’
  107 | void CloudFile::setSize(const uint64_t &value)
      |      ^~~~~~~~~
../src/marc_api_cloudfile.h:59:10: note: candidate is: ‘void CloudFile::setSize(const int&)’
   59 |     void setSize(const uint64_t &value);
      |          ^~~~~~~
../src/marc_api_cloudfile.h:33:7: note: ‘class CloudFile’ defined here
   33 | class CloudFile
      |       ^~~~~~~~~
[52/54] Compiling C++ object apitest.p/src_marc_api_cloudfile.cpp.o
FAILED: apitest.p/src_marc_api_cloudfile.cpp.o 
ccache c++ -Iapitest.p -I. -I.. -I../contrib/curlcpp/include -I/usr/include -Icontrib/curlcpp/__CMake_build -I../contrib/curlcpp/__CMake_build -Icontrib/curlcpp -I../contrib/curlcpp -I../contrib/googletest/googletest/include -I../contrib/googletest/googletest -Icontrib/googletest/__CMake_build -I../contrib/googletest/__CMake_build -Icontrib/googletest -I../contrib/googletest -I/usr/include/fuse3 -fdiagnostics-color=always -Wall -Winvalid-pch -std=c++17 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -isystem../contrib/googletest/googletest -isystem../contrib/googletest/googletest/include -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=35 -MD -MQ apitest.p/src_marc_api_cloudfile.cpp.o -MF apitest.p/src_marc_api_cloudfile.cpp.o.d -o apitest.p/src_marc_api_cloudfile.cpp.o -c ../src/marc_api_cloudfile.cpp
In file included from ../src/marc_api_cloudfile.cpp:21:
../src/marc_api_cloudfile.h:58:5: error: ‘uint64_t’ does not name a type
   58 |     uint64_t getSize() const;
      |     ^~~~~~~~
../src/marc_api_cloudfile.h:25:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   24 | #include <string>
  +++ |+#include <cstdint>
   25 | 
../src/marc_api_cloudfile.h:59:24: error: ‘uint64_t’ does not name a type
   59 |     void setSize(const uint64_t &value);
      |                        ^~~~~~~~
../src/marc_api_cloudfile.h:59:24: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
../src/marc_api_cloudfile.h:65:5: error: ‘uint64_t’ does not name a type
   65 |     uint64_t type;
      |     ^~~~~~~~
../src/marc_api_cloudfile.h:65:5: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
../src/marc_api_cloudfile.h:71:5: error: ‘uint64_t’ does not name a type
   71 |     uint64_t size;          // size of file
      |     ^~~~~~~~
../src/marc_api_cloudfile.h:71:5: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
../src/marc_api_cloudfile.cpp: In constructor ‘CloudFile::CloudFile(const Json::Value&)’:
../src/marc_api_cloudfile.cpp:32:5: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
   32 |     type = val["type"].asString() == "file" ? S_IFREG : S_IFDIR;
      |     ^~~~
      |     wctype
../src/marc_api_cloudfile.cpp:37:5: error: ‘size’ was not declared in this scope; did you mean ‘std::size’?
   37 |     size = val["size"].asUInt64();
      |     ^~~~
      |     std::size
In file included from /usr/include/c++/13.1.1/string:53,
                 from ../src/marc_api_cloudfile.h:24:
/usr/include/c++/13.1.1/bits/range_access.h:274:5: note: ‘std::size’ declared here
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
../src/marc_api_cloudfile.cpp: In member function ‘int CloudFile::getType() const’:
../src/marc_api_cloudfile.cpp:44:12: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
   44 |     return type;
      |            ^~~~
      |            wctype
../src/marc_api_cloudfile.cpp: In member function ‘void CloudFile::setType(const int&)’:
../src/marc_api_cloudfile.cpp:49:5: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
   49 |     type = value;
      |     ^~~~
      |     wctype
../src/marc_api_cloudfile.cpp: At global scope:
../src/marc_api_cloudfile.cpp:102:10: error: no declaration matches ‘uint64_t CloudFile::getSize() const’
  102 | uint64_t CloudFile::getSize() const
      |          ^~~~~~~~~
../src/marc_api_cloudfile.cpp:102:10: note: no functions named ‘uint64_t CloudFile::getSize() const’
../src/marc_api_cloudfile.h:33:7: note: ‘class CloudFile’ defined here
   33 | class CloudFile
      |       ^~~~~~~~~
../src/marc_api_cloudfile.cpp:107:6: error: no declaration matches ‘void CloudFile::setSize(const uint64_t&)’
  107 | void CloudFile::setSize(const uint64_t &value)
      |      ^~~~~~~~~
../src/marc_api_cloudfile.h:59:10: note: candidate is: ‘void CloudFile::setSize(const int&)’
   59 |     void setSize(const uint64_t &value);
      |          ^~~~~~~
../src/marc_api_cloudfile.h:33:7: note: ‘class CloudFile’ defined here
   33 | class CloudFile
      |       ^~~~~~~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: marcfs-git-exit status 4