Skip to Content.
Sympa Menu

opal - Re: [Opal] boost for OPAL

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] boost for OPAL


Chronological Thread 
  • From: Achim Gsell <achim.gsell AT psi.ch>
  • To: Nicole Neveu <nneveu AT hawk.iit.edu>
  • Cc: opal <opal AT lists.psi.ch>
  • Subject: Re: [Opal] boost for OPAL
  • Date: Wed, 28 Feb 2018 09:53:10 +0100

Hi Nicole

On 27 Feb 2018, at 23:08, Nicole Neveu <nneveu AT hawk.iit.edu> wrote:

Going to gcc 7.2 almost got me there (made it 100% - Linking executable).
Now it's failing at the link step.

I wonder if it has to do with this cmake warning:
 Manually-specified variables were not used by the project:

    BUILD_LIBOPAL
    USE_H5HUT2

When I use ccmake to manually check what those env vars are set to, they match the cmake command (by default?). 
Here's the cmake command:
CXX=mpiicpc CC=mpiicc cmake \
 -DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}" \
 -DCMAKE_BUILD_TYPE:STRING=Release \
 -DUSE_H5HUT2:BOOL=ON \
 -DENABLE_DKS:BOOL=OFF \
 -DENABLE_IPPLTESTS:BOOL=FALSE \
 -DENABLE_SAAMG_SOLVER:BOOL=FALSE \
 -DDBG_SCALARFIELD:BOOL=OFF \
 -DDBG_STENCIL:BOOL=OFF \
 -DBUILD_LIBOPAL:BOOL=OFF \
 -DNO_FIELD_ASSIGN_OPTIMIZATION:BOOL=OFF \
 -DBUILD_OPAL_UNIT_TESTS:BOOL=OFF  "${SRC_DIR}/$P/src"

The errors point to gnu_cxx:
Attributes.cpp:(.text+0x340d): undefined reference to `boost::re_detail_106400::perl_matcher<__gnu_cxx::__normal_iterator<char const*,.........

Maybe I need to explicitly link to a gnu library?

No. This symbol should be in 'libboost_regex'.

Did you compile boost yourself? Which compiler has been used to compile boost? Which boost version are you using? 1.64.0 should work.

Best

Achim


Thanks, 

Nicole

On Tue, Feb 27, 2018 at 10:02 AM, Nicole Neveu <nneveu AT hawk.iit.edu> wrote:
Hi Everyone, 

Thanks for the great information. 

@Achim, you were exactly right! The default gcc is 4.85!
I will try building with a newer version now.

And special thanks for all the great build instruction on the wiki!

Nicole

On Tue, Feb 27, 2018 at 7:50 AM, Achim Gsell <achim.gsell AT psi.ch> wrote:
Hi Nicole

On 24 Feb 2018, at 01:21, Nicole Neveu <nneveu AT hawk.iit.edu> wrote:

Can OPAL be compiled with boost 1.64 on linux?
Has anyone tried that?

At present boost 1.64 is the recommended version! A toolchain with current versions is under testing. This will include boost 1.66.0.

I'm getting a lot of warnings when building boost 1.62.
I would ignore them since they are warnings, but I get boost errors when compiling opal (during make).

There is something you must have in mind when compiling with Intel compiler: the Intel compiler does NOT include a STL implementation. STL is taken from the gcc  found in the path! If you have an old gcc in your PATH, it is very likely that you get lot of warnings and/or errors!

Check with the command "which gcc" which gcc is used. Get the version of used gcc with "gcc -v". gcc should be at least version 5.x.y.

Best

Achim





Paul Scherrer Institut
WHGA/U136
CH-5232 Villigen PSI
+41 56 310 36 74




Archive powered by MHonArc 2.6.19.

Top of Page