Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whether this library supports for VxWorks7.0 ? #71

Open
yuzu-ogura opened this issue Apr 24, 2024 · 6 comments
Open

whether this library supports for VxWorks7.0 ? #71

yuzu-ogura opened this issue Apr 24, 2024 · 6 comments

Comments

@yuzu-ogura
Copy link

When I use cmake to build this repository, it occurs a series of errors

@yuzu-ogura
Copy link
Author

`liuyu@liuyu-virtual-machine:/Cross-Compile/foonathan_memory_vendor-1.3.1/build$ cmake -D CMAKE_TOOLCHAIN_FILE=${WIND_SDK_HOME}/vxsdk/sysroot/mk/dkm.toolchain.cmake -DCMAKE_INSTALL_PREFIX=/home/liuyu/Cross-Compile/output ..
-- The C compiler identification is Clang 13.0.1
-- The CXX compiler identification is Clang 13.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-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: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build
liuyu@liuyu-virtual-machine:
/Cross-Compile/foonathan_memory_vendor-1.3.1/build$ make
[ 12%] Creating directories for 'foo_mem-ext'
[ 25%] Performing download step (git clone) for 'foo_mem-ext'
正克隆到 'foo_mem-ext'...
HEAD 目前位于 0f07757 Release 0.7-3
[ 37%] No update step for 'foo_mem-ext'
[ 50%] No patch step for 'foo_mem-ext'
[ 62%] Performing configure step for 'foo_mem-ext'
-- The C compiler identification is Clang 13.0.1
-- The CXX compiler identification is Clang 13.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-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: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_CXX_ATOMIC_NOFLAG
-- Performing Test HAVE_CXX_ATOMIC_NOFLAG - Success
-- Getting container node sizes
CMake Error at cmake/get_container_node_sizes.cmake:117 (message):
Unable to determine node size of C++ container
SHARED_PTR_STATELESS_CONTAINER holding type char - no error text matching
node_size_of<##, ##, true> in compiler output |Change Dir:
/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_d35f4/fast &&
gmake[3]:
进入目录“/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp”

/usr/bin/gmake -f CMakeFiles/cmTC_d35f4.dir/build.make
CMakeFiles/cmTC_d35f4.dir/build

gmake[4]:
进入目录“/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp”

Building CXX object CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-c++
--sysroot=/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot
-DSHARED_PTR_STATELESS_CONTAINER=1 -DTEST_TYPE=char -dkm -dkm -fPIE
-std=c++11 -MD -MT CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o -MF
CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o.d -o
CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o -c
/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp

In file included from
/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp:2:

In file included from
/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/tuple:4:

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/type_traits:1089:3:
error: incomplete type
'std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>'
used in type trait expression

              _IS_EMPTY(_Ty)
              ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/type_traits:119:14:
note: expanded from macro '_IS_EMPTY'

      : _Cat_base<__is_empty(_Ty)>
                  ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/xiter:341:9:
note: in instantiation of template class
'std::is_empty<std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>>'
requested here

      bool = is_empty<_Ty1>::value>
             ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/memory:1024:2:
note: in instantiation of default argument for
'_Compressed_pair<std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>,
std::aligned_storage<1, 1>::type>' required here

      _Compressed_pair<_Myalty, _Mystoragety> _Mypair;
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp:55:4:
note: in instantiation of template class 'std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>' requested here

                      sizeof(T) - (SubtractTSize ? sizeof(InitialType) : 0),
                      ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/xmemory0:885:12:
note: in instantiation of template class
'debug_allocator<std::_Ref_count_obj_alloc<char, debug_allocator<char,
empty_state, false>>, empty_state, false, char>' requested here

              : public _Alloc
                       ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/memory:1049:51:
note: in instantiation of template class
'std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>'
requested here

      typename _Alref0::template rebind<_Refoa>::other _Alref(_Al_arg);
                                                       ^

/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp:185:21:
note: in instantiation of function template specialization
'std::allocate_shared<char, debug_allocator<char, empty_state, false>>'
requested here

  auto ptr = std::allocate_shared<T>(debug_allocator<T, empty_state, false>());
                  ^

/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp:220:11:
note: in instantiation of function template specialization
'test_container' requested here

int foo = test_container<TEST_TYPE>();

        ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/xmemory0:884:9:
note: definition of
'std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>' is
not complete until the closing '}'

      struct _Wrap_alloc
             ^

1 error generated.

gmake[4]: ***
[CMakeFiles/cmTC_d35f4.dir/build.make:79:CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o]
错误 1

gmake[4]:
离开目录“/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp”

gmake[3]: *** [Makefile:127:cmTC_d35f4/fast] 错误 2

gmake[3]:
离开目录“/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp”

|
Call Stack (most recent call first):
cmake/get_container_node_sizes.cmake:149 (get_node_sizes_of)
src/CMakeLists.txt:80 (get_container_node_sizes)

-- Configuring incomplete, errors occurred!`

1 similar comment
@yuzu-ogura
Copy link
Author

`liuyu@liuyu-virtual-machine:/Cross-Compile/foonathan_memory_vendor-1.3.1/build$ cmake -D CMAKE_TOOLCHAIN_FILE=${WIND_SDK_HOME}/vxsdk/sysroot/mk/dkm.toolchain.cmake -DCMAKE_INSTALL_PREFIX=/home/liuyu/Cross-Compile/output ..
-- The C compiler identification is Clang 13.0.1
-- The CXX compiler identification is Clang 13.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-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: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build
liuyu@liuyu-virtual-machine:
/Cross-Compile/foonathan_memory_vendor-1.3.1/build$ make
[ 12%] Creating directories for 'foo_mem-ext'
[ 25%] Performing download step (git clone) for 'foo_mem-ext'
正克隆到 'foo_mem-ext'...
HEAD 目前位于 0f07757 Release 0.7-3
[ 37%] No update step for 'foo_mem-ext'
[ 50%] No patch step for 'foo_mem-ext'
[ 62%] Performing configure step for 'foo_mem-ext'
-- The C compiler identification is Clang 13.0.1
-- The CXX compiler identification is Clang 13.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-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: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_CXX_ATOMIC_NOFLAG
-- Performing Test HAVE_CXX_ATOMIC_NOFLAG - Success
-- Getting container node sizes
CMake Error at cmake/get_container_node_sizes.cmake:117 (message):
Unable to determine node size of C++ container
SHARED_PTR_STATELESS_CONTAINER holding type char - no error text matching
node_size_of<##, ##, true> in compiler output |Change Dir:
/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_d35f4/fast &&
gmake[3]:
进入目录“/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp”

/usr/bin/gmake -f CMakeFiles/cmTC_d35f4.dir/build.make
CMakeFiles/cmTC_d35f4.dir/build

gmake[4]:
进入目录“/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp”

Building CXX object CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-c++
--sysroot=/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot
-DSHARED_PTR_STATELESS_CONTAINER=1 -DTEST_TYPE=char -dkm -dkm -fPIE
-std=c++11 -MD -MT CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o -MF
CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o.d -o
CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o -c
/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp

In file included from
/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp:2:

In file included from
/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/tuple:4:

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/type_traits:1089:3:
error: incomplete type
'std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>'
used in type trait expression

              _IS_EMPTY(_Ty)
              ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/type_traits:119:14:
note: expanded from macro '_IS_EMPTY'

      : _Cat_base<__is_empty(_Ty)>
                  ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/xiter:341:9:
note: in instantiation of template class
'std::is_empty<std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>>'
requested here

      bool = is_empty<_Ty1>::value>
             ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/memory:1024:2:
note: in instantiation of default argument for
'_Compressed_pair<std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>,
std::aligned_storage<1, 1>::type>' required here

      _Compressed_pair<_Myalty, _Mystoragety> _Mypair;
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp:55:4:
note: in instantiation of template class 'std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>' requested here

                      sizeof(T) - (SubtractTSize ? sizeof(InitialType) : 0),
                      ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/xmemory0:885:12:
note: in instantiation of template class
'debug_allocator<std::_Ref_count_obj_alloc<char, debug_allocator<char,
empty_state, false>>, empty_state, false, char>' requested here

              : public _Alloc
                       ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/memory:1049:51:
note: in instantiation of template class
'std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>'
requested here

      typename _Alref0::template rebind<_Refoa>::other _Alref(_Al_arg);
                                                       ^

/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp:185:21:
note: in instantiation of function template specialization
'std::allocate_shared<char, debug_allocator<char, empty_state, false>>'
requested here

  auto ptr = std::allocate_shared<T>(debug_allocator<T, empty_state, false>());
                  ^

/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/cmake/get_node_size.cpp:220:11:
note: in instantiation of function template specialization
'test_container' requested here

int foo = test_container<TEST_TYPE>();

        ^

/home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/../../../sysroot/krnl/h/public/xmemory0:884:9:
note: definition of
'std::_Wrap_alloc<debug_allocator<std::_Ref_count_obj_alloc<char,
debug_allocator<char, empty_state, false>>, empty_state, false, char>>' is
not complete until the closing '}'

      struct _Wrap_alloc
             ^

1 error generated.

gmake[4]: ***
[CMakeFiles/cmTC_d35f4.dir/build.make:79:CMakeFiles/cmTC_d35f4.dir/get_node_size.cpp.o]
错误 1

gmake[4]:
离开目录“/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp”

gmake[3]: *** [Makefile:127:cmTC_d35f4/fast] 错误 2

gmake[3]:
离开目录“/home/liuyu/Cross-Compile/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build/src/CMakeFiles/CMakeTmp”

|
Call Stack (most recent call first):
cmake/get_container_node_sizes.cmake:149 (get_node_sizes_of)
src/CMakeLists.txt:80 (get_container_node_sizes)

-- Configuring incomplete, errors occurred!`

@MiguelCompany
Copy link
Member

There is a WindRiver repo with patches to build this on VxWorks 7: https://github.com/Wind-River/vxworks7-layer-for-ros2/tree/rolling-23.09/foonathan_memory_vendor/usr_src

@yuzu-ogura
Copy link
Author

There is a WindRiver repo with patches to build this on VxWorks 7: https://github.com/Wind-River/vxworks7-layer-for-ros2/tree/rolling-23.09/foonathan_memory_vendor/usr_src

Thanks for your quick reply. I use patch -p0 < 0001-clone-VxWorks-fixes.patch to fix the local repository files. After that, I also got a mistake like below:
`liuyu@liuyu-virtual-machine:~/Cross-Compile/tmp/foonathan_memory_vendor-1.3.1/build$ make
[ 12%] Creating directories for 'foo_mem-ext'
[ 25%] Performing download step (git clone) for 'foo_mem-ext'
正克隆到 'foo_mem-ext'...
HEAD 目前位于 19ab075 Release 0.7-1
[ 37%] No update step for 'foo_mem-ext'
[ 50%] No patch step for 'foo_mem-ext'
[ 62%] Performing configure step for 'foo_mem-ext'
-- The C compiler identification is Clang 13.0.1
-- The CXX compiler identification is Clang 13.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-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: /home/liuyu/wrsdk-vxworks7-qemu/vxsdk/host/x86_64-linux/bin/wr-c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_CXX_ATOMIC_NOFLAG
-- Performing Test HAVE_CXX_ATOMIC_NOFLAG - Success
CMake Warning at src/CMakeLists.txt:108 (message):
cross-compiling, but emulator is not defined, cannot generate
container_node_sizes_impl.hpp, node size information will be unavailable

-- Configuring done
-- Generating done
-- Build files have been written to: /home/liuyu/Cross-Compile/tmp/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext-build
[ 75%] Performing build step for 'foo_mem-ext'
[ 4%] Building CXX object src/CMakeFiles/foonathan_memory.dir/detail/align.cpp.o
[ 9%] Building CXX object src/CMakeFiles/foonathan_memory.dir/detail/debug_helpers.cpp.o
[ 13%] Building CXX object src/CMakeFiles/foonathan_memory.dir/detail/assert.cpp.o
[ 18%] Building CXX object src/CMakeFiles/foonathan_memory.dir/detail/free_list.cpp.o
[ 22%] Building CXX object src/CMakeFiles/foonathan_memory.dir/detail/free_list_array.cpp.o
[ 27%] Building CXX object src/CMakeFiles/foonathan_memory.dir/detail/small_free_list.cpp.o
[ 31%] Building CXX object src/CMakeFiles/foonathan_memory.dir/debugging.cpp.o
[ 36%] Building CXX object src/CMakeFiles/foonathan_memory.dir/error.cpp.o
[ 40%] Building CXX object src/CMakeFiles/foonathan_memory.dir/heap_allocator.cpp.o
[ 45%] Building CXX object src/CMakeFiles/foonathan_memory.dir/iteration_allocator.cpp.o
[ 50%] Building CXX object src/CMakeFiles/foonathan_memory.dir/malloc_allocator.cpp.o
[ 54%] Building CXX object src/CMakeFiles/foonathan_memory.dir/memory_arena.cpp.o
[ 59%] Building CXX object src/CMakeFiles/foonathan_memory.dir/memory_pool.cpp.o
[ 63%] Building CXX object src/CMakeFiles/foonathan_memory.dir/memory_pool_collection.cpp.o
[ 68%] Building CXX object src/CMakeFiles/foonathan_memory.dir/memory_stack.cpp.o
[ 72%] Building CXX object src/CMakeFiles/foonathan_memory.dir/new_allocator.cpp.o
[ 77%] Building CXX object src/CMakeFiles/foonathan_memory.dir/static_allocator.cpp.o
[ 81%] Building CXX object src/CMakeFiles/foonathan_memory.dir/temporary_allocator.cpp.o
[ 86%] Building CXX object src/CMakeFiles/foonathan_memory.dir/virtual_memory.cpp.o
/home/liuyu/Cross-Compile/tmp/foonathan_memory_vendor-1.3.1/build/foo_mem-ext-prefix/src/foo_mem-ext/src/virtual_memory.cpp:86:38: error: use of undeclared identifier '_SC_PAGESIZE'
static_caststd::size_t(sysconf(_SC_PAGESIZE));
^
1 error generated.`
Is there anything else that needs to be modified? Thanks a lot

@MiguelCompany
Copy link
Member

I suppose you need to apply all patches and in order, but I don't know.

@Mario-DL
Copy link
Member

Hi @yuzu-ogura,
You may want to transfer the issue to foonathan memory where the package is actually maintained since this is just a vendor package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants