[mlpack-git] [mlpack] Compiling on Archlinux (#574)
Daniel Clarke
notifications at github.com
Tue Mar 15 11:24:06 EDT 2016
I had the following error while compiling:
In file included from src/mlpack/core/util/backtrace.cpp:22:0:
/usr/include/bfd.h:35:2: error: #error config.h must be included before this header
#error config.h must be included before this header
^
src/mlpack/CMakeFiles/mlpack.dir/build.make:398: recipe for target 'src/mlpack/CMakeFiles/mlpack.dir/core/util/backtrace.cpp.o' failed
make[2]: *** [src/mlpack/CMakeFiles/mlpack.dir/core/util/backtrace.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:206: recipe for target 'src/mlpack/CMakeFiles/mlpack.dir/all' failed
make[1]: *** [src/mlpack/CMakeFiles/mlpack.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
I fixed it by adding to CMakeLists:
add_definitions(-DPACKAGE)
add_definitions(-DPACKAGE_VERSION)
This will probably happen to everyone with a new enough binutils; fix from https://bbs.archlinux.org/viewtopic.php?pid=1430683#p1430683
This could probably be fixed harmlessly by populating those defines with mlpack's info.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/574
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160315/c1806722/attachment.html>
More information about the mlpack-git
mailing list