You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using cached moonbitlang/[email protected]
[================================--------] 8/10 done, 2/2 running
link-core: moonbitlang/x/fs
cc1: fatal error: ./fs/internal/ffi/native_stub.c: No such file or directory
compilation terminated.
cc1: fatal error: ./fs/internal/ffi/native_stub.c: No such file or directory
compilation terminated.
cc1: fatal error: ./sys/internal/ffi/native_stub.c: No such file or directory
compilation terminated.
Finished. moon: ran 10 tasks, now up to date
Solving the problem by modifing .mooncakes/moonbitlang/x/fs/moon.pkg.json and .mooncakes/moonbitlang/x/sys/moon.pkg.json
(See #586)
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Finished. moon: ran 2 tasks, now up to date
Expected Behavior
Linkage might only happens when compiling the main package.
Checklist
(Optional) My case is minimal enough to be reproducible.
The text was updated successfully, but these errors were encountered:
Bug Report
Environment
OS
Operating System: Debian 12
MoonBit CLI Tools Version
Steps to Reproduce
Same as the steps in this issue
Get:
Solving the problem by modifing
.mooncakes/moonbitlang/x/fs/moon.pkg.json
and.mooncakes/moonbitlang/x/sys/moon.pkg.json
(See #586)
Then compile again
Get error:
Expected Behavior
Linkage might only happens when compiling the main package.
Checklist
The text was updated successfully, but these errors were encountered: