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

Fails to Compile on Ubuntu-18.04 #6

Open
barnsza opened this issue Jun 1, 2021 · 1 comment
Open

Fails to Compile on Ubuntu-18.04 #6

barnsza opened this issue Jun 1, 2021 · 1 comment

Comments

@barnsza
Copy link

barnsza commented Jun 1, 2021

I tried building LGL on Ubuntu 18.04, and it seems to fail with the below errors. I'm not really familiar with boost, so I don't know where to start debugging. Any ideas?

make -C Java jarfiles
make[1]: Entering directory '/home/<redacted>/LGL/Java'
make[1]: Nothing to be done for 'jarfiles'.
make[1]: Leaving directory '/home/<redacted>/LGL/Java'
make -C src all
make[1]: Entering directory '/home/<redacted>/LGL/src'
c++ -I../include -c -std=c++11 -Wall -O3 -ftemplate-depth=100 -g -DBOOST_ALLOW_DEPRECATED_HEADERS lglayout.C
c++ -I../include -c -std=c++11 -Wall -O3 -ftemplate-depth=100 -g -DBOOST_ALLOW_DEPRECATED_HEADERS calcFuncs.C
In file included from ../include/particle.hpp:28:0,
                 from ../include/particleInteractionHandler.hpp:32,
                 from calcFuncs.C:27:
../include/fixedVec.hpp: In instantiation of ‘void FixedVec<T, dimension_>::operator+=(const FixedVec<U, dimension_>&) [with U = float; T = boost::atomics::atomic<float>; unsigned int dimension_ = 3]’:
../include/particle.hpp:109:40:   required from ‘void Particle<prec_, dimension_>::add2F(const vec_type&) [with prec_ = float; unsigned int dimension_ = 3; Particle<prec_, dimension_>::vec_type = FixedVec<float, 3>]’
../include/particleInteractionHandler.hpp:232:8:   required from ‘void ParticleInteractionHandler<Particle>::springRepulsiveInteraction(Particle&, Particle&) const [with Particle = Particle<float, 3>]’
calcFuncs.C:163:42:   required from here
../include/fixedVec.hpp:189:16: error: no match for ‘operator+=’ (operand types are ‘boost::atomics::atomic<float>’ and ‘FixedVec<float, 3>::prec_ {aka float}’)
       orig[ii] += p2[ii];
       ~~~~~~~~~^~~~~~
Makefile:30: recipe for target 'calcFuncs.o' failed
make[1]: *** [calcFuncs.o] Error 1
make[1]: Leaving directory '/home/<redacted>/LGL/src'
Makefile:11: recipe for target 'all' failed
make: *** [all] Error 2```
@clairemcwhite
Copy link

clairemcwhite commented Feb 14, 2022

I got the same error, but can compile LGL from https://github.com/flindeberg/LGL

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