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

Mac OS - Unable to build fluent-bit due to math.h library #1407

Closed
iamshreeram opened this issue Jun 26, 2019 · 3 comments
Closed

Mac OS - Unable to build fluent-bit due to math.h library #1407

iamshreeram opened this issue Jun 26, 2019 · 3 comments

Comments

@iamshreeram
Copy link

iamshreeram commented Jun 26, 2019

Bug Report

Describe the bug
Unable to build fluent-bit. Seeing below error when compiling the source code with make

To Reproduce

  • When compiling the project with make. Compilation fail with below error
==== Building LuaJIT 2.1.0-beta3 ====
HOSTCC    host/minilua.o
host/minilua.c:34:10: fatal error: 'math.h' file not found
#include <math.h>
         ^~~~~~~~
1 error generated.
make[4]: *** [host/minilua.o] Error 1
make[3]: *** [default] Error 2
make[2]: *** [luajit-prefix/src/luajit-stamp/luajit-build] Error 2
make[1]: *** [CMakeFiles/luajit.dir/all] Error 2
make: *** [all] Error 2

Expected behavior

Linking C executable ../bin/fluent-bit
[100%] Built target fluent-bit-bin

Your Environment

  • Version used: 10.14.5 (18F132)
  • Configuration: 16GB RAM intel core i7
  • Server type and version: MacOS Laptop
  • Operating System and version: macOS Mojave
  • Filters and plugins: N/A
@fujimotos
Copy link
Member

Check the following threads:

In short, XCode not provide /usr/include by default anymore since Mojave.
You just need to install the following package manually, and the bug should
be gone.

/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14. pkg

@iamshreeram
Copy link
Author

@fujimotos , Thank you! I will try and get back..

Note : For people who want to install fluent-bit on mac, brew install fluent-bit works.. This issue is only when compiling the source code.

@edsiper
Copy link
Member

edsiper commented Jul 3, 2019

thanks both for reporting and addressing the issue. Closing the ticket.

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

No branches or pull requests

3 participants