[Bug] CI `Build C` task compile error: `[makefile:81: librmb.a] Error 9`
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 658
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 52
Description
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
### Environment
Linux
### EventMesh version
master
### What happened
CI `Build C` task encountered an error during the compilation process when executing the `makefile`.
The error log can be found here: https://github.com/Pil0tXia/eventmesh/actions/runs/7506142011/job/20436880958.
### How to reproduce
Checkout submodules and run `Build C` CI task.
### Debug logs
```
Building src/message_log_api.o src/rmb_access_config.o src/rmb_cfg.o src/rmb_context.o src/rmb_errno.o src/rmb_http_client.o src/rmb_log.o src/rmb_mq.o src/rmb_msg.o src/rmb_pub.o src/rmb_sub.o src/rmb_udp.o src/rmb_vector.o src/wemq_fifo.o src/wemq_proto.o src/wemq_tcp.o src/wemq_thread.o src/wemq_topic_list.o ==> tmp/libm.a...
ar cq tmp/libm.a src/message_log_api.o src/rmb_access_config.o src/rmb_cfg.o src/rmb_context.o src/rmb_errno.o src/rmb_http_client.o src/rmb_log.o src/rmb_mq.o src/rmb_msg.o src/rmb_pub.o src/rmb_sub.o src/rmb_udp.o src/rmb_vector.o src/wemq_fifo.o src/wemq_proto.o src/wemq_tcp.o src/wemq_thread.o src/wemq_topic_list.o
ranlib tmp/libm.a
Building third_party/libcurl.a third_party/libjson-c.a tmp/libm.a ==> librmb.a...
ar cqT librmb.a ./tmp/*.a && echo -e 'create librmb.a\naddlib librmb.a\nsave\nend' | ar -M
ar: no output archive specified yet
Syntax error in archive script, line 1
Syntax error in archive script, line 1
make: *** [makefile:81: librmb.a] Error 9
make: Leaving directory '/home/runner/work/eventmesh/eventmesh/eventmesh-sdks/eventmesh-sdk-c'
Error: Process completed with exit code 2.
```
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) *
Contributor guide
Research direction
Start with eventmesh-sdks/eventmesh-sdk-c/makefile at line 81 and inspect the librmb.a build command. Reproduce the failure by checking out submodules and running the CI Build C task on Linux. Done means the archive command completes without the ar errors and the Build C task passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100