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

Build failure w/ LLVM 10 #6

Open
eugeneswalker opened this issue May 22, 2020 · 1 comment
Open

Build failure w/ LLVM 10 #6

eugeneswalker opened this issue May 22, 2020 · 1 comment

Comments

@eugeneswalker
Copy link

Trying to build faodel 1.1906.1 with LLVM 10 on Ubuntu 18.04 for x86_64 fails with this error:

/tmp/root/spack-stage/spack-stage-faodel-1.1906.1-qtpc4h53tqs7pq5dpw4v5fncvqx5rkqn/spack-src/src/kelpie/pools/DHTPool/DHTPool.cpp:232:75: error: a lambda parameter cannot shadow an explicitly captured entity
                 [&key, &returned_ldo, &cv, &is_found] (bool success, Key key, lunasa::DataObject result_ldo,
...
src/kelpie/CMakeFiles/kelpie.dir/build.make:381: recipe for target 'src/kelpie/CMakeFiles/kelpie.dir/pools/DHTPool/DHTPool.cpp.o' failed
make[2]: *** [src/kelpie/CMakeFiles/kelpie.dir/pools/DHTPool/DHTPool.cpp.o] Error 1

My cmake args:

-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTS:BOOL=ON
-DBOOST_ROOT:PATH=/opt/spack/opt/spack/linux-ubuntu18.04-x86_64/clang-11.0.0/boost-1.72.0-3ztuhn7vlvh2f3zqeoalp2esfkr45xuj
-DGTEST_ROOT:PATH=/opt/spack/opt/spack/linux-ubuntu18.04-x86_64/clang-11.0.0/googletest-1.10.0-qenctivumu3p7y4nbhvhpdyudxf66nyp
-DBUILD_DOCS:BOOL=OFF
-DFaodel_ENABLE_IOM_HDF5:BOOL=OFF
-DFaodel_ENABLE_IOM_LEVELDB:BOOL=OFF
-DFaodel_ENABLE_MPI_SUPPORT:BOOL=ON
-DFaodel_ENABLE_TCMALLOC:BOOL=ON
-DFaodel_LOGGING_METHOD:STRING=stdout 
-DFaodel_NETWORK_LIBRARY:STRING=nnti
-DFaodel_ENABLE_CEREAL:BOOL=OFF

Full build log:
spack-build-out.txt

@craigulmer
Copy link
Collaborator

Confirmed- there's a variable in a capture list that shouldn't be there that's causing build errors.

I've pushed a fix into master. Please let me know if you still get this error.

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

2 participants