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

Windows build with xbuild failing when http feature is enabled. #5503

Open
SolidTux opened this issue Dec 18, 2024 · 0 comments
Open

Windows build with xbuild failing when http feature is enabled. #5503

SolidTux opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something is broken

Comments

@SolidTux
Copy link

Describe the bug

When the http feature is enabled and the image loaders are registered, the linking fails when building for windows with xbuild from Linux (tested under Debian and Fedora). There are many similar errors to this, all in ring:

rust-lld: error: undefined symbol: _mm_setzero_si128
>>> referenced by /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/crypto/poly1305/poly1305_vec.c:129
>>>               libring-99d4b686355d1f30.rlib(123d8a351a02283d-poly1305_vec.o):(ring_core_0_17_8_CRYPTO_poly1305_init)
>>> referenced by /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/crypto/poly1305/poly1305_vec.c:130
>>>               libring-99d4b686355d1f30.rlib(123d8a351a02283d-poly1305_vec.o):(ring_core_0_17_8_CRYPTO_poly1305_init)
>>> referenced by /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/crypto/poly1305/poly1305_vec.c:131
>>>               libring-99d4b686355d1f30.rlib(123d8a351a02283d-poly1305_vec.o):(ring_core_0_17_8_CRYPTO_poly1305_init)
>>> referenced 2 more times

Full log: build.log

Is this a ring or an egui bug?

To Reproduce
Steps to reproduce the behavior:

main.rs

use eframe::egui::Context;
use egui_extras::install_image_loaders;

fn main() {
    install_image_loaders(&Context::default());
}

Cargo.toml

[package]
name = "ring-test"
version = "0.1.0"
edition = "2021"

[dependencies]
eframe = { git = "https://github.com/emilk/egui", branch = "master" }
egui_extras = { git = "https://github.com/emilk/egui", branch = "master", features = [
    "http",
] }

Install xbuild:

cargo install xbuild

Then run

x build --platform windows --arch x64

Expected behavior

Build succeeds

Desktop (please complete the following information):

  • OS: Fedora 41
  • xbuild 0.2.0
@SolidTux SolidTux added the bug Something is broken label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant