Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Arch Linux: Build error (linking with cc failed): undefined symbol: http_blkgetsize #179

@orhun

Description

@orhun

Hello 👋🏼

While building the latest version (2.4.0) for Arch Linux I'm getting the following error:

   Compiling iron v0.6.1 (/build/httplz/src/http-2.4.0/vendor/iron-0.6.1)
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-m64" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "-lhttp-ioctl" "/tmp/rustcXvEstL/libblake3-f94fa8c5210f48d1.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_
builtins-*.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcXvEstL/raw-dylibs" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/build
/httplz/src/http-2.4.0/target/release/build/https-c1c1be72d3b99f75/out" "-L" "/build/httplz/src/http-2.4.0/target/release/build/blake3-02af2d4cf546223e/out" "-L" "/build/httplz/src/http-2.4.0/target/release/build/
blake3-02af2d4cf546223e/out" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/build/httplz/src/http-2.4.0/target/release/deps/httplz-7bafe75fafe8d634" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,no
w" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: ld.lld: error: undefined symbol: http_blkgetsize
          >>> referenced by non_windows_non_macos.rs:29 (src/util/os/non_windows_non_macos.rs:29)
          >>>               /build/httplz/src/http-2.4.0/target/release/deps/httplz-7bafe75fafe8d634.httplz.4bb8d95e0643713d-cgu.03.rcgu.o:(httplz::util::os::non_windows_non_macos::file_length_impl::h17ef60ab8ef34
5f7)
          collect2: error: ld returned 1 exit status


error: could not compile `https` (bin "httplz") due to 1 previous error

Not related, but also there is this warning:

==> Starting build()...
warning: no edition set: defaulting to the 2015 edition while the latest is 2024
warning: file `/build/httplz/src/http-2.4.0/src/main.rs` found to be present in multiple build targets:
  * `bin` target `http`
  * `bin` target `httplz`

Any ideas?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions