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 fail in gcc12/gcc13 debian #5807

Closed
769344359 opened this issue Jan 19, 2024 · 0 comments
Closed

compile fail in gcc12/gcc13 debian #5807

769344359 opened this issue Jan 19, 2024 · 0 comments
Assignees
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected

Comments

@769344359
Copy link
Contributor

Please check the FAQ documentation before raising an issue

Describe the bug (required)

/home/debian/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;
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/debian/nebula/src/common/memory/MemoryTracker.h:32:23: note: suggested alternatives:
In file included from /usr/include/c++/13/bits/new_allocator.h:34,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/memory:65,
                 from /home/debian/nebula/build/third-party/install/include/thrift/lib/cpp2/gen/module_metadata_cpp.h:19,
                 from /home/debian/nebula/build/src/interface/gen-cpp2/storage_metadata.cpp:7:
/usr/include/c++/13/new:212:27: note:   ‘std::hardware_destructive_interference_size’

Your Environments (required)

  • OS: Linux debian 6.5.0-5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.13-1 (2023-11-29) x86_64 GNU/Linux
  • Compiler: gcc version 13.2.0 (Debian 13.2.0-9)
  • CPU: lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         39 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  12
  On-line CPU(s) list:   0-11
Vendor ID:               GenuineIntel
  Model name:            11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz
    CPU family:          6
    Model:               167
    Thread(s) per core:  2
    Core(s) per socket:  6
    Socket(s):           1
    Stepping:            1
    CPU(s) scaling MHz:  38%
    CPU max MHz:         4400.0000
    CPU min MHz:         800.0000
    BogoMIPS:            5184.00
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf ts
                         c_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs i
                         bpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx avx512f avx512dq rdseed adx smap avx512ifma clflushopt intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 
                         xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm md_clear flush_l1d arch_capabilities
Virtualization features: 
  Virtualization:        VT-x
Caches (sum of all):     
  L1d:                   288 KiB (6 instances)
  L1i:                   192 KiB (6 instances)
  L2:                    3 MiB (6 instances)
  L3:                    12 MiB (1 instance)
NUMA:                    
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-11
Vulnerabilities:         
  Gather data sampling:  Mitigation; Microcode
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Mitigation; Clear CPU buffers; SMT vulnerable
  Retbleed:              Mitigation; Enhanced IBRS
  Spec rstack overflow:  Not affected
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Enhanced / Automatic IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
  Srbds:                 Not affected
  Tsx async abort:       Not affected
  • Commit id (e.g. a3ffc7d8)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Step 1
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nebula -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Debug ..
  1. Step 2
make

gcc compile fail

/home/debian/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;
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/debian/nebula/src/common/memory/MemoryTracker.h:32:23: note: suggested alternatives:
In file included from /usr/include/c++/13/bits/new_allocator.h:34,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/memory:65,
                 from /home/debian/nebula/build/third-party/install/include/thrift/lib/cpp2/gen/module_metadata_cpp.h:19,
                 from /home/debian/nebula/build/src/interface/gen-cpp2/storage_metadata.cpp:7:
/usr/include/c++/13/new:212:27: note:   ‘std::hardware_destructive_interference_size’

Expected behavior

Additional context

@769344359 769344359 added the type/bug Type: something is unexpected label Jan 19, 2024
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Jan 19, 2024
@769344359 769344359 mentioned this issue Jan 19, 2024
11 tasks
@github-actions github-actions bot added the process/fixed Process of bug label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

2 participants