Skip to content

Fails to Compile on Ubuntu-18.04 #6

@barnsza

Description

@barnsza

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```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions