Skip to content

Kvrocks failed to build in macos-13 CI workflow #2874

@PragmaTwice

Description

@PragmaTwice

Search before asking

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

Version

unstable

Minimal reproduce step

Refer to https://github.com/apache/kvrocks/actions/runs/14351177410/job/40294270737?pr=2867.

[  0%] Building CXX object _deps/cpptrace-build/CMakeFiles/cpptrace-lib.dir/src/binary/elf.cpp.o
compiling static library
clang: warning: no such sysroot directory: '-DXXH_NAMESPACE=LZ4_' [-Wmissing-sysroot]
lz4.c:224:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h>   /* malloc, calloc, free */
[  0%] Building CXX object _deps/cpptrace-build/CMakeFiles/cpptrace-lib.dir/src/binary/mach-o.cpp.o
          ^~~~~~~~~~
CC obj/conf_bf260fcd81b3c57e99d10f6ae607c7ea/static/debug.o
1 error generated.
CC obj/conf_bf260fcd81b3c57e99d10f6ae607c7ea/static/entropy_common.o
lz4file.c:34:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>  /* malloc, free */
[  0%] Building CXX object _deps/cpptrace-build/CMakeFiles/cpptrace-lib.dir/src/binary/module_base.cpp.o
         ^~~~~~~~~~
1 error generated.
lz4frame.c:89:10: fatal error: 'string.h' file not found
#include <string.h>   /* memset, memcpy, memmove */
         ^~~~~~~~~~
1 error generated.
In file included from lz4hc.c:67:
./lz4.c:224:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h>   /* malloc, calloc, free */
          ^~~~~~~~~~
1 error generated.
xxhash.c:107:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
make[4]: *** [liblz4.a] Error 1
make[3]: *** [CMakeFiles/make_lz4] Error 2
make[2]: *** [CMakeFiles/make_lz4.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

What did you expect to see?

--

What did you see instead?

--

Anything Else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtype bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions