eventmesh icon indicating copy to clipboard operation
eventmesh copied to clipboard

[Bug] CI `Build C` task compile error: `[makefile:81: librmb.a] Error 9`

Open Pil0tXia opened this issue 2 years ago • 0 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Environment

Linux

EventMesh version

master

What happened

Relavant PR: https://github.com/apache/eventmesh/pull/4543

In the previous PR, the CI failed due to the inability to clone the submodule and abandoned the execution of the Build C task.

According to this suggestion, the CI is now able to execute the makefile but encountered an error during the compilation process.

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

Pil0tXia avatar Jan 12 '24 19:01 Pil0tXia