Skip to content

Conversation

@bodymindarts
Copy link
Contributor

To build rdkafka with musl cmake must be installed.

closes #109

Dockerfile Outdated
PQ_VER="11.12" \
SQLITE_VER="3390200" \
CC=musl-gcc \
CXX=g++ \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i feel like this is not correct for us to be always exporting in this image as it leads to us implicitly pointing c++ to one compiler and arch (gcc with glibc) and c to another (musl-gcc against musl).

it might work for rdkafka upstream, but it might break other cpp projects wanting to build through musl-gcc. my gut feeling is that it would be better for you to set CXX in your own dockerfile

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair - but we can include cmake here I guess? It is after all referenced in the Dockerfile though not installed.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmake is reasonable to add, yeah :-)

@bodymindarts bodymindarts force-pushed the chore--support-rdkafka branch from 4d76b7a to f6ab018 Compare October 10, 2022 13:53
@bodymindarts
Copy link
Contributor Author

Force pushed to remove CXX export

@clux
Copy link
Owner

clux commented Oct 28, 2022

Oh, I missed the update, sorry. Merging now.

@clux clux merged commit b9fc8de into clux:main Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changes needed to get rust-rdkafka built

2 participants