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

use rebar3 cannot to compile #233

Open
Garffery opened this issue Apr 6, 2024 · 5 comments
Open

use rebar3 cannot to compile #233

Garffery opened this issue Apr 6, 2024 · 5 comments

Comments

@Garffery
Copy link

Garffery commented Apr 6, 2024

i cannot compile project when use jiffy by rebar3.the wrong message is that cannot find the assert.h

@nickva
Copy link
Collaborator

nickva commented Jun 11, 2024

I wonder if it's related to #215 (comment)?

Are you compiling it on Windows, by chance?

@neelima32
Copy link

I cannot compile on MacOS M1 (rebar3):

c_src/decoder.c:4:10: fatal error: 'assert.h' file not found
4 | #include <assert.h>
| ^~~~~~~~~~
1 error generated.

@nickva
Copy link
Collaborator

nickva commented Oct 22, 2024

Do you have a C compiler installed? assert.h is a basic C standard library header file.

@neelima32
Copy link

Yes, I do. Initially, I thought the include directories may not have been specified but another library does pick up include files from the Xcode SDKs with the paths as is (stdbool.h, for example).

cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/
find . -name "assert.h"
./usr/include/assert.h
./System/Library/Frameworks/Kernel.framework/Versions/A/Headers/kern/assert.h
./System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/assert.h

@neelima32
Copy link

Never mind, it is related to the include paths and I'm able to get past the particular error by specifying -I ${OSX_SYSROOT}/usr/include".

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

3 participants