[GH-ISSUE #201] Building error on macOS 12.0.1 on mac mini m1 #149

Closed
opened 2026-02-28 14:30:57 +03:00 by kerem · 11 comments
Owner

Originally created by @naymapl on GitHub (Oct 28, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/201

Hi. I try to compile apple sillicon verion but got error:

The following warnings were emitted during compilation:

warning: ./minivorbis.c:6:10: fatal error: 'minivorbis.h' file not found
warning: #include "minivorbis.h"
warning:          ^~~~~~~~~~~~~~
warning: 1 error generated.

error: failed to run custom build command for `minivorbis-sys v0.1.0 (/Users/naymapl/Downloads/psst-master/minivorbis-sys)`

Caused by:
  process didn't exit successfully: `/Users/naymapl/Downloads/psst-master/target/release/build/minivorbis-sys-b58ea438adc80a5d/build-script-build` (exit status: 1)
  --- stdout
  TARGET = Some("aarch64-apple-darwin")
  OPT_LEVEL = Some("3")
  HOST = Some("aarch64-apple-darwin")
  CC_aarch64-apple-darwin = None
  CC_aarch64_apple_darwin = None
  HOST_CC = None
  CC = None
  CFLAGS_aarch64-apple-darwin = None
  CFLAGS_aarch64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = None
  running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-I" "./minivorbis" "-Wall" "-Wextra" "-o" "/Users/naymapl/Downloads/psst-master/target/release/build/minivorbis-sys-49412aa77065d870/out/./minivorbis.o" "-c" "./minivorbis.c"
  cargo:warning=./minivorbis.c:6:10: fatal error: 'minivorbis.h' file not found
  cargo:warning=#include "minivorbis.h"
  cargo:warning=         ^~~~~~~~~~~~~~
  cargo:warning=1 error generated.
  exit status: 1

  --- stderr


  error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-I" "./minivorbis" "-Wall" "-Wextra" "-o" "/Users/naymapl/Downloads/psst-master/target/release/build/minivorbis-sys-49412aa77065d870/out/./minivorbis.o" "-c" "./minivorbis.c" with args "cc" did not execute successfully (status code exit status: 1).


warning: build failed, waiting for other jobs to finish...
error: build failed

Any idea what is wrong ?? Thank you for help.

Is it build native arm64 version of psst ??

Originally created by @naymapl on GitHub (Oct 28, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/201 Hi. I try to compile apple sillicon verion but got error: ``` The following warnings were emitted during compilation: warning: ./minivorbis.c:6:10: fatal error: 'minivorbis.h' file not found warning: #include "minivorbis.h" warning: ^~~~~~~~~~~~~~ warning: 1 error generated. error: failed to run custom build command for `minivorbis-sys v0.1.0 (/Users/naymapl/Downloads/psst-master/minivorbis-sys)` Caused by: process didn't exit successfully: `/Users/naymapl/Downloads/psst-master/target/release/build/minivorbis-sys-b58ea438adc80a5d/build-script-build` (exit status: 1) --- stdout TARGET = Some("aarch64-apple-darwin") OPT_LEVEL = Some("3") HOST = Some("aarch64-apple-darwin") CC_aarch64-apple-darwin = None CC_aarch64_apple_darwin = None HOST_CC = None CC = None CFLAGS_aarch64-apple-darwin = None CFLAGS_aarch64_apple_darwin = None HOST_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("false") CARGO_CFG_TARGET_FEATURE = None running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-I" "./minivorbis" "-Wall" "-Wextra" "-o" "/Users/naymapl/Downloads/psst-master/target/release/build/minivorbis-sys-49412aa77065d870/out/./minivorbis.o" "-c" "./minivorbis.c" cargo:warning=./minivorbis.c:6:10: fatal error: 'minivorbis.h' file not found cargo:warning=#include "minivorbis.h" cargo:warning= ^~~~~~~~~~~~~~ cargo:warning=1 error generated. exit status: 1 --- stderr error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-I" "./minivorbis" "-Wall" "-Wextra" "-o" "/Users/naymapl/Downloads/psst-master/target/release/build/minivorbis-sys-49412aa77065d870/out/./minivorbis.o" "-c" "./minivorbis.c" with args "cc" did not execute successfully (status code exit status: 1). warning: build failed, waiting for other jobs to finish... error: build failed ``` Any idea what is wrong ?? Thank you for help. Is it build native arm64 version of psst ??
kerem closed this issue 2026-02-28 14:30:57 +03:00
Author
Owner

@creinholdsson commented on GitHub (Oct 30, 2021):

Minivorbis is in a git submodule, have you also fetched all submodules?

<!-- gh-comment-id:955160197 --> @creinholdsson commented on GitHub (Oct 30, 2021): Minivorbis is in a git submodule, have you also fetched all submodules?
Author
Owner

@naymapl commented on GitHub (Oct 30, 2021):

Hi. How to do that ?? I use comand from main readme.md:

git submodule update --recursive --init
cargo build --release

but I got this error message:

fatal: this is not a git repository (or any parent directories): .git

<!-- gh-comment-id:955173772 --> @naymapl commented on GitHub (Oct 30, 2021): Hi. How to do that ?? I use comand from main readme.md: ``` git submodule update --recursive --init cargo build --release ``` but I got this error message: `fatal: this is not a git repository (or any parent directories): .git`
Author
Owner

@creinholdsson commented on GitHub (Oct 30, 2021):

How did you acquire the code from this repo, via git clone or downloading the source from github ui?

git clone https://github.com/jpochyla/psst.git
cd psst
git submodule update --recursive --init

should work.

<!-- gh-comment-id:955177074 --> @creinholdsson commented on GitHub (Oct 30, 2021): How did you acquire the code from this repo, via git clone or downloading the source from github ui? `git clone https://github.com/jpochyla/psst.git` `cd psst` `git submodule update --recursive --init` should work.
Author
Owner

@naymapl commented on GitHub (Oct 30, 2021):

Hi - now is working well. Thank you so much. I have one more question - how to create normal psst.app to drag it to application folder and use like normal app ?

<!-- gh-comment-id:955178679 --> @naymapl commented on GitHub (Oct 30, 2021): Hi - now is working well. Thank you so much. I have one more question - how to create normal psst.app to drag it to application folder and use like normal app ?
Author
Owner

@jpochyla commented on GitHub (Nov 1, 2021):

You can create an app bundle by running cargo bundle --release. Thanks everybody!

<!-- gh-comment-id:955992482 --> @jpochyla commented on GitHub (Nov 1, 2021): You can create an app bundle by running `cargo bundle --release`. Thanks everybody!
Author
Owner

@naymapl commented on GitHub (Dec 20, 2021):

@jpochyla I try to use cargo bundle --release but got error:

error: no such subcommand: `bundle`

	Did you mean `build`?
<!-- gh-comment-id:997792662 --> @naymapl commented on GitHub (Dec 20, 2021): @jpochyla I try to use `cargo bundle --release` but got error: ``` error: no such subcommand: `bundle` Did you mean `build`? ```
Author
Owner

@kingosticks commented on GitHub (Dec 20, 2021):

See https://github.com/jpochyla/psst/blob/master/.github/workflows/build.yml#L72-L73

<!-- gh-comment-id:997802297 --> @kingosticks commented on GitHub (Dec 20, 2021): See https://github.com/jpochyla/psst/blob/master/.github/workflows/build.yml#L72-L73
Author
Owner

@naymapl commented on GitHub (Dec 20, 2021):

I got error error: No 'package' info found in 'Cargo.toml'

Maybye is this: be sure to add /Users/user-name/.cargo/bin to your PATH to be able to run the installed binaries

<!-- gh-comment-id:997811681 --> @naymapl commented on GitHub (Dec 20, 2021): I got error `error: No 'package' info found in 'Cargo.toml'` Maybye is this: `be sure to add `/Users/user-name/.cargo/bin` to your PATH to be able to run the installed binaries`
Author
Owner

@naymapl commented on GitHub (Dec 20, 2021):

Ok - I create myself psst.app and copy there psst-gui and give it icon and its work. But with this cargo bundle something not working correctly for sure. I try few times and always got this message error: No 'package' info found in 'Cargo.toml'

<!-- gh-comment-id:998250243 --> @naymapl commented on GitHub (Dec 20, 2021): Ok - I create myself psst.app and copy there psst-gui and give it icon and its work. But with this cargo bundle something not working correctly for sure. I try few times and always got this message `error: No 'package' info found in 'Cargo.toml'`
Author
Owner

@jpochyla commented on GitHub (Dec 20, 2021):

Run it in the psst-gui directory :)

<!-- gh-comment-id:998280237 --> @jpochyla commented on GitHub (Dec 20, 2021): Run it in the `psst-gui` directory :)
Author
Owner

@naymapl commented on GitHub (Dec 21, 2021):

ok - now working perfect. Thank you so much !! Have a nice day.

<!-- gh-comment-id:998557934 --> @naymapl commented on GitHub (Dec 21, 2021): ok - now working perfect. Thank you so much !! Have a nice day.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#149
No description provided.