c++ - Fedora 22 - compile - __atomic_is_lock_free -


i try compile software (supercollider) on fedora 22 run problem:

libsupernova.a(server.cpp.o): in function `std::atomic<boost::lockfree::detail::tagged_index>::is_lock_free() const': /usr/include/c++/5.1.1/atomic:212: undefined reference `__atomic_is_lock_free' collect2: error: ld returned 1 exit status server/supernova/cmakefiles/supernova.dir/build.make:96: recipe target 'server/supernova/supernova' failed make[2]: *** [server/supernova/supernova] error 1 cmakefiles/makefile2:3383: recipe target 'server/supernova/cmakefiles/supernova.dir/all' failed make[1]: *** [server/supernova/cmakefiles/supernova.dir/all] error 2 makefile:146: recipe target 'all' failed make: *** [all] error 2 

it seems me problem libatomic. possible gcc not link libatomic?

does have idea on how solve problem?

another idea try install -latomic, cannot find information about. instead installed libatomic. don't know if same.

i ran same issue, , yes need link libatomic. way add line: set(cmake_cxx_link_flags "${cmake_cxx_link_flags} -latomic") top level cmakelists.txt file before running cmake.

the full flow might this:

  • git clone https://github.com/supercollider/supercollider.git
  • cd supercollider
  • add set(cmake_cxx_link_flags "${cmake_cxx_link_flags} -latomic") top level cmakelists.txt
  • run ccmake . configure install
  • mkdir _build ; cd _build
  • cmake ..
  • make && <sudo> make install

you may or may not need sudo depending on have decided install supercollider.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -