Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error on M1 / Sonoma: RdKafka.cpp:29:10: fatal error: 'string' file not found #126

Open
mdesantis opened this issue Oct 2, 2024 · 18 comments
Assignees

Comments

@mdesantis
Copy link

Hi,

I'm having troubles trying to install karafka-rdkafka on Mac OS X. It's complaining about a missing C++ header, I guess. I googled the error but no luck. Am I the only one experiencing it? Here is the output:

> gem ins karafka-rdkafka
Building native extensions. This could take a while...
ERROR:  Error installing karafka-rdkafka:
	ERROR: Failed to build gem native extension.

    current directory: /Users/mdesantis/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/karafka-rdkafka-0.17.6/ext
/Users/mdesantis/.asdf/installs/ruby/3.2.2/bin/ruby -rrubygems /Users/mdesantis/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.2.1/exe/rake RUBYARCHDIR\=/Users/mdesantis/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/extensions/arm64-darwin-23/3.2.0/karafka-rdkafka-0.17.6 RUBYLIBDIR\=/Users/mdesantis/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/extensions/arm64-darwin-23/3.2.0/karafka-rdkafka-0.17.6
Extracting librdkafka_2.5.3.tar.gz into tmp/arm64-apple-darwin23.6.0/ports/librdkafka/2.5.3... OK
Running git apply with /Users/mdesantis/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/karafka-rdkafka-0.17.6/dist/patches/rdkafka_sticky_assignor.c.patch... OK
Running 'configure' for librdkafka 2.5.3... OK
Running 'compile' for librdkafka 2.5.3... ERROR. Please review logs to see what happened:
----- contents of '/Users/mdesantis/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/karafka-rdkafka-0.17.6/ext/tmp/arm64-apple-darwin23.6.0/ports/librdkafka/2.5.3/compile.log' -----
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka.c -o rdkafka.o
rdkafka.c:5188:47: warning: cast from 'unsigned char *' to 'uint64_t *' (aka 'unsigned long long *') increases required alignment from 1 to 8 [-Wcast-align]
 5188 |         uint64_t *rand_values_uint64        = (uint64_t *)rand_values_bytes;
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_broker.c -o rdkafka_broker.o
rdkafka_broker.c:839:13: warning: variable 'idx' set but not used [-Wunused-but-set-variable]
  839 |         int idx = -1;
      |             ^
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_msg.c -o rdkafka_msg.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_topic.c -o rdkafka_topic.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_conf.c -o rdkafka_conf.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_timer.c -o rdkafka_timer.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_offset.c -o rdkafka_offset.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_transport.c -o rdkafka_transport.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_buf.c -o rdkafka_buf.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_queue.c -o rdkafka_queue.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_op.c -o rdkafka_op.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_request.c -o rdkafka_request.o
rdkafka_request.c:3268:29: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
 3267 |                             "Received session lifetime %ld ms from broker",
      |                                                        ~~~
      |                                                        %lld
 3268 |                             session_lifetime_ms);
      |                             ^~~~~~~~~~~~~~~~~~~
./rdkafka_int.h:973:66: note: expanded from macro 'rd_kafka_dbg'
  973 |                                       (RD_KAFKA_DBG_##ctx), fac, __VA_ARGS__); \
      |                                                                  ^~~~~~~~~~~
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_cgrp.c -o rdkafka_cgrp.o
rdkafka_cgrp.c:1521:13: warning: variable 'not_revoking' set but not used [-Wunused-but-set-variable]
 1521 |         int not_revoking   = 0;
      |             ^
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_pattern.c -o rdkafka_pattern.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_partition.c -o rdkafka_partition.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_subscription.c -o rdkafka_subscription.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_assignment.c -o rdkafka_assignment.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_assignor.c -o rdkafka_assignor.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_range_assignor.c -o rdkafka_range_assignor.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_roundrobin_assignor.c -o rdkafka_roundrobin_assignor.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_sticky_assignor.c -o rdkafka_sticky_assignor.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_feature.c -o rdkafka_feature.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdcrc32.c -o rdcrc32.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c crc32c.c -o crc32c.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdmurmur2.c -o rdmurmur2.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdfnv1a.c -o rdfnv1a.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c cJSON.c -o cJSON.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdaddr.c -o rdaddr.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdrand.c -o rdrand.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdlist.c -o rdlist.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c tinycthread.c -o tinycthread.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c tinycthread_extra.c -o tinycthread_extra.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdlog.c -o rdlog.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdstring.c -o rdstring.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_event.c -o rdkafka_event.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_metadata.c -o rdkafka_metadata.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdregex.c -o rdregex.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdports.c -o rdports.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_metadata_cache.c -o rdkafka_metadata_cache.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdavl.c -o rdavl.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_sasl.c -o rdkafka_sasl.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_sasl_plain.c -o rdkafka_sasl_plain.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_interceptor.c -o rdkafka_interceptor.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_msgset_writer.c -o rdkafka_msgset_writer.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_msgset_reader.c -o rdkafka_msgset_reader.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_header.c -o rdkafka_header.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_admin.c -o rdkafka_admin.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_aux.c -o rdkafka_aux.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_background.c -o rdkafka_background.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_idempotence.c -o rdkafka_idempotence.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_cert.c -o rdkafka_cert.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_txnmgr.c -o rdkafka_txnmgr.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_coord.c -o rdkafka_coord.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdbase64.c -o rdbase64.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdvarint.c -o rdvarint.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdbuf.c -o rdbuf.o
rdbuf.c:912:16: warning: variable 'remains' set but not used [-Wunused-but-set-variable]
  912 |         size_t remains = size;
      |                ^
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdmap.c -o rdmap.o
rdmap.c:498:13: warning: variable 'fails' set but not used [-Wunused-but-set-variable]
  498 |         int fails = 0;
      |             ^
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdunittest.c -o rdunittest.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_mock.c -o rdkafka_mock.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_mock_handlers.c -o rdkafka_mock_handlers.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_mock_cgrp.c -o rdkafka_mock_cgrp.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_error.c -o rdkafka_error.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_fetcher.c -o rdkafka_fetcher.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_telemetry.c -o rdkafka_telemetry.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_telemetry_encode.c -o rdkafka_telemetry_encode.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_telemetry_decode.c -o rdkafka_telemetry_decode.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c nanopb/pb_encode.c -o nanopb/pb_encode.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c nanopb/pb_decode.c -o nanopb/pb_decode.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c nanopb/pb_common.c -o nanopb/pb_common.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c opentelemetry/metrics.pb.c -o opentelemetry/metrics.pb.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c opentelemetry/common.pb.c -o opentelemetry/common.pb.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c opentelemetry/resource.pb.c -o opentelemetry/resource.pb.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_sasl_cyrus.c -o rdkafka_sasl_cyrus.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_sasl_scram.c -o rdkafka_sasl_scram.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_sasl_oauthbearer.c -o rdkafka_sasl_oauthbearer.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c snappy.c -o snappy.o
snappy.c:1440:9: warning: variable 'written' set but not used [-Wunused-but-set-variable]
 1440 |         size_t written = 0;
      |                ^
1 warning generated.
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdgz.c -o rdgz.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_zstd.c -o rdkafka_zstd.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdhdrhistogram.c -o rdhdrhistogram.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_ssl.c -o rdkafka_ssl.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdhttp.c -o rdhttp.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_sasl_oauthbearer_oidc.c -o rdkafka_sasl_oauthbearer_oidc.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_lz4.c -o rdkafka_lz4.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -O3 -c rdxxhash.c -o rdxxhash.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rddl.c -o rddl.o
gcc -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/Cellar/openssl@3/3.3.2/include -I/opt/homebrew/opt/zstd/include  -I/opt/homebrew/opt/lz4/include -c rdkafka_plugin.c -o rdkafka_plugin.o
Creating shared library librdkafka.1.dylib
gcc -L/opt/homebrew/opt/llvm/lib -L/opt/homebrew/opt/llvm/lib -L/opt/homebrew/opt/llvm/lib -shared -dynamiclib -Wl,-install_name,/Users/mdesantis/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/karafka-rdkafka-0.17.6/ext/ports/arm64-apple-darwin23.6.0/librdkafka/2.5.3/lib/librdkafka.1.dylib rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignment.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_sticky_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdfnv1a.o cJSON.o rdaddr.o rdrand.o rdlist.o tinycthread.o tinycthread_extra.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdkafka_idempotence.o rdkafka_cert.o rdkafka_txnmgr.o rdkafka_coord.o rdbase64.o rdvarint.o rdbuf.o rdmap.o rdunittest.o rdkafka_mock.o rdkafka_mock_handlers.o rdkafka_mock_cgrp.o rdkafka_error.o rdkafka_fetcher.o rdkafka_telemetry.o rdkafka_telemetry_encode.o rdkafka_telemetry_decode.o nanopb/pb_encode.o nanopb/pb_decode.o nanopb/pb_common.o opentelemetry/metrics.pb.o opentelemetry/common.pb.o opentelemetry/resource.pb.o rdkafka_sasl_cyrus.o rdkafka_sasl_scram.o rdkafka_sasl_oauthbearer.o snappy.o rdgz.o rdkafka_zstd.o rdhdrhistogram.o rdkafka_ssl.o rdhttp.o rdkafka_sasl_oauthbearer_oidc.o rdkafka_lz4.o rdxxhash.o rddl.o rdkafka_plugin.o -o librdkafka.1.dylib -L/opt/homebrew/opt/lz4/lib -llz4 -lm -lcurl -L/opt/homebrew/opt/zstd/lib -lzstd -lsasl2 -L/opt/homebrew/Cellar/openssl@3/3.3.2/lib -lssl -L/opt/homebrew/Cellar/openssl@3/3.3.2/lib -lcrypto -lz -ldl -lpthread
cp librdkafka.1.dylib librdkafka-dbg.1.dylib
Creating static library librdkafka.a
ar rcs librdkafka.a rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignment.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_sticky_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdfnv1a.o cJSON.o rdaddr.o rdrand.o rdlist.o tinycthread.o tinycthread_extra.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdkafka_idempotence.o rdkafka_cert.o rdkafka_txnmgr.o rdkafka_coord.o rdbase64.o rdvarint.o rdbuf.o rdmap.o rdunittest.o rdkafka_mock.o rdkafka_mock_handlers.o rdkafka_mock_cgrp.o rdkafka_error.o rdkafka_fetcher.o rdkafka_telemetry.o rdkafka_telemetry_encode.o rdkafka_telemetry_decode.o nanopb/pb_encode.o nanopb/pb_decode.o nanopb/pb_common.o opentelemetry/metrics.pb.o opentelemetry/common.pb.o opentelemetry/resource.pb.o rdkafka_sasl_cyrus.o rdkafka_sasl_scram.o rdkafka_sasl_oauthbearer.o snappy.o rdgz.o rdkafka_zstd.o rdhdrhistogram.o rdkafka_ssl.o rdhttp.o rdkafka_sasl_oauthbearer_oidc.o rdkafka_lz4.o rdxxhash.o rddl.o rdkafka_plugin.o
cp librdkafka.a librdkafka-dbg.a
WARNING: librdkafka-static.a: No static libraries available/enabled for inclusion in self-contained static library librdkafka-static.a: this library will be identical to librdkafka.a
WARNING: librdkafka-static.a: The following libraries were not available as static libraries and need to be linked dynamically: -llz4 -lm -lcurl -lzstd -lsasl2 -lssl -lcrypto -lz -ldl -lpthread
cp librdkafka.a librdkafka-static.a
cp librdkafka-dbg.a librdkafka-static-dbg.a
cp librdkafka-static.a librdkafka-static-dbg.a
Creating librdkafka.dylib symlink
rm -f "librdkafka.dylib" && ln -s "librdkafka.1.dylib" "librdkafka.dylib"
Generating pkg-config file rdkafka.pc
Generating pkg-config file rdkafka-static.pc
Checking librdkafka integrity
librdkafka.1.dylib             OK
librdkafka.a                   OK
Symbol visibility              OK
g++ -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c RdKafka.cpp -o RdKafka.o
RdKafka.cpp:29:10: fatal error: 'string' file not found
   29 | #include <string>
      |          ^~~~~~~~
1 error generated.
make[1]: *** [RdKafka.o] Error 1
make: *** [libs] Error 2
----- end of file -----
rake aborted!
Failed to complete compile task

Tasks: TOP => default
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in /Users/mdesantis/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/karafka-rdkafka-0.17.6 for inspection.
Results logged to /Users/mdesantis/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/extensions/arm64-darwin-23/3.2.0/karafka-rdkafka-0.17.6/gem_make.out
@mensfeld
Copy link
Member

Sorry I missed that one. Let me take a look

@mensfeld mensfeld self-assigned this Oct 27, 2024
@mensfeld
Copy link
Member

g++ -MD -MP -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/opt/homebrew/opt/llvm/include -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c RdKafka.cpp -o RdKafka.o
RdKafka.cpp:29:10: fatal error: 'string' file not found

It seems to be using preinstalled librdkafka cpp instead of librdkafka.c shipped with karafka-rdkafka 🤔

@mensfeld
Copy link
Member

@mdesantis what gcc version is that?

@mdesantis
Copy link
Author

@mensfeld here you are:

> gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

@mensfeld
Copy link
Member

@nijikon your version pretty plz? 🙏

@mensfeld
Copy link
Member

It's a macos update issue that is not including correct stuff for CPP.

You mind trying with this flag set?

CPPFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/"

@k1r8r0wn
Copy link

It's a macos update issue that is not including correct stuff for CPP.

You mind trying with this flag set?

CPPFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/"

Putting this into .zshrc helps:

export CPPFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/"

@mdesantis
Copy link
Author

It worked, many thanks!

@k1r8r0wn
Copy link

Glad to help!

It worked, many thanks!

@jrafanie
Copy link

jrafanie commented Oct 31, 2024

FYI, I just updated to latest OSX, Sequoia 15.1 and updated the command line tools.

I needed to add this to my ~/.zshrc

export CPPFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/ $CPPFLAGS"
~ % gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.4)
Target: arm64-apple-darwin24.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

In /Library/Developer/CommandLineTools/SDKs/, there's a MacOSX15.sdk symlink to the MacOSX15.1.sdk directory. I used the symlink as I imagine this will point to a 15.2.sdk at some point.

EDIT:
exporting the CPPFLAGS globally caused prism to fail to compile. Ultimately, I removed it from my ~/.zshrc and instead installed rdkafka and passed the CPPFLAGS just for that installation:

CPPFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/ $CPPFLAGS" gem install rdkafka -v0.19.0

A better long term solution would be nice. I'm not sure if it's specifically where libraries are installed on arm apple silicon and that conflicting with a change that occurred in the CommandLineTools from apple or something else that's causing a problem here.

@mensfeld
Copy link
Member

mensfeld commented Nov 1, 2024

Do you guys have an idea how I can automatically detect this so I could just automate this instead of relying on you remembering to alter that?

@jrafanie
Copy link

jrafanie commented Nov 1, 2024

I updated my comment above as setting the CPPFLAGS globally to workaround this issue introduced another problem with prism. See above.

@mensfeld
Copy link
Member

mensfeld commented Nov 5, 2024

@jrafanie yeah that's why I wonder if we can detect this somehow and inject this on demand 🤔

@mensfeld mensfeld reopened this Nov 5, 2024
@jrafanie
Copy link

