Opened 2 years ago

Last modified 10 months ago

#70693 assigned defect

cargo @0.79.0: error occurred: Bad file descriptor (os error 9)

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: MarcusCalhoun
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: snowleopard Cc: mascguy (Christopher Nielsen), haihige
Port: cargo

Change History (7)

comment:1 Changed 23 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:2 Changed 21 months ago by rmottola (Riccardo)

I am getting the same issue here locally now. Any updates on that? happens on 64bit for me.

comment:3 Changed 21 months ago by haihige

Cc: haihige added

comment:4 Changed 21 months ago by aeiouaeiouaeiouaeiouaeiouaeiou

A build with the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment flag shows this error:

fatal: not a git repository (or any of the parent directories): .git

comment:5 Changed 21 months ago by aeiouaeiouaeiouaeiouaeiouaeiou

In adb7fc6585adb0e6b7819b0620eafee9cf53bb4e/macports-ports (master):

librsvg, librsvg-devel: use fallback version on Snow Leopard

See: #70693

comment:6 Changed 20 months ago by rmottola (Riccardo)

On 10.6 I actually get it in two places:

  --- stderr


  error occurred: Bad file descriptor (os error 9)


error: failed to run custom build command for `libssh2-sys v0.3.0`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

and


  --- stderr
  fatal: not a git repository (or any of the parent directories): .git


  error occurred: Bad file descriptor (os error 9)


Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.79.0" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cargo/cargo/work/cargo-1.77.0-x86_64-apple-darwin/cargo/bin/cargo build --release --frozen -v -j2 --features curl-sys/force-system-lib-on-osx 

looks like it is not finding dependent stuff, isn't it?

comment:7 Changed 10 months ago by 760ceb3b9c0ba4872cadf3ce35a7a494

I am also seeing this error on 64-bit 10.6: fatal: not a git repository (or any of the parent directories): .git as a result of this command: sudo port install cargo configure.compiler=macports-clang-16

Note: See TracTickets for help on using tickets.