Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Macbook #8

Open
yepher opened this issue Sep 15, 2022 · 1 comment
Open

Build fails on Macbook #8

yepher opened this issue Sep 15, 2022 · 1 comment

Comments

@yepher
Copy link

yepher commented Sep 15, 2022

Not sure what all information to provide. I am trying to build this cool-looking project, but I am getting an error. I am new to Rust so not sure how to proceed.

   Compiling autocfg v1.1.0
   Compiling libc v0.2.132
   Compiling bitflags v1.3.2
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.43
   Compiling quote v1.0.21
   Compiling unicode-ident v1.0.4
   Compiling syn v1.0.99
   Compiling log v0.4.17
   Compiling foreign-types-shared v0.1.1
   Compiling scopeguard v1.1.0
   Compiling core-foundation-sys v0.8.3
   Compiling thiserror v1.0.35
   Compiling memchr v2.5.0
   Compiling crossbeam-utils v0.8.11
   Compiling unicode-width v0.1.10
   Compiling cty v0.2.2
   Compiling arrayvec v0.5.2
   Compiling once_cell v1.14.0
   Compiling termcolor v1.1.3
   Compiling hashbrown v0.12.3
   Compiling bit-vec v0.6.3
   Compiling byteorder v1.4.3
   Compiling radium v0.5.3
   Compiling smallvec v1.9.0
   Compiling fixedbitset v0.2.0
   Compiling block v0.1.6
   Compiling typenum v1.15.0
   Compiling lexical-core v0.7.6
   Compiling core-foundation-sys v0.7.0
   Compiling parking_lot_core v0.8.5
   Compiling rayon-core v1.9.3
   Compiling version_check v0.9.4
   Compiling tap v1.0.1
   Compiling wyz v0.2.0
   Compiling ryu v1.0.11
   Compiling paste v1.0.9
   Compiling funty v1.1.0
   Compiling rawpointer v0.2.1
   Compiling static_assertions v1.1.0
   Compiling cfg_aliases v0.1.1
   Compiling ahash v0.4.7
   Compiling either v1.8.0
   Compiling copyless v0.1.5
   Compiling profiling v1.0.6
   Compiling range-alloc v0.1.2
   Compiling fast-float v0.2.0
   Compiling geometry-predicates v0.3.0
   Compiling regex-syntax v0.6.27
   Compiling arrayvec v0.7.2
   Compiling cfg-if v0.1.10
   Compiling humantime v2.1.0
   Compiling dispatch v0.2.0
   Compiling vec_map v0.8.2
   Compiling ansi_term v0.12.1
   Compiling strsim v0.8.0
   Compiling lazy_static v1.4.0
   Compiling pollster v0.2.5
   Compiling instant v0.1.12
   Compiling gpu-alloc-types v0.2.0
   Compiling gpu-descriptor-types v0.1.1
   Compiling wgpu-types v0.8.0
   Compiling num-traits v0.2.15
   Compiling indexmap v1.9.1
   Compiling memoffset v0.6.5
   Compiling crossbeam-epoch v0.9.10
   Compiling lock_api v0.4.8
   Compiling num-integer v0.1.45
   Compiling num-rational v0.4.1
   Compiling rayon v1.5.3
   Compiling foreign-types v0.3.2
   Compiling textwrap v0.11.0
   Compiling raw-window-handle v0.4.3
   Compiling codespan-reporting v0.11.1
   Compiling bit-set v0.5.3
   Compiling fxhash v0.2.1
   Compiling nom v6.1.2
   Compiling matrixmultiply v0.3.2
   Compiling wgpu-core v0.8.1
   Compiling itertools v0.10.4
   Compiling hashbrown v0.9.1
   Compiling gpu-alloc v0.4.7
   Compiling gpu-descriptor v0.1.1
   Compiling malloc_buf v0.0.6
   Compiling raw-window-handle v0.3.4
   Compiling num_cpus v1.13.1
   Compiling atty v0.2.14
   Compiling jobserver v0.1.24
   Compiling core-foundation v0.9.3
   Compiling crossbeam-channel v0.5.6
   Compiling aho-corasick v0.7.19
   Compiling bitvec v0.19.6
   Compiling core-foundation v0.7.0
   Compiling petgraph v0.5.1
   Compiling storage-map v0.3.0
   Compiling clap v2.34.0
   Compiling spirv_headers v1.5.0
   Compiling approx v0.5.1
   Compiling num-complex v0.4.2
   Compiling ordered-float v2.10.0
   Compiling parking_lot v0.11.2
   Compiling cc v1.0.73
   Compiling core-graphics-types v0.1.1
   Compiling core-graphics v0.19.2
   Compiling regex v1.6.0
   Compiling crossbeam-deque v0.8.2
   Compiling simba v0.5.1
   Compiling core-graphics v0.22.3
   Compiling objc_exception v0.1.2
   Compiling env_logger v0.8.4
   Compiling thiserror-impl v1.0.35
   Compiling bytemuck_derive v1.2.1
   Compiling express v0.1.0 (/Users/auser/working/github/foxtrot/express)
   Compiling nalgebra v0.27.1
   Compiling bytemuck v1.12.1
   Compiling naga v0.4.2
   Compiling cdt v0.1.0 (/Users/auser/working/github/foxtrot/cdt)
   Compiling step v0.1.0 (/Users/auser/working/github/foxtrot/step)
   Compiling gfx-hal v0.8.0
   Compiling nalgebra-glm v0.13.0
   Compiling gfx-backend-empty v0.8.0
   Compiling nurbs v0.1.0 (/Users/auser/working/github/foxtrot/nurbs)
The following warnings were emitted during compilation:

warning: /opt/local/bin/ranlib: object: /Users/auser/working/github/foxtrot/target/release/build/objc_exception-825c3e6ffd75bfbf/out/libexception.a(exception.o) malformed object (unknown load command 1)
warning: ar: internal ranlib command failed

error: failed to run custom build command for `objc_exception v0.1.2`

Caused by:
  process didn't exit successfully: `/Users/auser/working/github/foxtrot/target/release/build/objc_exception-9f776d584def1ad7/build-script-build` (exit status: 1)
  --- stdout
  TARGET = Some("x86_64-apple-darwin")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-apple-darwin")
  CC_x86_64-apple-darwin = None
  CC_x86_64_apple_darwin = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-apple-darwin = None
  CFLAGS_x86_64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
  running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-o" "/Users/auser/working/github/foxtrot/target/release/build/objc_exception-825c3e6ffd75bfbf/out/extern/exception.o" "-c" "extern/exception.m"
  exit status: 0
  AR_x86_64-apple-darwin = None
  AR_x86_64_apple_darwin = None
  HOST_AR = None
  AR = None
  running: "ar" "cq" "/Users/auser/working/github/foxtrot/target/release/build/objc_exception-825c3e6ffd75bfbf/out/libexception.a" "/Users/auser/working/github/foxtrot/target/release/build/objc_exception-825c3e6ffd75bfbf/out/extern/exception.o"
  cargo:warning=/opt/local/bin/ranlib: object: /Users/auser/working/github/foxtrot/target/release/build/objc_exception-825c3e6ffd75bfbf/out/libexception.a(exception.o) malformed object (unknown load command 1)
  cargo:warning=ar: internal ranlib command failed
  exit status: 1

  --- stderr


  error occurred: Command "ar" "cq" "/Users/auser/working/github/foxtrot/target/release/build/objc_exception-825c3e6ffd75bfbf/out/libexception.a" "/Users/auser/working/github/foxtrot/target/release/build/objc_exception-825c3e6ffd75bfbf/out/extern/exception.o" with args "ar" did not execute successfully (status code exit status: 1).


warning: build failed, waiting for other jobs to finish...
@tom-ainc
Copy link

This doesn't look rust specific, and I can't say I'm familiar with MacOS, however this looks like it may be similar to your issue and may be fixed with a brew upgrade.

Also, did you install rust using rustup, if not you might as well reinstall it the reccomended way, can't hurt and maybe you get lucky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants