[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mozilla Software on Sparc64/Linux





On Sun, Nov 21, 2021 at 6:29 AM John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> wrote:
Hello!

On 11/21/21 04:17, Connor McLaughlan wrote:
>    Compiling unicode-xid v0.1.0
> error: Unrecognized option: 'json'
>
> error: could not compile `unicode-xid`

You need to downgrade cargo to 0.29.0-1:

> http://snapshot.debian.org/package/cargo/0.29.0-1/#cargo_0.29.0-1

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Hello Adrian,

i installed cargo 0.29.0-1:
root@SunUltra25:/# aptitude versions cargo
Warning: Invalid locale (please review locale settings, this might lead to problems later):
  locale::facet::_S_create_c_locale name not valid
i   0.29.0-1                                                                                                                                              100
p   0.57.0-3                                                                             unstable                                                         500

Strangely it gets reported as 1.28 during configure - but well:
checking for rustc... /usr/bin/rustc
checking for cargo... /usr/bin/cargo
checking rustc version... 1.29.0
checking cargo version... 1.28.0

Now it compiles unicode-xid v.0.1.0, but crashes at libc v0.2.39:
make[5]: Entering directory '/<<PKGBUILDDIR>>/build-browser/toolkit/library/rust'
force-cargo-library-build
env   RUSTFLAGS='-C opt-level=2 -C debuginfo=2 '  CARGO_TARGET_DIR=/<<PKGBUILDDIR>>/build-browser/toolkit/library RUSTC=/usr/bin/rustc RUSTDOC=/usr/bin/rustdoc MOZ_SRC=/<<PKGBUILDDIR>> MOZ_DIST=/<<PKGBUILDDIR>>/build-browser/dist LIBCLANG_PATH="/usr/lib/llvm-11/lib" CLANG_PATH="/usr/lib/llvm-11/bin/clang" PKG_CONFIG_ALLOW_CROSS=1 RUST_BACKTRACE=full MOZ_TOPOBJDIR=/<<PKGBUILDDIR>>/build-browser  MOZ_CARGO_WRAP_LDFLAGS="-lpthread -Wl,--as-needed -Wl,--reduce-memory-overheads -Wl,--no-keep-memory -Wl,--stats -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,--build-id -Wl,-rpath-link,/<<PKGBUILDDIR>>/build-browser/dist/bin -Wl,-rpath-link,/usr/lib" MOZ_CARGO_WRAP_LD=" /usr/bin/gcc -std=gnu99" CARGO_TARGET_SPARC64_UNKNOWN_LINUX_GNU_LINKER=/<<PKGBUILDDIR>>/build/cargo-linker /usr/bin/cargo rustc  --release --frozen --manifest-path /<<PKGBUILDDIR>>/toolkit/library/rust/Cargo.toml --lib --target=sparc64-unknown-linux-gnu --features "servo bindgen quantum_render cubeb_pulse_rust cubeb-remoting moz_memory" --  -C lto
   Compiling unicode-xid v0.1.0
   Compiling siphasher v0.2.1
   Compiling libc v0.2.39
thread 'main' panicked at 'specified instant was later than self', libstd/sys/unix/time.rs:292:17
stack backtrace:
   0: 0xfff000010059e81b - rust_metadata_std_495c22e44ed0c1b01a54db1d43dc4cfc
   1: 0xfff000010056966b - rust_metadata_std_495c22e44ed0c1b01a54db1d43dc4cfc
   2: 0xfff00001005adf2f - rust_metadata_std_495c22e44ed0c1b01a54db1d43dc4cfc
   3: 0xfff00001005adaf7 - rust_metadata_std_495c22e44ed0c1b01a54db1d43dc4cfc
   4: 0xfff00001005a9e4b - rust_metadata_std_495c22e44ed0c1b01a54db1d43dc4cfc
   5: 0xfff00001038bbe9f - <unknown>
   6: 0xfff0000103649f3f - <unknown>
   7: 0xfff00001005ae927 - std::panicking::rust_panic_with_hook::h8a42f1f698beebb2
   8: 0xfff00001005ae65f - rust_metadata_std_495c22e44ed0c1b01a54db1d43dc4cfc
   9: 0xfff00001005822bb - rust_metadata_std_495c22e44ed0c1b01a54db1d43dc4cfc
  10: 0xfff0000100573a73 - std::time::Instant::elapsed::hecaa22291126e88e
  11: 0xfff00001009c2bfb - <unknown>
  12: 0xfff00001009e4daf - <unknown>
  13: 0xfff0000103482f87 - <unknown>
  14: 0xfff00001033694a7 - <unknown>
  15: 0xfff00001030a328b - rust_metadata_rustc_a73bbf9616326d00f8c80ec67817568c
  16: 0xfff00001032d955b - rust_metadata_rustc_a73bbf9616326d00f8c80ec67817568c
  17: 0xfff00001034a84bf - <unknown>   Compiling unicode-xid v0.1.0
   Compiling siphasher v0.2.1

  18: 0xfff000010352179f - <unknown>
  19: 0xfff00001035ebf17 - rustc::ty::query::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::symbol_name::hf254445141a56f8d
  20: 0xfff0000105c08e0f - <unknown>
  21: 0xfff0000105bf2f23 - <unknown>
  22: 0xfff0000105b63a93 - <unknown>
  23: 0xfff0000105c1638f - <unknown>
  24: 0xfff0000103485747 - <unknown>
  25: 0xfff000010336a0db - <unknown>
  26: 0xfff00001030ae7a7 - rust_metadata_rustc_a73bbf9616326d00f8c80ec67817568c
  27: 0xfff000010334946b - <unknown>
  28: 0xfff00001034ba2f3 - <unknown>
  29: 0xfff000010351ea0b - <unknown>
  30: 0xfff00001035ecb7b - rustc::ty::query::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::collect_and_partition_mono_items::h8d5c5762b2e3f51a
  31: 0xfff0000105c1bba7 - <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_utils::codegen_backend::CodegenBackend>::codegen_crate::hc83533030405993f
  32: 0xfff000010021eb03 - <unknown>
  33: 0xfff000010021331b - rustc_driver::driver::phase_4_codegen::heaf479227585b87b
  34: 0xfff00001002ed573 - <unknown>
  35: 0xfff00001002e7e8f - <unknown>
  36: 0xfff0000100282d03 - <unknown>
  37: 0xfff0000100314e5b - <unknown>
  38: 0xfff000010020b47b - rustc_driver::driver::compile_input::h8fc997d3d02841ae
  39: 0xfff00001002f342f - <unknown>
  40: 0xfff00001001c482b - <unknown>
  41: 0xfff00001001c458b - <unknown>
  42: 0xfff000010029849f - <unknown>
  43: 0xfff00001001c2d3f - <unknown>
  44: 0xfff00001002d39b3 - <unknown>
  45: 0xfff00001005b7fcb - __rust_maybe_catch_panic
  46: 0xfff00001002ef8bb - <unknown>
  47: 0xfff00001003003c7 - rustc_driver::main::h518b3d26bef3a0dc
  48:      0x10000000ccf - <unknown>
  49:      0x10000000c97 - <unknown>
  50: 0xfff000010056a213 - rust_metadata_std_495c22e44ed0c1b01a54db1d43dc4cfc
  51: 0xfff00001005ae1af - rust_metadata_std_495c22e44ed0c1b01a54db1d43dc4cfc
  52: 0xfff00001005b7fcb - __rust_maybe_catch_panic
  53: 0xfff000010058187b - std::rt::lang_start_internal::h5b2959a2ae66034e
  54:      0x10000000d27 - <unknown>
  55: 0xfff000010076312f - __libc_start_main
  56:      0x10000000b2b - <unknown>
query stack during panic:
#0 [symbol_name] computing the symbol for `<unix::rusage as std::clone::Clone>::clone`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
end of query stack

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.29.0 running on sparc64-unknown-linux-gnu

note: compiler flags: -C opt-level=2 -C codegen-units=1 -C linker=/<<PKGBUILDDIR>>/build/cargo-linker --crate-type lib

note: some of the compiler flags provided by cargo are hidden

error: Could not compile `libc`.

To learn more, run the command again with --verbose.
make[5]: *** [/<<PKGBUILDDIR>>/config/rules.mk:951: force-cargo-library-build] Error 101
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build-browser/toolkit/library/rust'
make[4]: *** [/<<PKGBUILDDIR>>/config/recurse.mk:74: toolkit/library/rust/target] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build-browser'
make[3]: *** [/<<PKGBUILDDIR>>/config/recurse.mk:34: compile] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build-browser'
make[2]: *** [/<<PKGBUILDDIR>>/config/rules.mk:418: default] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build-browser'
dh_auto_build: error: cd build-browser && make -j1 LD_LIBS=-Wl,--no-gc-sections _LEAKTEST_FILES=leaktest.py returned exit code 2
make[1]: *** [debian/rules:216: stamps/build-browser] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:321: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2021-11-21T21:27:00Z

Finished
--------

Regards,
Connor

Reply to: