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 error: ‘hardware_destructive_interference_size’ was not declared in this scope #5537

Open
playgithub opened this issue May 5, 2023 · 1 comment
Labels
type/question Type: question about the product

Comments

@playgithub
Copy link

playgithub commented May 5, 2023

Env

  • nebula: 3.4.1
  • OS: Manjaro
  • g++ (GCC) 12.2.1 20230201
  • gcc (GCC) 12.2.1 20230201

Reproduce

  1. Follow the doc at https://docs.nebula-graph.io/3.4.1/4.deployment-and-installation/2.compile-and-install-nebula-graph/1.install-nebula-graph-by-compiling-the-source-code/

  2. Step 5 (Compile NebulaGraph) fails:

    nebula/src/common/memory/MemoryTracker.h:32:23: error: ‘hardware_destructive_interference_size’ was not declared in this scope
    32 |     CACHE_LINE_SIZE = hardware_destructive_interference_size;
    

    BTW, Step 2 (i.e. run install-third-party.sh) fails, because it need root to write in /opt.

More Info

By defining "CMAKE_CXX_STANDARD=C++17" for cmake, it still fails the same way.

@QingZ11 QingZ11 added the type/question Type: question about the product label May 6, 2023
@Shinji-IkariG
Copy link
Contributor

On atypical distributions, you need to build nebula-thrid-party for the current platform before compiling nebula.
In addition, this issue may be due to huge differences in memory management between different distributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

3 participants