-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Trouble building xxhash for musl, musl-g++ not found #3359
Comments
I'm not actually sure of any official packaged way to get a C++ compiler targeting musl. For us at least we've always compiled our own compilers in this case... |
Oh I meant to close this at the time as in any case this isn't a Cargo bug, but likely with local configuration. |
@alexcrichton why
Ugly fix for me was (add $ sudo ln -s /bin/g++ /bin/musl-g++ And build was without any errors
Not needed args are:
It is Sorry about my poor English. |
It's probably just a bug in the xxhash build system that cmake requires a C++ compiler, the fix would probably go upstream to that project |
Some dependency added with the charting library (I suppose?) requires compilation of the freetype-sys crate, which complains that it cannot find musl-g++. Based on some googling, musl-g++ cannot be installed (?), so instead an ugly workaround is to just link it to normal g++ instead, which seems to work fine for most people online? See: rust-lang/cargo#3359 (comment)
Some dependency added with the charting library (I suppose?) requires compilation of the freetype-sys crate, which complains that it cannot find musl-g++. Based on some googling, musl-g++ cannot be installed (?), so instead an ugly workaround is to just link it to normal g++ instead, which seems to work fine for most people online? See: rust-lang/cargo#3359 (comment)
Following instructions for building with musl here https://blog.rust-lang.org/2016/05/13/rustup.html
This may just be a case of me not knowing where to find musl-g++. I've
apt-get install musl-tools
'd (which was not in the instructions, maybe it should be added? Before doing this, I was getting amusl-gcc
not found error as well), which gave memusl-gcc
, but nomusl-g++
. Searching debian's packages, I'm beginning to wonder if it really exists. Where is musl-g++ supposed to come from?The text was updated successfully, but these errors were encountered: