Skip to content

[macOS] getattrlistbulk is used unconditionally but may not be available, which breaks linking #417

Closed

Description

@barracuda156

Discovered when building gitoxide:

Undefined symbols for architecture ppc:
  "_getattrlistbulk", referenced from:
      _ZRIG2cI13dua_core4_1_05macos7ReadDir0g6refill0g in libdua_core-4_1_0.rlib.o
Undefined symbols for architecture ppc:
  "_getattrlistbulk", referenced from:
      _ZRIG2cI13dua_core4_1_05macos7ReadDir0g6refill0g in libdua_core-4_1_0.rlib.o
ld: symbol(s) not found for architecture ppc
collect2: error: ld returned 1 exit status
C Compiler failed to execute - error code 256
ld: symbol(s) not found for architecture ppc
collect2: error: ld returned 1 exit status
C Compiler failed to execute - error code 256
Process exited with non-zero exit status 1
FAILING COMMAND: /opt/local/libexec/mrustc/bin/mrustc /opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/src/ein.rs -o /opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/ein -C emit-depfile=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/ein.d --cfg debug_assertions -O -L /opt/local/libexec/mrustc/lib -L /opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release --cfg feature="default" --cfg feature="max" --cfg feature="hashes" --cfg feature="max-control" --cfg feature="fast" --cfg feature="gitoxide-core-tools-query" --cfg feature="gitoxide-core-tools-corpus" --cfg feature="gitoxide-core-blocking-client" --cfg feature="http-client-curl-openssl" --cfg feature="sha1" --cfg feature="sha256" --cfg feature="tracing-cpu-time" --cfg feature="pretty-cli" --cfg feature="tix" --cfg feature="gitoxide-core-tools" --cfg feature="prodash-render-line" --cfg feature="prodash" --cfg feature="tracing" --cfg feature="gitoxide-core-tools-archive" --cfg feature="gitoxide-core-tools-clean" --cfg feature="prodash-render-line-crossterm" --cfg feature="crosstermion" --crate-name ein --crate-type bin --crate-tag 0_61_0_H77ec2bf14 --extern gitoxide=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libgitoxide-0_61_0_H77ec2bf14.rlib --edition 2024 --extern gitoxide_core=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libgitoxide_core-0_64_0_H18a811c1.rlib --extern gix=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libgix-0_90_0_Hfbff420005bd0790.rlib --extern gix_tix=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libgix_tix-0_6_0_H19.rlib --extern clap=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libclap-4_6_1_H80ba5.rlib --extern clap_complete=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libclap_complete-4_6_6_H0.rlib --extern prodash=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libprodash-31_0_1_H2c4eaf86.rlib --extern env_logger=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libenv_logger-0_11_11_H1c.rlib --extern crosstermion=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libcrosstermion-0_16_0_H106.rlib --extern anstream=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libanstream-1_0_0_Ha.rlib --extern tracing=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libtracing-0_1_44_H30002.rlib --extern terminal_size=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libterminal_size-0_4_4.rlib --extern serde_derive=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libserde_derive-1_0_228_H0-plugin
Env:  OUT_DIR=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/build/gitoxide-0_61_0_H77ec2bf14/out GIX_VERSION=0.61.0 CARGO_CRATE_NAME=ein CARGO_BIN_NAME=ein CARGO_MANIFEST_DIR=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0 CARGO_PKG_NAME=gitoxide CARGO_PKG_VERSION=0.61.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=61 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE= CARGO_PKG_AUTHORS=Sebastian Thiel <sebastian.thiel@icloud.com> CARGO_PKG_DESCRIPTION=A command-line application for interacting with git repositories CARGO_PKG_HOMEPAGE= CARGO_PKG_REPOSITORY=https://github.com/GitoxideLabs/gitoxide CARGO_PKG_LICENSE=MIT OR Apache-2.0 CARGO_PKG_LICENSE_FILE= CARGO_PKG_README= CARGO_PKG_RUST_VERSION=1.88
 (99.7% 1r,0w,0b,340c/341t): gitoxide v0.61.0 [bin gix]
Process exited with non-zero exit status 1
FAILING COMMAND: /opt/local/libexec/mrustc/bin/mrustc /opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/src/gix.rs -o /opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/gix -C emit-depfile=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/gix.d --cfg debug_assertions -O -L /opt/local/libexec/mrustc/lib -L /opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release --cfg feature="default" --cfg feature="max" --cfg feature="hashes" --cfg feature="max-control" --cfg feature="fast" --cfg feature="gitoxide-core-tools-query" --cfg feature="gitoxide-core-tools-corpus" --cfg feature="gitoxide-core-blocking-client" --cfg feature="http-client-curl-openssl" --cfg feature="sha1" --cfg feature="sha256" --cfg feature="tracing-cpu-time" --cfg feature="pretty-cli" --cfg feature="tix" --cfg feature="gitoxide-core-tools" --cfg feature="prodash-render-line" --cfg feature="prodash" --cfg feature="tracing" --cfg feature="gitoxide-core-tools-archive" --cfg feature="gitoxide-core-tools-clean" --cfg feature="prodash-render-line-crossterm" --cfg feature="crosstermion" --crate-name gix --crate-type bin --crate-tag 0_61_0_H77ec2bf14 --extern gitoxide=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libgitoxide-0_61_0_H77ec2bf14.rlib --edition 2024 --extern gitoxide_core=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libgitoxide_core-0_64_0_H18a811c1.rlib --extern gix=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libgix-0_90_0_Hfbff420005bd0790.rlib --extern gix_tix=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libgix_tix-0_6_0_H19.rlib --extern clap=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libclap-4_6_1_H80ba5.rlib --extern clap_complete=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libclap_complete-4_6_6_H0.rlib --extern prodash=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libprodash-31_0_1_H2c4eaf86.rlib --extern env_logger=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libenv_logger-0_11_11_H1c.rlib --extern crosstermion=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libcrosstermion-0_16_0_H106.rlib --extern anstream=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libanstream-1_0_0_Ha.rlib --extern tracing=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libtracing-0_1_44_H30002.rlib --extern terminal_size=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libterminal_size-0_4_4.rlib --extern serde_derive=/opt/local/var/macports/build/gitoxide-c5c4da4e/work/gitoxide-0.61.0/target/powerpc-apple-darwin/release/libserde_derive-1_0_228_H0-plugin

Activity

  1. Byron commented on Oct 25, 2026

    @Byron
    Owner

    @barracuda156 Can you try the linked PR and see if that works for you?

  2. barracuda156 commented on Oct 25, 2026

    @barracuda156
    Author

    @Byron Thank you, I will try your fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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