b-inary / desktop-postflop

[Development suspended] Advanced open-source Texas Hold'em GTO solver with optimized performance
GNU Affero General Public License v3.0
215 stars 52 forks source link

Build failed on mac os #15

Closed cleverpiggy closed 1 year ago

cleverpiggy commented 1 year ago

I'm using a MacBook pro with Apple M1 Pro. MacOs Ventura 13.3.1. I followed the simple instructions in the README and got the following output.

allen@chez-Allen-3 desktop-postflop % rustc --version
rustc 1.71.0-nightly (a368898de 2023-05-02)
allen@chez-Allen-3 desktop-postflop % npm --version  
9.6.4
allen@chez-Allen-3 desktop-postflop % npm run tauri build

> desktop-postflop@0.2.6 tauri
> tauri build

     Running beforeBuildCommand `npm run build`

> desktop-postflop@0.2.6 build
> vue-tsc && vite build

vite v4.2.0 building for production...
✓ 1868 modules transformed.
warnings when minifying css:
▲ [WARNING] Expected identifier but found "-" [css-syntax-error]

    <stdin>:1843:2:
      1843 │   -: ,;
           ╵   ^

dist/index.html                   0.38 kB
dist/assets/index-573c4c91.css   33.31 kB │ gzip:   6.94 kB
dist/assets/index-fc70353c.js   583.80 kB │ gzip: 194.03 kB

(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 2.31s
   Compiling proc-macro2 v1.0.56
   Compiling unicode-ident v1.0.8
   Compiling quote v1.0.26
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.142
   Compiling autocfg v1.1.0
   Compiling serde v1.0.160
   Compiling serde_derive v1.0.160
   Compiling ppv-lite86 v0.2.17
   Compiling siphasher v0.3.10
   Compiling syn v1.0.109
   Compiling getrandom v0.1.16
   Compiling phf_shared v0.8.0
   Compiling proc-macro-hack v0.5.20+deprecated
   Compiling log v0.4.17
   Compiling phf_shared v0.10.0
   Compiling memchr v2.5.0
error: failed to run custom build command for `serde_derive v1.0.160`

Caused by:
  process didn't exit successfully: `/Users/allen/projects/desktop-postflop/src-tauri/target/release/build/serde_derive-54327cbd26356c32/build-script-build` (signal: 4, SIGILL: illegal instruction)
  --- stdout
  cargo:rerun-if-changed=build.rs
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `quote v1.0.26`

Caused by:
  process didn't exit successfully: `/Users/allen/projects/desktop-postflop/src-tauri/target/release/build/quote-74f46820b5496051/build-script-build` (signal: 4, SIGILL: illegal instruction)
  --- stdout
  cargo:rerun-if-changed=build.rs
error: failed to run custom build command for `proc-macro2 v1.0.56`

Caused by:
  process didn't exit successfully: `/Users/allen/projects/desktop-postflop/src-tauri/target/release/build/proc-macro2-650073d5c660aea3/build-script-build` (signal: 4, SIGILL: illegal instruction)
  --- stdout
  cargo:rerun-if-changed=build.rs
error: failed to run custom build command for `libc v0.2.142`

Caused by:
  process didn't exit successfully: `/Users/allen/projects/desktop-postflop/src-tauri/target/release/build/libc-774578e3c4332360/build-script-build` (signal: 4, SIGILL: illegal instruction)
  --- stdout
  cargo:rerun-if-changed=build.rs
error: failed to run custom build command for `libc v0.2.142`

Caused by:
  process didn't exit successfully: `/Users/allen/projects/desktop-postflop/src-tauri/target/release/build/libc-30e64bea18a55965/build-script-build` (signal: 4, SIGILL: illegal instruction)
  --- stdout
  cargo:rerun-if-changed=build.rs
error: failed to run custom build command for `syn v1.0.109`

Caused by:
  process didn't exit successfully: `/Users/allen/projects/desktop-postflop/src-tauri/target/release/build/syn-4eae64dcd3b89175/build-script-build` (signal: 4, SIGILL: illegal instruction)
error: failed to run custom build command for `serde v1.0.160`

Caused by:
  process didn't exit successfully: `/Users/allen/projects/desktop-postflop/src-tauri/target/release/build/serde-8380539360733aa0/build-script-build` (signal: 4, SIGILL: illegal instruction)
  --- stdout
  cargo:rerun-if-changed=build.rs
error: failed to run custom build command for `getrandom v0.1.16`

Caused by:
  process didn't exit successfully: `/Users/allen/projects/desktop-postflop/src-tauri/target/release/build/getrandom-f71f503ca3233acc/build-script-build` (signal: 4, SIGILL: illegal instruction)
error: failed to run custom build command for `proc-macro-hack v0.5.20+deprecated`

Caused by:
  process didn't exit successfully: `/Users/allen/projects/desktop-postflop/src-tauri/target/release/build/proc-macro-hack-0dcde2d0bb5faddd/build-script-build` (signal: 4, SIGILL: illegal instruction)
       Error failed to build app: failed to build app
b-inary commented 1 year ago

I don't know why the build broke, perhaps it's because of the Tauri 1.3.0 release. I just updated the dependencies, could you pull the repository and rebuild it?

cleverpiggy commented 1 year ago

The dependency update did not help. However, even though my rust was up to date, I deleted and reinstalled it and the build worked. So it was something about my own configuration. Thank you for great project.