Giter Site home page Giter Site logo

Build failed about croaring-rs HOT 5 OPEN

roaringbitmap avatar roaringbitmap commented on June 8, 2024
Build failed

from croaring-rs.

Comments (5)

saulius avatar saulius commented on June 8, 2024

Hello! Can you please run this command manually and show the output? From croaring-rs root:

cc -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -DDISABLE_X64 -Wno-unused-function -o "/workspace/rust/roarningbitmap/target/debug/build/croaring-sys-7cd393670621a907/out/CRoaring/roaring.o" -c croaring-sys/CRoaring/roaring.c

from croaring-rs.

chenrui333 avatar chenrui333 commented on June 8, 2024

seeing the same thing in grin-wallet build, Homebrew/homebrew-core#137857

  error: failed to run custom build command for `croaring-sys v0.4.6`
  
  Caused by:
    process didn't exit successfully: `/tmp/grin-wallet-20230728-9846-10uyqpj/grin-wallet-5.1.0/target/release/build/croaring-sys-7351c0e74761bdeb/build-script-build` (exit status: 101)
    --- stdout
    TARGET = Some("x86_64-unknown-linux-gnu")
    OPT_LEVEL = Some("3")
    HOST = Some("x86_64-unknown-linux-gnu")
    CC_x86_64-unknown-linux-gnu = None
    CC_x86_64_unknown_linux_gnu = None
    HOST_CC = None
    CC = Some("gcc-11")
    CFLAGS_x86_64-unknown-linux-gnu = None
    CFLAGS_x86_64_unknown_linux_gnu = None
    HOST_CFLAGS = None
    CFLAGS = None
    CRATE_CC_NO_DEFAULTS = None
    DEBUG = Some("false")
    CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
    CC_x86_64-unknown-linux-gnu = None
    CC_x86_64_unknown_linux_gnu = None
    HOST_CC = None
    CC = Some("gcc-11")
    CFLAGS_x86_64-unknown-linux-gnu = None
    CFLAGS_x86_64_unknown_linux_gnu = None
    HOST_CFLAGS = None
    CFLAGS = None
    CRATE_CC_NO_DEFAULTS = None
    CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
    running: "gcc-11" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-Wall" "-Wextra" "-march=native" "-o" "/tmp/grin-wallet-20230728-9846-10uyqpj/grin-wallet-5.1.0/target/release/build/croaring-sys-58c8c27055f13489/out/CRoaring/roaring.o" "-c" "CRoaring/roaring.c"
    exit status: 0
    AR_x86_64-unknown-linux-gnu = None
    AR_x86_64_unknown_linux_gnu = None
    HOST_AR = None
    AR = None
    running: ZERO_AR_DATE="1" "ar" "cq" "/tmp/grin-wallet-20230728-9846-10uyqpj/grin-wallet-5.1.0/target/release/build/croaring-sys-58c8c27055f13489/out/libroaring.a" "/tmp/grin-wallet-20230728-9846-10uyqpj/grin-wallet-5.1.0/target/release/build/croaring-sys-58c8c27055f13489/out/CRoaring/roaring.o"
    exit status: 0
    running: "ar" "s" "/tmp/grin-wallet-20230728-9846-10uyqpj/grin-wallet-5.1.0/target/release/build/croaring-sys-58c8c27055f13489/out/libroaring.a"
    exit status: 0
    cargo:rustc-link-lib=static=roaring
    cargo:rustc-link-search=native=/tmp/grin-wallet-20230728-9846-10uyqpj/grin-wallet-5.1.0/target/release/build/croaring-sys-58c8c27055f13489/out
  
    --- stderr
    thread 'main' panicked at 'Non floating-type complex? Type(_Complex _Float16, kind: Complex, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Type(_Float16, kind: Float16, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None))', /github/home/.cache/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.56.0/src/ir/context.rs:1957:26
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  warning: build failed, waiting for other jobs to finish...
  error: failed to compile `grin_wallet v5.1.0 (/tmp/grin-wallet-20230728-9846-10uyqpj/grin-wallet-5.1.0)`, intermediate artifacts can be found at `/tmp/grin-wallet-20230728-9846-10uyqpj/grin-wallet-5.1.0/target`

let me know if I need to provide more details.

from croaring-rs.

saulius avatar saulius commented on June 8, 2024

Does this also happen with the latest version of croaring-rs?

from croaring-rs.

Dr-Emann avatar Dr-Emann commented on June 8, 2024

These appear to be two separate issues:

@takakawa's issue

This appears to be an error to compile the C source code. I don't have much info, though I will say the combination "-m64" "-DDISABLE_X64" looks suspicious to me, but I don't see anything that uses a define called DISABLE_X64, I see one called ROARING_DISABLE_X64. CRoaring's build script doesn't look like it would ever add a flag like -DDISABLE_X64, so I'm guessing it came from e.g. CFLAGS.

@chenrui333's issue

This appears to be rust-lang/rust-bindgen#2500. An easy workaround would be to use the pre-built bindgen option (don't enable the buildtime_bindgen feature)

from croaring-rs.

chenrui333 avatar chenrui333 commented on June 8, 2024

This appears to be rust-lang/rust-bindgen#2500. An easy workaround would be to use the pre-built bindgen option (don't enable the buildtime_bindgen feature)

that might be difficult for us to do.

from croaring-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.