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

Glibc error on Rocky 8.5 #3346

Closed
MIngPAPA opened this issue Jul 20, 2024 · 4 comments
Closed

Glibc error on Rocky 8.5 #3346

MIngPAPA opened this issue Jul 20, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@MIngPAPA
Copy link

MIngPAPA commented Jul 20, 2024

OS: Rocky 8.5 (RHEL 8)
Dragonfly Version: v1.20.1
Arch: x86_64
error package: both rpm and tar.gz


./dragonfly-x86_64: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by ./dragonfly-x86_64)
./dragonfly-x86_64: /lib64/libc.so.6: version `GLIBC_2.30' not found (required by ./dragonfly-x86_64)

According fedora's doc, RHEL 8 was roughly based on Fedora 28, RHEL 7 is roughly based on Fedora 19 and 20.

Current release build workflows show that the RPM is based on Fedora 30, and the glibc lib is not compatible with Rocky 8.5.

Is it possible for the current release workflows to use fedora:28?

@MIngPAPA MIngPAPA added the bug Something isn't working label Jul 20, 2024
@romange
Copy link
Collaborator

romange commented Jul 20, 2024

I remember trying to build Dragonfly on Fedora 28. Unfortunately it did not succeed, and this is why we build on Fedora 30. If you succeed building on Fedora 28, please let me know.

@MIngPAPA
Copy link
Author

I remember trying to build Dragonfly on Fedora 28. Unfortunately it did not succeed, and this is why we build on Fedora 30. If you succeed building on Fedora 28, please let me know.

Hi Roman,
Currently, I use rockylinux:8 to build Dragonfly latest release(v1.20.1). Referring to the build from source doc. The basic dependency seems to be solved properly. However, there exists some building errors.

Here is the basic dependency installation script for Rocky Linux 8:

Dependency Installation

sudo dnf install -y  epel-release
sudo dnf config-manager --set-enabled powertools
sudo dnf install -y automake boost1.78-devel gcc-c++ git cmake libtool ninja-build libzstd-devel  \
     openssl-devel libunwind-devel autoconf-archive patch bison libxml2-devel libstdc++-static python3 llvm
  • The default gcc version is 8.5, which can support C++17 quite well.
  • The glibc lib version is 2.28.
  • The boost lib version is 1.78
  • cmake version is 3.26.5

Compiling

bash ./helio/blaze.sh -release
cd build-opt && ninja dragonfly

The log is

Using launcher
++ cmake --version
++ grep -Eo '[0-9]+\.[0-9]+\.[0-9]+'
+ result=3.26.5
+ major=3
+ remainder=26.5
+ minor=26
+ '[' 3 -lt 3 ']'
+ '[' 3 -eq 3 ']'
+ '[' 26 -lt 4 ']'
+ cmake -L -B build-opt -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -GNinja -DCMAKE_CXX_COMPILER_LAUNCHER=
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- 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/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAS_USE_AFTER_FREE_WARN
-- Performing Test HAS_USE_AFTER_FREE_WARN - Failed
-- Performing Test SUPPORT_ASAN
-- Performing Test SUPPORT_ASAN - Failed
-- Performing Test SUPPORT_USAN
-- Performing Test SUPPORT_USAN - Failed
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.1.1k")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Python3: /usr/bin/python3.6 (found version "3.6.8") found components: Interpreter
-- LLVM FileCheck Found: /usr/bin/FileCheck
-- Found Git: /usr/bin/git (found version "2.43.5")
-- Google Benchmark version: v0.0.0, normalized to 0.0.0
-- Looking for shm_open in rt
-- Looking for shm_open in rt - found
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
-- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST
-- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST - Success
-- Performing Test HAVE_CXX_FLAG_WCONVERSION
-- Performing Test HAVE_CXX_FLAG_WCONVERSION - Success
-- Performing Test HAVE_CXX_FLAG_WERROR
-- Performing Test HAVE_CXX_FLAG_WERROR - Success
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Compiling and running to test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Compiling and running to test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- success
-- Compiling and running to test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Compiling and running to test HAVE_PTHREAD_AFFINITY
-- Performing Test HAVE_PTHREAD_AFFINITY -- failed to compile
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17 - Success
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX20
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX20 - Failed
-- Found Unwind: /usr/include (found version "1.3.1")
-- Looking for C++ include dlfcn.h
-- Looking for C++ include dlfcn.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Looking for C++ include glob.h
-- Looking for C++ include glob.h - found
-- Looking for C++ include inttypes.h
-- Looking for C++ include inttypes.h - found
-- Looking for C++ include memory.h
-- Looking for C++ include memory.h - found
-- Looking for C++ include pwd.h
-- Looking for C++ include pwd.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include strings.h
-- Looking for C++ include strings.h - found
-- Looking for C++ include sys/stat.h
-- Looking for C++ include sys/stat.h - found
-- Looking for C++ include sys/syscall.h
-- Looking for C++ include sys/syscall.h - found
-- Looking for C++ include sys/time.h
-- Looking for C++ include sys/time.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include sys/utsname.h
-- Looking for C++ include sys/utsname.h - found
-- Looking for C++ include sys/wait.h
-- Looking for C++ include sys/wait.h - found
-- Looking for C++ include syscall.h
-- Looking for C++ include syscall.h - found
-- Looking for C++ include syslog.h
-- Looking for C++ include syslog.h - found
-- Looking for C++ include ucontext.h
-- Looking for C++ include ucontext.h - found
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include ext/hash_map
-- Looking for C++ include ext/hash_map - found
-- Looking for C++ include ext/hash_set
-- Looking for C++ include ext/hash_set - found
-- Looking for C++ include ext/slist
-- Looking for C++ include ext/slist - found
-- Looking for C++ include tr1/unordered_map
-- Looking for C++ include tr1/unordered_map - found
-- Looking for C++ include tr1/unordered_set
-- Looking for C++ include tr1/unordered_set - found
-- Looking for C++ include unordered_map
-- Looking for C++ include unordered_map - found
-- Looking for C++ include unordered_set
-- Looking for C++ include unordered_set - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of unsigned __int16
-- Check size of unsigned __int16 - failed
-- Check size of u_int16_t
-- Check size of u_int16_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Looking for dladdr
-- Looking for dladdr - not found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for pread
-- Looking for pread - found
-- Looking for pwrite
-- Looking for pwrite - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for sigaltstack
-- Looking for sigaltstack - found
-- Performing Test HAVE_NO_DEPRECATED
-- Performing Test HAVE_NO_DEPRECATED - Success
-- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Looking for pthread_threadid_np
-- Looking for pthread_threadid_np - not found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for UnDecorateSymbolName in dbghelp
-- Looking for UnDecorateSymbolName in dbghelp - not found
-- Performing Test HAVE___ATTRIBUTE__
-- Performing Test HAVE___ATTRIBUTE__ - Success
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT - Success
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN - Success
-- Performing Test HAVE___BUILTIN_EXPECT
-- Performing Test HAVE___BUILTIN_EXPECT - Success
-- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP
-- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP - Success
-- Performing Test HAVE_RWLOCK
-- Performing Test HAVE_RWLOCK - Success
-- Performing Test HAVE___DECLSPEC
-- Performing Test HAVE___DECLSPEC - Failed
-- Performing Test STL_NO_NAMESPACE
-- Performing Test STL_NO_NAMESPACE - Failed
-- Performing Test STL_STD_NAMESPACE
-- Performing Test STL_STD_NAMESPACE - Success
-- Performing Test HAVE_USING_OPERATOR
-- Performing Test HAVE_USING_OPERATOR - Success
-- Performing Test HAVE_NAMESPACES
-- Performing Test HAVE_NAMESPACES - Success
-- Performing Test HAVE_GCC_TLS
-- Performing Test HAVE_GCC_TLS - Success
-- Performing Test HAVE_MSVC_TLS
-- Performing Test HAVE_MSVC_TLS - Failed
-- Performing Test HAVE_CXX11_TLS
-- Performing Test HAVE_CXX11_TLS - Success
-- Performing Test HAVE_ALIGNED_STORAGE
-- Performing Test HAVE_ALIGNED_STORAGE - Success
-- Performing Test HAVE_CXX11_ATOMIC
-- Performing Test HAVE_CXX11_ATOMIC - Success
-- Performing Test HAVE_CXX11_CONSTEXPR
-- Performing Test HAVE_CXX11_CONSTEXPR - Success
-- Performing Test HAVE_CXX11_CHRONO
-- Performing Test HAVE_CXX11_CHRONO - Success
-- Performing Test HAVE_CXX11_NULLPTR_T
-- Performing Test HAVE_CXX11_NULLPTR_T - Success
-- Performing Test HAVE_LOCALTIME_R
-- Performing Test HAVE_LOCALTIME_R - Success
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found Boost: /usr/lib64/cmake/Boost-1.78.0/BoostConfig.cmake (found suitable version "1.78.0", minimum required is "1.71.0") found components: context system
-- Found Boost /usr/lib64 1_78 1.78.0
-- Performing Test COMPILER_SUPPORTS_CXX17
-- Performing Test COMPILER_SUPPORTS_CXX17 - Success
-- Performing Test COMPILER_SUPPORTS_CXX20
-- Performing Test COMPILER_SUPPORTS_CXX20 - Failed
-- Compiler /usr/bin/g++, version: 8.5.0
-- Performing Test HAS_RAWMEMCHR
-- Performing Test HAS_RAWMEMCHR - Success
CXX_FLAGS -Wall -Wextra -g -fPIC -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -fno-omit-frame-pointer -Wno-unused-parameter -march=sandybridge -mtune=skylake  -std=c++17 -DHAS_RAWMEMCHR -fdiagnostics-color=always  -O3 -DNDEBUG
-- PROJECT_BINARY_DIR /dragonfly/build-opt/helio GENERATOR Ninja
-- PROJECT_SOURCE_DIR /dragonfly/helio CMAKE_SOURCE_DIR /dragonfly
-- PARENT_PROJ_NAME /dragonfly
-- OpenSSL libs /usr/lib64/libssl.so 1.1.1k
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- THIRD_PARTY_LIB_DIR /dragonfly/build-opt/third_party/libs
-- Configuring done (26.4s)
-- Generating done (0.7s)
-- Build files have been written to: /dragonfly/build-opt
-- Cache values
ABSL_BUILD_TESTING:BOOL=OFF
ABSL_BUILD_TEST_HELPERS:BOOL=OFF
ABSL_ENABLE_INSTALL:BOOL=OFF
ABSL_GOOGLETEST_DOWNLOAD_URL:STRING=
ABSL_LOCAL_GOOGLETEST_DIR:PATH=/usr/src/googletest
ABSL_USE_EXTERNAL_GOOGLETEST:BOOL=OFF
ABSL_USE_GOOGLETEST_HEAD:BOOL=OFF
ABSL_USE_SYSTEM_INCLUDES:BOOL=OFF
BENCHMARK_BUILD_32_BITS:BOOL=OFF
BENCHMARK_DOWNLOAD_DEPENDENCIES:BOOL=OFF
BENCHMARK_ENABLE_ASSEMBLY_TESTS:BOOL=ON
BENCHMARK_ENABLE_DOXYGEN:BOOL=OFF
BENCHMARK_ENABLE_EXCEPTIONS:BOOL=OFF
BENCHMARK_ENABLE_GTEST_TESTS:BOOL=OFF
BENCHMARK_ENABLE_INSTALL:BOOL=OFF
BENCHMARK_ENABLE_LIBPFM:BOOL=OFF
BENCHMARK_ENABLE_LTO:BOOL=OFF
BENCHMARK_ENABLE_TESTING:BOOL=OFF
BENCHMARK_ENABLE_WERROR:BOOL=ON
BENCHMARK_FORCE_WERROR:BOOL=OFF
BENCHMARK_INSTALL_DOCS:BOOL=OFF
BENCHMARK_USE_BUNDLED_GTEST:BOOL=ON
BENCHMARK_USE_LIBCXX:BOOL=OFF
BUILD_DOCS:BOOL=ON
BUILD_GMOCK:BOOL=ON
BUILD_SHARED_LIBS:BOOL=OFF
Boost_CONTEXT_LIBRARY_RELEASE:STRING=/usr/lib64/libboost_context.so.1.78.0
Boost_INCLUDE_DIR:PATH=/usr/include/boost1.78
Boost_SYSTEM_LIBRARY_RELEASE:STRING=/usr/lib64/libboost_system.so.1.78.0
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_INSTALL_PREFIX:PATH=/usr/local
CXXFEATURECHECK_DEBUG:BOOL=OFF
DF_ENABLE_MEMORY_TRACKING:BOOL=ON
DF_USE_SSL:BOOL=ON
ENABLE_GIT_VERSION:BOOL=OFF
EXECINFO_LIBRARY:FILEPATH=EXECINFO_LIBRARY-NOTFOUND
FETCHCONTENT_BASE_DIR:PATH=/dragonfly/build-opt/_deps
FETCHCONTENT_FULLY_DISCONNECTED:BOOL=OFF
FETCHCONTENT_QUIET:BOOL=ON
FETCHCONTENT_SOURCE_DIR_ABSEIL_CPP:PATH=
FETCHCONTENT_SOURCE_DIR_BENCHMARK:PATH=
FETCHCONTENT_SOURCE_DIR_GLOG:PATH=
FETCHCONTENT_SOURCE_DIR_GTEST:PATH=
FETCHCONTENT_UPDATES_DISCONNECTED:BOOL=OFF
FETCHCONTENT_UPDATES_DISCONNECTED_ABSEIL_CPP:BOOL=OFF
FETCHCONTENT_UPDATES_DISCONNECTED_BENCHMARK:BOOL=OFF
FETCHCONTENT_UPDATES_DISCONNECTED_GLOG:BOOL=ON
FETCHCONTENT_UPDATES_DISCONNECTED_GTEST:BOOL=OFF
GTEST_HAS_ABSL:BOOL=OFF
HAVE_LIB_GFLAGS:BOOL=OFF
HAVE_STD_REGEX:BOOL=ON
HELIO_MIMALLOC_LIBNAME:STRING=libmimalloc.a
HELIO_MIMALLOC_OPTS:STRING=
HELIO_USE_SANITIZER:BOOL=OFF
INSTALL_GTEST:BOOL=ON
LEGACY_GLOG:BOOL=ON
LIBRT:FILEPATH=/usr/lib64/librt.so
LLVM_FILECHECK_EXE:PATH=/usr/bin/FileCheck
PRINT_STACKTRACES_ON_SIGNAL:BOOL=OFF
PRINT_UNSYMBOLIZED_STACK_TRACES:BOOL=OFF
REDIS_ZMALLOC_MI:BOOL=ON
USE_MOLD:BOOL=OFF
WITH_ASAN:BOOL=OFF
WITH_AWS:BOOL=ON
WITH_CUSTOM_PREFIX:BOOL=ON
WITH_GFLAGS:BOOL=OFF
WITH_GTEST:BOOL=OFF
WITH_PKGCONFIG:BOOL=ON
WITH_SYMBOLIZE:BOOL=ON
WITH_THREADS:BOOL=ON
WITH_TLS:BOOL=ON
WITH_UNWIND:BOOL=ON
WITH_USAN:BOOL=OFF
ZSTD_LIB:FILEPATH=/usr/lib64/libzstd.so

with errors:

[root@8e9b642616e4 dragonfly]# cd build-opt && ninja dragonfly
[36/562] Performing build step for 'cares_project'
[248/562] Building CXX object helio/util/fibers/CMakeFiles/fibers2.dir/fibers.cc.o
FAILED: helio/util/fibers/CMakeFiles/fibers2.dir/fibers.cc.o
/usr/bin/g++ -DBOOST_ASIO_SEPARATE_COMPILATION -DBOOST_BEAST_SEPARATE_COMPILATION -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DGLOG_CUSTOM_PREFIX_SUPPORT -DUSE_FB2 -I/dragonfly -I/dragonfly/genfiles -I/dragonfly/src -I/dragonfly/helio -I/dragonfly/build-opt/_deps/glog-build -I/dragonfly/build-opt/_deps/glog-src/src -I/dragonfly/build-opt/_deps/abseil_cpp-src -isystem /dragonfly/build-opt/third_party/libs/xxhash/include -isystem /dragonfly/build-opt/third_party/libs/uring/include -isystem /usr/include/boost1.78 -isystem /dragonfly/build-opt/third_party/libs/cares/include -Wall -Wextra -g -fPIC -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -fno-omit-frame-pointer -Wno-unused-parameter -march=sandybridge -mtune=skylake  -std=c++17 -DHAS_RAWMEMCHR -fdiagnostics-color=always  -O3 -DNDEBUG  -std=gnu++17 -MD -MT helio/util/fibers/CMakeFiles/fibers2.dir/fibers.cc.o -MF helio/util/fibers/CMakeFiles/fibers2.dir/fibers.cc.o.d -o helio/util/fibers/CMakeFiles/fibers2.dir/fibers.cc.o -c /dragonfly/helio/util/fibers/fibers.cc
In file included from /dragonfly/helio/util/fibers/detail/fiber_interface.h:14,
                 from /dragonfly/helio/util/fibers/fibers.h:10,
                 from /dragonfly/helio/util/fibers/fibers.cc:5:
/dragonfly/helio/base/pmr/memory_resource.h:11:25: error: ‘pmr’ is not a namespace-name
 namespace PMR_NS = std::pmr;
                         ^~~
/dragonfly/helio/base/pmr/memory_resource.h:11:25: note: suggested alternative: ‘pair’
 namespace PMR_NS = std::pmr;
                         ^~~
                         pair
/dragonfly/helio/base/pmr/memory_resource.h:11:28: error: expected namespace-name before ‘;’ token
 namespace PMR_NS = std::pmr;
                            ^
In file included from /dragonfly/helio/util/fibers/fibers.h:10,
                 from /dragonfly/helio/util/fibers/fibers.cc:5:
/dragonfly/helio/util/fibers/detail/fiber_interface.h:30:23: error: ‘PMR_NS’ has not been declared
   FixedStackAllocator(PMR_NS::memory_resource* mr, std::size_t size = 64 * 1024)
                       ^~~~~~
/dragonfly/helio/util/fibers/detail/fiber_interface.h:30:46: error: expected ‘)’ before ‘*’ token
   FixedStackAllocator(PMR_NS::memory_resource* mr, std::size_t size = 64 * 1024)
                      ~                       ^
                                              )
/dragonfly/helio/util/fibers/detail/fiber_interface.h:48:3: error: ‘PMR_NS’ does not name a type
   PMR_NS::memory_resource* mr_;
   ^~~~~~
/dragonfly/helio/util/fibers/detail/fiber_interface.h: In member function ‘util::fb2::FixedStackAllocator::stack_context util::fb2::FixedStackAllocator::allocate()’:
/dragonfly/helio/util/fibers/detail/fiber_interface.h:35:16: error: ‘mr_’ was not declared in this scope
     void* vp = mr_->allocate(size_);
                ^~~
/dragonfly/helio/util/fibers/detail/fiber_interface.h: In member function ‘void util::fb2::FixedStackAllocator::deallocate(util::fb2::FixedStackAllocator::stack_context&)’:
/dragonfly/helio/util/fibers/detail/fiber_interface.h:44:5: error: ‘mr_’ was not declared in this scope
     mr_->deallocate(vp, sctx.size);
     ^~~
/dragonfly/helio/util/fibers/detail/fiber_interface.h: At global scope:
/dragonfly/helio/util/fibers/detail/fiber_interface.h:345:8: error: ‘PMR_NS’ does not name a type
 extern PMR_NS::memory_resource* default_stack_resource;
        ^~~~~~
In file included from /dragonfly/helio/util/fibers/fibers.cc:5:
/dragonfly/helio/util/fibers/fibers.h: In constructor ‘util::fb2::Fiber::Fiber(util::fb2::Launch, std::string_view, Fn&&, Arg&& ...)’:
/dragonfly/helio/util/fibers/fibers.h:39:23: error: ‘default_stack_resource’ is not a member of ‘util::fb2::detail’
       : impl_{detail::default_stack_resource
                       ^~~~~~~~~~~~~~~~~~~~~~
/dragonfly/helio/util/fibers/fibers.h:39:23: note: suggested alternative: ‘default_stack_size’
       : impl_{detail::default_stack_resource
                       ^~~~~~~~~~~~~~~~~~~~~~
                       default_stack_size
/dragonfly/helio/util/fibers/fibers.h:41:77: error: ‘default_stack_resource’ is not a member of ‘util::fb2::detail’
                                                 FixedStackAllocator(detail::default_stack_resource,
                                                                             ^~~~~~~~~~~~~~~~~~~~~~
/dragonfly/helio/util/fibers/fibers.h:41:77: note: suggested alternative: ‘default_stack_size’
                                                 FixedStackAllocator(detail::default_stack_resource,
                                                                             ^~~~~~~~~~~~~~~~~~~~~~
                                                                             default_stack_size
/dragonfly/helio/util/fibers/fibers.h: At global scope:
/dragonfly/helio/util/fibers/fibers.h:115:30: error: variable or field ‘SetDefaultStackResource’ declared void
 void SetDefaultStackResource(PMR_NS::memory_resource* mr, size_t default_size = 64 * 1024);
                              ^~~~~~
/dragonfly/helio/util/fibers/fibers.h:115:30: error: ‘PMR_NS’ has not been declared
/dragonfly/helio/util/fibers/fibers.h:115:55: error: ‘mr’ was not declared in this scope
 void SetDefaultStackResource(PMR_NS::memory_resource* mr, size_t default_size = 64 * 1024);
                                                       ^~
/dragonfly/helio/util/fibers/fibers.h:115:66: error: expected primary-expression before ‘default_size’
 void SetDefaultStackResource(PMR_NS::memory_resource* mr, size_t default_size = 64 * 1024);
                                                                  ^~~~~~~~~~~~
/dragonfly/helio/util/fibers/fibers.h:125:34: error: ‘PMR_NS’ has not been declared
 class StdMallocResource : public PMR_NS::memory_resource {
                                  ^~~~~~
/dragonfly/helio/util/fibers/fibers.h:125:42: error: expected ‘{’ before ‘memory_resource’
 class StdMallocResource : public PMR_NS::memory_resource {
                                          ^~~~~~~~~~~~~~~
/dragonfly/helio/util/fibers/fibers.h:126:2: error: expected primary-expression before ‘private’
  private:
  ^~~~~~~
/dragonfly/helio/util/fibers/fibers.h:126:2: error: expected ‘}’ before ‘private’
/dragonfly/helio/util/fibers/fibers.h:125:58: note: to match this ‘{’
 class StdMallocResource : public PMR_NS::memory_resource {
                                                          ^
/dragonfly/helio/util/fibers/fibers.h:129:70: error: virt-specifiers in ‘do_deallocate’ not allowed outside a class definition
   void do_deallocate(void* ptr, std::size_t size, std::size_t align) final;
                                                                      ^~~~~
/dragonfly/helio/util/fibers/fibers.h:131:26: error: ‘PMR_NS’ does not name a type
   bool do_is_equal(const PMR_NS::memory_resource& o) const noexcept final {
                          ^~~~~~
/dragonfly/helio/util/fibers/fibers.h:131:49: error: expected unqualified-id before ‘&’ token
   bool do_is_equal(const PMR_NS::memory_resource& o) const noexcept final {
                                                 ^
/dragonfly/helio/util/fibers/fibers.h:131:49: error: expected ‘)’ before ‘&’ token
   bool do_is_equal(const PMR_NS::memory_resource& o) const noexcept final {
                   ~                             ^
                                                 )
/dragonfly/helio/util/fibers/fibers.h:131:51: error: expected initializer before ‘o’
   bool do_is_equal(const PMR_NS::memory_resource& o) const noexcept final {
                                                   ^
/dragonfly/helio/util/fibers/fibers.h:136:8: error: ‘StdMallocResource’ does not name a type
 extern StdMallocResource std_malloc_resource;
        ^~~~~~~~~~~~~~~~~
/dragonfly/helio/util/fibers/fibers.h:140:41: error: ‘fb2’ does not name a type
 template <typename Fn, typename... Arg> fb2::Fiber MakeFiber(Fn&& fn, Arg&&... arg) {
                                         ^~~
/dragonfly/helio/util/fibers/fibers.h:145:1: error: ‘fb2’ does not name a type
 fb2::Fiber MakeFiber(fb2::Launch launch, Fn&& fn, Arg&&... arg) {
 ^~~
/dragonfly/helio/util/fibers/fibers.h: In function ‘void ThisFiber::SleepUntil(std::chrono::_V2::steady_clock::time_point)’:
/dragonfly/helio/util/fibers/fibers.h:153:3: error: ‘fb2’ has not been declared
   fb2::detail::FiberActive()->WaitUntil(tp);
   ^~~
/dragonfly/helio/util/fibers/fibers.h: In function ‘void ThisFiber::Yield()’:
/dragonfly/helio/util/fibers/fibers.h:157:3: error: ‘fb2’ has not been declared
   fb2::detail::FiberActive()->Yield();
   ^~~
/dragonfly/helio/util/fibers/fibers.h: In function ‘void ThisFiber::SetName(std::string_view)’:
/dragonfly/helio/util/fibers/fibers.h:166:3: error: ‘fb2’ has not been declared
   fb2::detail::FiberActive()->SetName(name);
   ^~~
/dragonfly/helio/util/fibers/fibers.h: In function ‘std::string_view ThisFiber::GetName()’:
/dragonfly/helio/util/fibers/fibers.h:170:10: error: ‘fb2’ has not been declared
   return fb2::detail::FiberActive()->name();
          ^~~
/dragonfly/helio/util/fibers/fibers.h: In constructor ‘FiberAtomicGuard::FiberAtomicGuard()’:
/dragonfly/helio/util/fibers/fibers.h:180:5: error: ‘fb2’ has not been declared
     fb2::detail::EnterFiberAtomicSection();
     ^~~
/dragonfly/helio/util/fibers/fibers.h: In destructor ‘FiberAtomicGuard::~FiberAtomicGuard()’:
/dragonfly/helio/util/fibers/fibers.h:184:5: error: ‘fb2’ has not been declared
     fb2::detail::LeaveFiberAtomicSection();
     ^~~
/dragonfly/helio/util/fibers/fibers.h: At global scope:
/dragonfly/helio/util/fibers/fibers.h:188:1: error: expected declaration before ‘}’ token
 }  // namespace util
 ^

@romange
Copy link
Collaborator

romange commented Jul 21, 2024 via email

@romange
Copy link
Collaborator

romange commented Aug 11, 2024

Feel free to reopen if you will have any progress with this.

@romange romange closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants