stddef not found

74 views
Skip to first unread message

Sammy Joe Osborne

unread,
Nov 5, 2015, 12:01:44 PM11/5/15
to emscripten-discuss
I'm on a windows 8 machine, trying to compile Google's Liquidfun library.
I run emmake make from the emscripten command prompt, but its reporting that it can't find the stddef.h (or any other standard C libraries).

I know these files are kept in emscripten\1.34.1\system\lib, but I don't know how to tell emscripten to point there. I read something about setting LIBRARY_PATH or LD_LIBRARY_PATH.
If this would take care of the issue, where/how do I go about setting those variables?

Flix

unread,
Nov 5, 2015, 1:16:27 PM11/5/15
to emscripten-discuss
First of all, I'm a newbie, so I don't knwow if I'll be helpful...
However,

stddef.h is on my system in ".../emsdk/emscripten/tag-1.34.1/system/include/libc"

If you have configured emsdk correctly, it should find it.

I suggest that in the command line, you set your PATH environment variable correctly before running emmake.

Actually I'm on Linux (another reason why I don't think I'll be very helpful). On Linux I have to write something like:
export PATH=/.../emsdk:.../emsdk/clang/tag-e1.34.1/build_tag-e1.34.1_64/bin:/.../emsdk/emscripten/tag-1.34.1:$PATH

However in my emsdk folder there's a script called emsdk_set_env.sh that should do the same.

Sammy Joe Osborne

unread,
Nov 5, 2015, 2:16:18 PM11/5/15
to emscripten-discuss
When you say if I have configured emsdk correctly, what is it I need to configure? Or what path needs to be added to my PATH, the path directly to the libc folder?
I'll give this a go when I get home tonight.

Thanks for the help!

Flix

unread,
Nov 5, 2015, 2:36:20 PM11/5/15
to emscripten-discuss

When you say if I have configured emsdk correctly, what is it I need to configure? Or what path needs to be added to my PATH, the path directly to the libc folder?
I'll give this a go when I get home tonight.

No, you should just try:
emcc -v
And it should not output any error (provided that it finds emcc, but you say you can launch emmake, so it should work.

Sammy Joe Osborne

unread,
Nov 5, 2015, 2:46:20 PM11/5/15
to emscripte...@googlegroups.com
Yea, my emcc -v runs the sanity check and such fine, no errors. I'll try a few things when I'm home and report back.

--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/Rk-zWwb-iGw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nicolas Gailly

unread,
Dec 22, 2017, 5:11:39 AM12/22/17
to emscripten-discuss


Le jeudi 5 novembre 2015 20:46:20 UTC+1, Sammy Joe Osborne a écrit :
Yea, my emcc -v runs the sanity check and such fine, no errors. I'll try a few things when I'm home and report back.

I'm running into the same issue on Linux as well. My emcc -v reports fine, my PATH is correct but when I'm trying to compile GMP I still get the error as "stddef.h" is not found.
Have you resolved this issue ?
 

On Thu, Nov 5, 2015 at 1:36 PM, Flix <filma...@gmail.com> wrote:

When you say if I have configured emsdk correctly, what is it I need to configure? Or what path needs to be added to my PATH, the path directly to the libc folder?
I'll give this a go when I get home tonight.

No, you should just try:
emcc -v
And it should not output any error (provided that it finds emcc, but you say you can launch emmake, so it should work.

--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/Rk-zWwb-iGw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-discuss+unsub...@googlegroups.com.

Jukka Jylänki

unread,
Dec 22, 2017, 8:23:10 AM12/22/17
to emscripte...@googlegroups.com
stddef.h is located at
https://github.com/kripken/emscripten/blob/incoming/system/include/libc/stddef.h,
which is a built-in "system" include directory when building with
Emscripten, so no -I command line directives are needed. This sounds
like something in the GMP build system to take a look more
specifically?
>>> emscripten-disc...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to emscripten-disc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages