Skip to content

Build failed on arm64 #320

@aldy505

Description

@aldy505

Environment

Commit: 2047f0b

Steps to Reproduce

On Linux amd64 machine (with AMD EPYC CPUs):

git clone https://github.com/getsentry/uptime-checker.git 
cd uptime-checker
docker buildx build --platform linux/arm64,linux/amd64 --tag "aldy505/sentry-uptime-checker:$(git log -1 --format=%H | xargs)" .

That is a multiplatform (multiarch) Docker image build that I usually execute before each release for the community.

Expected Result

The image built successfully

Actual Result

Probably an issue with a certain dependency? I have no idea.

3470.2    Compiling serde_with_macros v3.9.0
3492.3 error[E0308]: mismatched types
3492.3     --> /usr/local/cargo/git/checkouts/curl-rust-ea0a0986e99da2de/213aa43/src/easy/handler.rs:1915:63
3492.3      |
3492.3 1915 |         self.setopt_ptr(curl_sys::CURLOPT_OPENSOCKETFUNCTION, f as *const i8)
3492.3      |              ----------                                       ^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
3492.3      |              |
3492.3      |              arguments to this method are incorrect
3492.3      |
3492.3      = note: expected raw pointer `*const u8`
3492.3                 found raw pointer `*const i8`
3492.3 note: method defined here
3492.3     --> /usr/local/cargo/git/checkouts/curl-rust-ea0a0986e99da2de/213aa43/src/easy/handler.rs:3422:8
3492.3      |
3492.3 3422 |     fn setopt_ptr(&self, opt: curl_sys::CURLoption, val: *const c_char) -> Result<(), Error> {
3492.3      |        ^^^^^^^^^^                                   ------------------
3492.3
3492.4 error[E0308]: mismatched types
3492.4     --> /usr/local/cargo/git/checkouts/curl-rust-ea0a0986e99da2de/213aa43/src/easy/handler.rs:1921:59
3492.4      |
3492.4 1921 |         self.setopt_ptr(curl_sys::CURLOPT_OPENSOCKETDATA, data as *const i8)
3492.4      |              ----------                                   ^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
3492.4      |              |
3492.4      |              arguments to this method are incorrect
3492.4      |
3492.4      = note: expected raw pointer `*const u8`
3492.4                 found raw pointer `*const i8`
3492.4 note: method defined here
3492.4     --> /usr/local/cargo/git/checkouts/curl-rust-ea0a0986e99da2de/213aa43/src/easy/handler.rs:3422:8
3492.4      |
3492.4 3422 |     fn setopt_ptr(&self, opt: curl_sys::CURLoption, val: *const c_char) -> Result<(), Error> {
3492.4      |        ^^^^^^^^^^                                   ------------------
3492.4
3495.5 For more information about this error, try `rustc --explain E0308`.
3495.5 error: could not compile `curl` (lib) due to 2 previous errors
3495.5 warning: build failed, waiting for other jobs to finish...

Full build log: https://paste.reinaldyrafli.com/QDIbla

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions