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

latest LLVM will not compile TwoPaCo #33

Open
dslarm opened this issue Oct 22, 2024 · 0 comments
Open

latest LLVM will not compile TwoPaCo #33

dslarm opened this issue Oct 22, 2024 · 0 comments

Comments

@dslarm
Copy link

dslarm commented Oct 22, 2024

Using LLVM 19.1.0 or ACfL 24.10 (which is built on top of) results in errors compiling due to deleted atomic operator in candidateoccurence.h. The compiler has become more strict on C++ standards.

In particular, we see:

cd /home/rocky/salmon/build_acfl/external/pufferfish/external/twopaco/graphconstructor && armclang++  -I/home/rocky/salmon/external/pufferfish/external/twopaco/graphconstructor -I/home/rocky/salmon/external/install/include -I/home/rocky/salmon/external/pufferfish/external/twopaco/graphconstructor/../common -O3 -DNDEBUG  -fsigned-char -MD -MT external/pufferfish/external/twopaco/graphconstructor/CMakeFiles/twopaco.dir/constructor.cpp.o -MF CMakeFiles/twopaco.dir/constructor.cpp.o.d -o CMakeFiles/twopaco.dir/constructor.cpp.o -c /home/rocky/salmon/external/pufferfish/external/twopaco/graphconstructor/constructor.cpp -std=c++14
In file included from /home/rocky/salmon/external/pufferfish/external/twopaco/graphconstructor/constructor.cpp:22:
In file included from /home/rocky/salmon/external/pufferfish/external/twopaco/graphconstructor/assemblyedgeconstructor.h:4:
In file included from /home/rocky/salmon/external/pufferfish/external/twopaco/graphconstructor/vertexenumerator.h:25:
/home/rocky/salmon/external/pufferfish/external/twopaco/graphconstructor/candidateoccurence.h:61:11: error: overload resolution selected deleted operator '='
   61 |                         count_ = toCopy.count_;
      |                         ~~~~~~ ^ ~~~~~~~~~~~~~
/opt/arm/gcc-14.2.0_RHEL-9/lib/gcc/aarch64-linux-gnu/14.2.0/../../../../include/c++/14.2.0/atomic:904:15: note: candidate function has been explicitly deleted
  904 |       atomic& operator=(const atomic&) = delete;
      |               ^
/opt/arm/gcc-14.2.0_RHEL-9/lib/gcc/aarch64-linux-gnu/14.2.0/../../../../include/c++/14.2.0/atomic:905:15: note: candidate function has been explicitly deleted
  905 |       atomic& operator=(const atomic&) volatile = delete;
      |               ^
/opt/arm/gcc-14.2.0_RHEL-9/lib/gcc/aarch64-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/atomic_base.h:354:22: note: candidate function has been explicitly deleted
  354 |       __atomic_base& operator=(const __atomic_base&) = delete;
      |                      ^
/opt/arm/gcc-14.2.0_RHEL-9/lib/gcc/aarch64-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/atomic_base.h:355:22: note: candidate function has been explicitly deleted
  355 |       __atomic_base& operator=(const __atomic_base&) volatile = delete;
      |                      ^
/opt/arm/gcc-14.2.0_RHEL-9/lib/gcc/aarch64-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/atomic_base.h:367:7: note: candidate function
  367 |       operator=(__int_type __i) noexcept
      |       ^
/opt/arm/gcc-14.2.0_RHEL-9/lib/gcc/aarch64-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/atomic_base.h:374:7: note: candidate function
  374 |       operator=(__int_type __i) volatile noexcept
      |       ^
1 error generated.

This can be resolved by changing the right hand side of line 61 to use the load method of toCopy.count_ to get its value instead.

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