-
Hello, I am trying to compile my rust code to the target The weird thing is, there is no My command (Actually, it is a compiler-generated command.)
The full error
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
emcc should also build these libraries if they don't exist already and it should also take care of building these libraries before using them. In this case you are building a SIDE_MODULE, and under emscirpten anyway, these do not require linking with system libraries such as libc. However, you build system (maybe python's build system) has added I see several possible solutions:
To get something working quickly I think (1) is your best bet. In the long term I think maybe (3) is that right thing to do. |
Beta Was this translation helpful? Give feedback.
libc-debug.a
is the debug version oflibc.a
.. the compiler adds this and other standard libraries to the link line for you.emcc should also build these libraries if they don't exist already and it should also take care of building these libraries before using them.
In this case you are building a SIDE_MODULE, and under emscirpten anyway, these do not require linking with system libraries such as libc.
However, you build system (maybe python's build system) has added
-lc
to the command line... this argument gets translated into-lc-debug
when building with assertions enabled.I see several possible solutions:
-lc
from your command line-lc
->-lc…