Entering edit mode
- R: 4.1.2
- OS: ArchLinux
- g++: 11.2.0
Code should be placed in three backticks as shown below
* installing *source* package ‘Travel’ ...
** using staged installation
** libs
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c Cpp_interface.cpp -o Cpp_interface.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c altfile_operations.cpp -o altfile_operations.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c altmmap_operations.cpp -o altmmap_operations.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c altrep_manager.cpp -o altrep_manager.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c class_Cache_block.cpp -o class_Cache_block.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c class_Filesystem_cache_copier.cpp -o class_Filesystem_cache_copier.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c class_Filesystem_file_data.cpp -o class_Filesystem_file_data.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c class_Memory_mapped.cpp -o class_Memory_mapped.o
In file included from class_Filesystem_file_data.h:5,
from class_Filesystem_file_data.cpp:1:
class_Cache_block.h:10:5: error: ‘size_t’ does not name a type
10 | size_t size;
| ^~~~~~
class_Cache_block.h:1:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
+++ |+#include <cstddef>
1 | #ifndef HEADER_CACHE_BLOCK
class_Cache_block.h:11:5: error: ‘size_t’ does not name a type
11 | size_t *counter = nullptr;
| ^~~~~~
class_Cache_block.h:11:5: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
class_Cache_block.h:14:23: error: expected ‘)’ before ‘size’
14 | Cache_block(size_t size);
| ~ ^~~~~
| )
class_Cache_block.h:21:5: error: ‘size_t’ does not name a type
21 | size_t use_count() const;
| ^~~~~~
class_Cache_block.h:21:5: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
class_Cache_block.h:23:5: error: ‘size_t’ does not name a type
23 | size_t get_size() const;
| ^~~~~~
class_Cache_block.h:23:5: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
class_Cache_block.h:27:5: error: ‘size_t’ does not name a type
27 | size_t get_serialize_size() const;
| ^~~~~~
class_Cache_block.h:27:5: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG `pkg-config fuse --cflags` -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -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 -flto -c class_Protect_guard.cpp -o class_Protect_guard.o
class_Filesystem_file_data.cpp: In member function ‘size_t Filesystem_file_data::get_serialize_size()’:
class_Filesystem_file_data.cpp:70:26: error: ‘const class Cache_block’ has no member named ‘get_serialize_size’
70 | size += i.second.get_serialize_size();
| ^~~~~~~~~~~~~~~~~~
class_Filesystem_file_data.cpp: In member function ‘void Filesystem_file_data::serialize(void*)’:
class_Filesystem_file_data.cpp:92:39: error: ‘const class Cache_block’ has no member named ‘get_serialize_size’
92 | size_t buffer_size = i.second.get_serialize_size();
| ^~~~~~~~~~~~~~~~~~
class_Filesystem_file_data.cpp: In member function ‘void Filesystem_cache_index_iterator::compute_block_info()’:
class_Filesystem_file_data.cpp:177:39: error: ‘class Cache_block’ has no member named ‘get_size’
177 | block_length = block_iter->second.get_size() / type_size;
| ^~~~~~~~
make: *** [/usr/lib64/R/etc/Makeconf:177: class_Filesystem_file_data.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘Travel’