Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
S src
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • src
  • Issues
  • #420

Closed
Open
Created Jan 08, 2020 by snuverink_j@snuverink_jDeveloper

boost linker error that use boost_timer library

For some of the test applications I get a boost linker error:

[ 19%] Linking CXX executable TestFFT
../../src/libippl.a(Timer.cpp.o): In function `Timer::Timer()':
Timer.cpp:(.text+0x9): undefined reference to `boost::timer::cpu_timer::start()'
../../src/libippl.a(Timer.cpp.o): In function `Timer::stop()':
Timer.cpp:(.text+0x71): undefined reference to `boost::timer::cpu_timer::stop()'
Timer.cpp:(.text+0x7c): undefined reference to `boost::timer::cpu_timer::elapsed() const'
../../src/libippl.a(Timer.cpp.o): In function `Timer::start()':
Timer.cpp:(.text+0x55): undefined reference to `boost::timer::cpu_timer::start()'
collect2: error: ld returned 1 exit status
make[2]: *** [ippl/test/FFT/TestFFT] Error 1
make[1]: *** [ippl/test/FFT/CMakeFiles/TestFFT.dir/all] Error 2

This was with the recommended module list:

Currently Loaded Modulefiles:
  1) cmake/3.10.3            4) boost/1.68.0            7) gsl/2.5                10) opal-toolchain/master
  2) gcc/7.3.0               5) hdf5/1.10.4             8) trilinos/12.12.1
  3) openmpi/3.1.3           6) H5hut/2.0.0rc5          9) OpenBLAS/0.2.20

This can be fixed by linking to the boost_timer library.

Assignee
Assign to
OPAL 2.4.0
Milestone
OPAL 2.4.0 (Past due)
Assign milestone
Time tracking