rust-musl-builder-base's People
rust-musl-builder-base's Issues
Can't build `socket2` with musl using this github action.
Mentioning rust-lang/socket2#264 explicitly.
I am using the github action the way it is described in the marketplace:
- name: Build static
uses: stevenleadbeater/rust-musl-builder@master
with:
args: /bin/bash -c "cargo build --locked --release --target=x86_64-unknown-linux-musl -v"
However, it leads to build errors:
Running `rustc --crate-name socket2 --edition=2018 /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=aa246bf64056a547 -C extra-filename=-aa246bf64056a547 --out-dir /github/workspace/target/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -L dependency=/github/workspace/target/x86_64-unknown-linux-musl/release/deps -L dependency=/github/workspace/target/release/deps --extern libc=/github/workspace/target/x86_64-unknown-linux-musl/release/deps/liblibc-d416f6c85e8305e1.rmeta --cap-lints allow`
error: attributes are not yet allowed on `if` expressions
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/sys/unix.rs:878:5
|
878 | #[cfg(not(any(target_os = "haiku", target_os = "openbsd")))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0658]: `match` is not allowed in a `const fn`
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/lib.rs:156:9
|
156 | / match address {
157 | | SocketAddr::V4(_) => Domain::IPV4,
158 | | SocketAddr::V6(_) => Domain::IPV6,
159 | | }
| |_________^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/49146
error[E0599]: no associated item named `MAX` found for type `i32` in the current scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/sys/unix.rs:763:46
|
763 | msg.msg_iovlen = min(bufs.len(), IovLen::MAX as usize) as IovLen;
| ^^^ associated item not found in `i32`
error[E0599]: no associated item named `MAX` found for type `i32` in the current scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/sys/unix.rs:823:46
|
823 | msg.msg_iovlen = min(bufs.len(), IovLen::MAX as usize) as IovLen;
| ^^^ associated item not found in `i32`
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0599, E0658.
For more information about an error, try `rustc --explain E0599`.
error: could not compile `socket2`.
How to fix this? I suspect the docker image hasn't been update for quite a while and so this action is outdated and uses old cargo/rustc versions.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.