alexcrichton / xz2-rs

Bindings to liblzma in Rust (xz streams in Rust)
Apache License 2.0
81 stars 52 forks source link

Build failed on github actions macos #127

Open niuhuan opened 3 months ago

niuhuan commented 3 months ago

https://github.com/niuhuan/kobi/actions/runs/9360750350/job/25769011899

https://github.com/fzyzcjy/flutter_rust_bridge/issues/2026

Is only failed on github actions, There are no errors on my computer.

Should I install something in macOS?

info: component 'rust-std' for target 'aarch64-apple-darwin' is up to date
Setting "enable-macos-desktop" value to "true".

You may need to restart any open editors for them to read new settings.

Running pod install...                                           1,139ms
Building macOS application...                                   
ld: Undefined symbols:
  _lzma_alone_decoder, referenced from:
      xz2::stream::Stream::new_lzma_decoder::he80b5cc1439a89aa in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_alone_encoder, referenced from:
      xz2::stream::Stream::new_lzma_encoder::ha702e1034a9d1610 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_auto_decoder, referenced from:
      xz2::stream::Stream::new_auto_decoder::h5de8be318f260949 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_check_is_supported, referenced from:
      xz2::stream::Check::is_supported::h62381c217b117511 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_code, referenced from:
      xz2::stream::Stream::process::h25cadc733dba83a1 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_easy_encoder, referenced from:
      xz2::stream::Stream::new_easy_encoder::hfdb52f28[93](https://github.com/niuhuan/kobi/actions/runs/9360750350/job/25769011899#step:25:94)98a285 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_end, referenced from:
      xz2::stream::Stream::new_easy_encoder::hfdb52f289398a285 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
      xz2::stream::Stream::new_easy_encoder::hfdb52f289398a285 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
      xz2::stream::Stream::new_lzma_encoder::ha702e1034a9d1610 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
      xz2::stream::Stream::new_lzma_encoder::ha702e1034a9d1610 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
      xz2::stream::Stream::new_stream_encoder::heebeaf087674f619 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
      xz2::stream::Stream::new_stream_encoder::heebeaf087674f619 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
      xz2::stream::Stream::new_stream_decoder::hd7c8b030bb243c35 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
      xz2::stream::Stream::new_stream_decoder::hd7c8b030bb243c35 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
      ...
  _lzma_lzma_preset, referenced from:
      xz2::stream::LzmaOptions::new_preset::h988b8456f5d69e84 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_memlimit_get, referenced from:
      xz2::stream::Stream::memlimit::ha750ab3ea3d5d585 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_memlimit_set, referenced from:
      xz2::stream::Stream::set_memlimit::h841aeaa2030f84c2 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_mf_is_supported, referenced from:
      xz2::stream::MatchFinder::is_supported::hf[95](https://github.com/niuhuan/kobi/actions/runs/9360750350/job/25769011899#step:25:96)e50473fdf8a33 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_stream_decoder, referenced from:
      xz2::stream::Stream::new_stream_decoder::hd7c8b030bb243c35 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_stream_encoder, referenced from:
      xz2::stream::Stream::new_stream_encoder::heebeaf087674f619 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_stream_encoder_mt, referenced from:
      xz2::stream::MtStreamBuilder::encoder::h55d4d78e6bbe8e84 in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
  _lzma_stream_encoder_mt_memusage, referenced from:
      xz2::stream::MtStreamBuilder::memusage::h0ccbe45f0a132f6c in librust_lib_kobi.a[arm64][74](xz2-4af428aecadca142.xz2.65005f3aad52e7fb-cgu.0.rcgu.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
** BUILD FAILED **

Build process failed
Error: Process completed with exit code 1.
0s