jrafanie commented Nov 5, 2024

@mensfeld What can I run to provide more debugging? It's easy for me to install it with and without the CPPFLAGS to get it succeed or fail.

It would be nice to have other bug reports to see if it's truly unique to sonoma/sequoia and M1. Maybe non-homebrew macs on M1 on sonoma/sequoia.

There's some discussion of other issues with GCC on newer mac sdks: Homebrew/homebrew-core#194778 (comment)

Let me know what I can do to help. Thanks!

@fusion2004
Copy link

For more info on this, it seems to only fail when you're using CommandLineTools gcc vs XCode gcc. You can check which you're using with

❯ xcode-select -p
/Applications/Xcode.app/Contents/Developer

❯ xcode-select -p
/Library/Developer/CommandLineTools

If you've got XCode installed and up-to-date, you can probably switch to it and not need to override CPPFLAGS:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

@mensfeld
Copy link
Member

@fusion2004 any chance you could PR a fix for this? :)

@fusion2004
Copy link

No, I'm not sure what a proper fix to support both would be, unfortunately lol. We've updated our application's setup scripts to ensure folks are using Xcode instead of CommandLineTools instead.

@SpecOps12
Copy link

It's a macos update issue that is not including correct stuff for CPP.
You mind trying with this flag set?

CPPFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/"

Putting this into .zshrc helps:

export CPPFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/"

Thank you for the fix! 🥇 I had the same issue.
Your solution also worked for me using MacOSX15.1.sdk ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants