jiffy icon indicating copy to clipboard operation
jiffy copied to clipboard

use rebar3 cannot to compile

Open Garffery opened this issue 10 months ago • 5 comments

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

Garffery avatar Apr 06 '24 08:04 Garffery

I wonder if it's related to https://github.com/davisp/jiffy/issues/215#issuecomment-2161609879?

Are you compiling it on Windows, by chance?

nickva avatar Jun 11 '24 21:06 nickva

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.

neelima32 avatar Oct 22 '24 23:10 neelima32

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

nickva avatar Oct 22 '24 23:10 nickva

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 avatar Oct 23 '24 00:10 neelima32

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".

neelima32 avatar Oct 23 '24 01:10 neelima32