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

Alpine edge / rav1e issues with built #46

Closed
binoculars opened this issue Dec 1, 2022 · 2 comments
Closed

Alpine edge / rav1e issues with built #46

binoculars opened this issue Dec 1, 2022 · 2 comments

Comments

@binoculars
Copy link

Please see xiph/rav1e#3074 for details

#14 206.2    Compiling rav1e v0.6.1 (/tmp/rav1e)
#14 299.1 error: prefix `Linux` is unknown
#14 299.1   --> /tmp/rav1e/target/x86_64-alpine-linux-musl/release/build/rav1e-baf8555d2aa5ac72/out/built.rs:72:57
#14 299.1    |
#14 299.1 72 | pub const RUSTC_VERSION: &str = r"rustc 1.65.0 ("Alpine Linux")";
#14 299.1    |                                                         ^^^^^ unknown prefix
#14 299.1    |
#14 299.1    = note: prefixed identifiers and literals are reserved since Rust 2021
#14 299.1 help: consider inserting whitespace here
#14 299.1    |
#14 299.1 72 | pub const RUSTC_VERSION: &str = r"rustc 1.65.0 ("Alpine Linux ")";
#14 299.1    |                                                              +
#14 299.1 
#14 299.1 error: prefix `Linux` is unknown
#14 299.1   --> /tmp/rav1e/target/x86_64-alpine-linux-musl/release/build/rav1e-baf8555d2aa5ac72/out/built.rs:75:61
#14 299.1    |
#14 299.1 75 | pub const RUSTDOC_VERSION: &str = r"rustdoc 1.65.0 ("Alpine Linux")";
#14 299.1    |                                                             ^^^^^ unknown prefix
#14 299.1    |
#14 299.1    = note: prefixed identifiers and literals are reserved since Rust 2021
#14 299.1 help: consider inserting whitespace here
#14 299.1    |
#14 299.1 75 | pub const RUSTDOC_VERSION: &str = r"rustdoc 1.65.0 ("Alpine Linux ")";
#14 299.1    |                                                                  +
#14 299.1 
#14 299.1 error: suffixes on a string literal are invalid
#14 299.1   --> /tmp/rav1e/target/x86_64-alpine-linux-musl/release/build/rav1e-baf8555d2aa5ac72/out/built.rs:72:33
#14 299.1    |
#14 299.1 72 | pub const RUSTC_VERSION: &str = r"rustc 1.65.0 ("Alpine Linux")";
#14 299.1    |                                 ^^^^^^^^^^^^^^^^^^^^^^^ invalid suffix `Alpine`
#14 299.1 
#14 299.1 error: expected one of `.`, `;`, `?`, or an operator, found `Linux`
#14 299.1   --> /tmp/rav1e/target/x86_64-alpine-linux-musl/release/build/rav1e-baf8555d2aa5ac72/out/built.rs:72:57
#14 299.1    |
#14 299.1 72 | pub const RUSTC_VERSION: &str = r"rustc 1.65.0 ("Alpine Linux")";
#14 299.1    |                                                         ^^^^^ expected one of `.`, `;`, `?`, or an operator
#14 299.1 
#14 299.7 error[E0425]: cannot find value `GIT_COMMIT_HASH` in module `crate::built_info`
#14 299.7    --> src/lib.rs:417:24
#14 299.7     |
#14 299.7 417 |     crate::built_info::GIT_COMMIT_HASH.unwrap_or_default().to_string()
#14 299.7     |                        ^^^^^^^^^^^^^^^ not found in `crate::built_info`
#14 299.7 
#14 299.7 error[E0425]: cannot find value `GIT_VERSION` in module `crate::built_info`
#14 299.7    --> src/lib.rs:429:26
#14 299.7     |
#14 299.7 429 |       crate::built_info::GIT_VERSION.unwrap_or_default()
#14 299.7     |                          ^^^^^^^^^^^ help: a constant with a similar name exists: `PKG_VERSION`
#14 299.7     |
#14 299.7    ::: /tmp/rav1e/target/x86_64-alpine-linux-musl/release/build/rav1e-baf8555d2aa5ac72/out/built.rs:9:1
#14 299.7     |
#14 299.7 9   | pub const PKG_VERSION: &str = r"0.6.1";
#14 299.7     | --------------------------------------- similarly named constant `PKG_VERSION` defined here
#14 299.7 
#14 303.9 For more information about this error, try `rustc --explain E0425`.
#14 303.9 error: could not compile `rav1e` due to 6 previous errors
#14 303.9 Error: CliError { error: Some(1 job failed), exit_code: 101 }
#14 ERROR: process "/bin/sh -c apk add --no-cache --virtual build     rust cargo git pkgconf openssl-dev nasm cargo-c &&   RUSTFLAGS=\"-C target-feature=+crt-static\" cargo cinstall --release &&   pkg-config --exists --modversion --path rav1e &&   ar -t /usr/local/lib/librav1e.a &&   readelf -h /usr/local/lib/librav1e.a &&   apk del build" did not complete successfully: exit code: 1
@lukaslueg
Copy link
Owner

Thanks for the report; nasty stuff.

The cannot find value GIT_COMMIT_HASH in -part and friends is unrelated. You may need to add the git2-feature, or git-tracking is not available in built

@lukaslueg
Copy link
Owner

I've pushed 0.5.2, which should address this issue

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

No branches or pull requests

2 participants