[mlpack-git] [mlpack] Add mlpack::backtrace utility. (#535)

Grzegorz Krajewski notifications at github.com
Thu Mar 3 16:06:56 EST 2016


Part You pointed in code is done.

Second thing:
> I think that this has been tested on OS X and is known to not work, so maybe we disable HAS_BFD_DL in the CMake configuration if we are on OS X? Either way we should be sure that compilation works out-of-the-box on OS X.

Disabling ```HAS_BFD_DL``` is temporary but good idea at the moment. Tomorrow I should take care about this.<br>
But in near future it has to be done properly. @zoq did some research about compiling ```mlpack::backtrace``` in OS X. There is also problem with dependencies in binutils.
> [Friday, December 11, 2015] [09:15:03 PM] <zoq>	Okay, it turns out that if you install binutils using homebrew it doesn't come with libiberty because of 'https://github.com/Homebrew/homebrew/pull/35881'.
> [Friday, December 11, 2015] [09:15:17 PM] <zoq>	 Unfortunately there is no brew formula for libiberty. So you need to install it manually. Afterwards, you can link against '-liberty'.
> [Friday, December 11, 2015] [09:15:30 PM] <zoq>	 Unfortunately there is no brew formula for libiberty. So you need to install it manually. Afterwards, you can link against '-liberty'. But now it turns out you also need to link against libintl which comes with the gettext package. Turns out gettext ships with OS X (default). So my gettext package conflicts with the default version.
> [Friday, December 11, 2015] [09:15:44 PM] <zoq>	 No problem adjust the path and we are fine. At the end we can link against the lib '-lintl'.
> [Friday, December 11, 2015] [09:15:52 PM] <zoq>	Now the source code build fine, but prints an error message 'Failed to open executable! : No such file or directory'. On OS X there is no '/proc/self/exe', any ideas?

So my next step is to prevent building ```mlpack::backtrace``` in OS X and FreeBSD. This should help for a while. Later on I will just work on extending this feature for other platforms.

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/535#issuecomment-191963007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160303/d236b918/attachment-0001.html>


More information about the mlpack-git mailing list