Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libstuff/libstuff.h:7:10: fatal error: execinfo.h: No such file or directory #644

Open
jicman opened this issue May 20, 2019 · 1 comment

Comments

@jicman
Copy link

jicman commented May 20, 2019

Greetings.

Trying to build BedrockDB within the cygwin environment. I am getting this error,

[clip]
CC x509/cert_req.c
CC x509/cert_write.c
CC x509/req_app.c
make[2]: Leaving directory '/home/e608313/builds/Bedrock/mbedtls/programs'
make[1]: Leaving directory '/home/e608313/builds/Bedrock/mbedtls'
g++ -g -std=c++14 -fpic -O2 -Wall -Werror -Wformat-security -DGIT_REVISION=f6d58b9 -I/home/e608313/builds/Bedrock -I/home/e608313/builds/Bedrock/mbedtls/include -MMD -MF libstuff/libstuff.d -MT libstuff/libstuff.h.gch -c libstuff/libstuff.h
libstuff/libstuff.h:7:10: fatal error: execinfo.h: No such file or directory
#include <execinfo.h> // for backtrace
^~~~~~~~~~~~
compilation terminated.
make: *** No rule to make target 'libstuff/libstuff.d', needed by '.build/libstuff/libstuff.d'. Stop.

I know that I can comment that line out, and continue, but I think that maybe a check for cygwin may be placed in here and be able to replace the code for cygwin or just bypass it. Thanks.

josé

@jicman
Copy link
Author

jicman commented May 22, 2019

A simple,

+#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
+#endif
+

should work for people building this outside Linux. Thanks.

josé

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant