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

Compile errors on archlinux host #1296

Closed
fish4terrisa-MSDSM opened this issue Jan 10, 2024 · 1 comment
Closed

Compile errors on archlinux host #1296

fish4terrisa-MSDSM opened this issue Jan 10, 2024 · 1 comment

Comments

@fish4terrisa-MSDSM
Copy link

I got errors on archlinux host with gcc (GCC) 13.2.1 20230801 :

In file included from /usr/include/boost/container_hash/is_described_class.hpp:11,
                 from /usr/include/boost/container_hash/hash.hpp:18,
                 from /usr/include/boost/functional/hash/hash.hpp:6,
                 from /usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:53,
                 from /usr/include/boost/dynamic_bitset.hpp:15,
                 from core/mempool.cc:34:
/usr/include/boost/describe/members.hpp:78:42: 错误:expected unqualified-id before ‘=’ token
   78 |         static constexpr unsigned hidden = name_is_hidden<D, L>::value? mod_hidden: 0;
      |                                          ^
In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++config.h:679,
                 from /usr/include/c++/13.2.1/cstdint:38,
                 from include/osv/mempool.hh:11,
                 from core/mempool.cc:8:
/usr/include/boost/describe/members.hpp:85:101: 错误:expected primary-expression before ‘__attribute__’
   85 |         static constexpr unsigned modifiers = ( mods & ~mod_any_access ) | access | mod_inherited | hidden;
      |                                                                                                     ^~~~~~
/usr/include/boost/describe/members.hpp:85:99: 错误:expected ‘;’ at end of member declaration
   85 |         static constexpr unsigned modifiers = ( mods & ~mod_any_access ) | access | mod_inherited | hidden;
      |                                                                                                   ^
      |                                                                                                    ;
make: *** [Makefile:390:build/release.x64/core/mempool.o] 错误 1

Does any know how to fix it?

@fish4terrisa-MSDSM
Copy link
Author

It seems to be a problem of boost. Sorry for bothering you.

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

1 participant