Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

cargo build失败 Unrecognized option: 'emit' #508

Open
Fabyone opened this issue Jul 21, 2022 · 2 comments
Open

cargo build失败 Unrecognized option: 'emit' #508

Fabyone opened this issue Jul 21, 2022 · 2 comments

Comments

@Fabyone
Copy link

Fabyone commented Jul 21, 2022

物理机编译安装报错

  • OS: macOS 12.4 21F79 x86_64 (Intel)
  • PHP: 7.1.33
  • GCC: 13.1.6
  • cmake: 3.23.2
  • libprotoc: 3.14.0
  • cargo: 1.57.0

image

cargo build --release --manifest-path=./Cargo.toml
   Compiling libc v0.2.124
   Compiling proc-macro2 v1.0.37
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.92
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling log v0.4.16
   Compiling pin-project-lite v0.2.9
   Compiling futures-core v0.3.21
   Compiling either v1.6.1
   Compiling bytes v1.1.0
   Compiling parking_lot_core v0.9.3
   Compiling anyhow v1.0.57
   Compiling memchr v2.4.1
   Compiling lazy_static v1.4.0
   Compiling serde_derive v1.0.137
   Compiling scopeguard v1.1.0
   Compiling smallvec v1.8.0
   Compiling once_cell v1.10.0
   Compiling itoa v1.0.1
   Compiling hashbrown v0.11.2
   Compiling futures-task v0.3.21
   Compiling serde_json v1.0.81
   Compiling futures-util v0.3.21
   Compiling serde v1.0.137
   Compiling futures-sink v0.3.21
   Compiling fnv v1.0.7
   Compiling ppv-lite86 v0.2.16
   Compiling pin-utils v0.1.0
   Compiling remove_dir_all v0.5.3
   Compiling getrandom v0.1.16
   Compiling slab v0.4.6
   Compiling fastrand v1.7.0
   Compiling futures-channel v0.3.21
   Compiling os_str_bytes v6.0.0
   Compiling unicode-segmentation v1.9.0
   Compiling fixedbitset v0.2.0
   Compiling httparse v1.7.1
   Compiling try-lock v0.2.3
   Compiling multimap v0.8.3
   Compiling maybe-uninit v2.0.0
   Compiling ryu v1.0.9
   Compiling termcolor v1.1.3
   Compiling textwrap v0.15.0
   Compiling bitflags v1.3.2
   Compiling tower-service v0.3.1
   Compiling strsim v0.10.0
   Compiling cbindgen v0.23.0
   Compiling httpdate v1.0.2
   Compiling async-trait v0.1.53
   Compiling cfg-if v0.1.10
   Compiling heck v0.4.0
   Compiling local-ip-address v0.4.4
   Compiling tower-layer v0.3.1
   Compiling time-macros v0.2.4
   Compiling base64 v0.13.0
   Compiling percent-encoding v2.1.0
   Compiling tracing-core v0.1.26
   Compiling itertools v0.10.3
   Compiling indexmap v1.8.1
   Compiling lock_api v0.4.7
   Compiling crossbeam-utils v0.7.2
   Compiling clap_lex v0.2.0
   Compiling http v0.2.7
   Compiling heck v0.3.3
   Compiling want v0.3.0
   Compiling mio v0.8.2
   Compiling socket2 v0.4.4
   Compiling num_cpus v1.13.1
   Compiling signal-hook-registry v1.4.0
   Compiling getrandom v0.2.6
   Compiling num_threads v0.1.6
   Compiling tempfile v3.3.0
   Compiling gethostname v0.2.3
   Compiling which v4.2.5
   Compiling atty v0.2.14
   Compiling quote v1.0.18
   Compiling parking_lot v0.12.0
   Compiling rand_core v0.6.3
   Compiling uuid v0.8.2
   Compiling uuid v1.0.0
   Compiling rand_core v0.5.1
   Compiling petgraph v0.5.1
   Compiling clap v3.1.15
   Compiling prost-build v0.8.0
   Compiling rand_chacha v0.3.1
   Compiling rand_chacha v0.2.2
   Compiling http-body v0.4.4
   Compiling crossbeam-channel v0.4.4
   Compiling rand v0.7.3
   Compiling rand v0.8.5
   Compiling time v0.3.9
   Compiling simplelog v0.12.0
   Compiling tokio-macros v1.7.0
   Compiling prost-derive v0.8.0
   Compiling tracing-attributes v0.1.21
   Compiling futures-macro v0.3.21
   Compiling pin-project-internal v1.0.10
   Compiling thiserror-impl v1.0.31
   Compiling async-stream-impl v0.3.3
   Compiling async-stream v0.3.3
   Compiling tokio v1.18.0
   Compiling pin-project v1.0.10
   Compiling tracing v0.1.34
   Compiling thiserror v1.0.31
   Compiling tracing-futures v0.2.5
   Compiling prost v0.8.0
   Compiling prost-types v0.8.0
   Compiling tonic-build v0.5.2
   Compiling tokio-util v0.7.1
   Compiling tokio-io-timeout v1.2.0
   Compiling tokio-stream v0.1.8
   Compiling tokio-util v0.6.9
   Compiling h2 v0.3.13
   Compiling tower v0.4.12
   Compiling toml v0.5.9
   Compiling bincode v1.3.3
   Compiling ipc-channel v0.16.0
   Compiling hyper v0.14.18
   Compiling SkyAPM-php-sdk v1.0.0 (/Users/fabyb/Tools/SkyAPM-php-sdk-5.0.1)
error: failed to run custom build command for `SkyAPM-php-sdk v1.0.0 (/Users/fabyb/Tools/SkyAPM-php-sdk-5.0.1)`

Caused by:
  process didn't exit successfully: `/Users/fabyb/Tools/SkyAPM-php-sdk-5.0.1/target/release/build/SkyAPM-php-sdk-1089a891fe5870cd/build-script-build` (exit status: 1)
  --- stdout
  Unrecognized option: 'emit'

  usage: rustfmt [options] <file>...

  Options:
      -h, --help          show this message
      -V, --version       show version information
      -v, --verbose       print verbose output
      -f, --force         force rustfmt to actually run
          --write-mode [replace|overwrite|display|diff|coverage|checkstyle]
                          mode to write in (not usable when piping from stdin)
          --skip-children
                          don't reformat child modules
          --config-help   show details of rustfmt configuration options
          --dump-default-config PATH
                          Dumps the default configuration to a file and exits.
          --dump-minimal-config PATH
                          Dumps configuration options that were checked during
                          formatting to a file.
          --config-path [Path for the configuration file]
                          Recursively searches the given path for the
                          rustfmt.toml config file. If not found reverts to the
                          input file path
          --file-lines JSON
                          Format specified line ranges. See README for more
                          detail on the JSON format.

warning: build failed, waiting for other jobs to finish...
error: build failed
make: *** [target/release/libsky_core_report.a] Error 101
@heyanlong
Copy link
Member

Rust版本是多少?

@heyanlong
Copy link
Member

贴一下全部操作日志。./configure make..

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

No branches or pull requests

2 participants