Package Details: mingw-w64-rust 1.52.1-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-rust.git (read-only, click to copy)
Package Base: mingw-w64-rust
Description: Systems programming language focused on safety, speed and concurrency (mingw-w64)
Upstream URL: https://www.rust-lang.org
Keywords: mingw-w64 rust
Licenses: custom, MIT, Apache
Submitter: pingplug
Maintainer: pingplug
Last Packager: pingplug
Votes: 3
Popularity: 0.000000
First Submitted: 2018-02-13 16:00
Last Updated: 2021-06-06 00:57

Pinned Comments

pingplug commented on 2018-02-14 05:35

  1. Rust can not build upon sjlj version of MinGW (i686-w64-mingw32 toolchain in mingw-w64-gcc<10.1.0).
  2. building mingw-w64-rust will take about 50GiB, make sure that your $BUILDDIR have enough free space.
  3. Rust will check $prefix when packaging, please make an empty $prefix dir (for example /opt/rust) if you don't have one, and don't forget to remove this dir before install this package.
  4. THERE IS NO GUARANTEE RUST CAN HOST ITSELF WITH THE SAME VERSION OF RUST! They only test building rust from the last stable version of rust. This package will use the last version of rust for bootstrap, not depend on system rust.
  5. to use this, you should add /opt/rust/bin to PATH, and set CARGO_HOME to /opt/rust/cargo.

Latest Comments

« First ‹ Previous 1 2

Martchus commented on 2018-02-18 18:36

Not sure why it fails to build here:

Building stage2 std artifacts (x86_64-unknown-linux-gnu -> i686-pc-windows-gnu)
   Compiling cfg-if v0.1.2
   Compiling unwind v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/libunwind)
   Compiling libc v0.2.34
   Compiling cc v1.0.3
   Compiling core v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/libcore)
   Compiling filetime v0.1.14
   Compiling build_helper v0.1.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/build_helper)
   Compiling std v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/libstd)
   Compiling alloc_jemalloc v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/liballoc_jemalloc)
   Compiling compiler_builtins v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/rustc/compiler_builtins_shim)
   Compiling libc v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/rustc/libc_shim)
   Compiling std_unicode v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/libstd_unicode)
   Compiling panic_abort v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_abort)
   Compiling alloc v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/liballoc)
   Compiling panic_unwind v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind)
   Compiling alloc_system v0.0.0 (file:///build/mingw-w64-rust/src/rustc-1.24.0-src/src/liballoc_system)
error: linking with `i686-w64-mingw32-cc` failed: exit code: 1
  |
  = note: "i686-w64-mingw32-cc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-Wl,--large-address-aware" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i686-pc-windows-gnu/lib/dllcrt2.o" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i686-pc-windows-gnu/lib/rsbegin.o" "-L" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i686-pc-windows-gnu/lib" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/std-a67e8415a6b8c7c5.std0-d54d7847220241fba388c8d99121534.rs.rcgu.o" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/std-a67e8415a6b8c7c5.std1-d54d7847220241fba388c8d99121534.rs.rcgu.o" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/std-a67e8415a6b8c7c5.std2-d54d7847220241fba388c8d99121534.rs.rcgu.o" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/std-a67e8415a6b8c7c5.std3-d54d7847220241fba388c8d99121534.rs.rcgu.o" "-o" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/std-a67e8415a6b8c7c5.dll" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/std-a67e8415a6b8c7c5.crate.metadata.rcgu.o" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/std-a67e8415a6b8c7c5.crate.allocator.rcgu.o" "-nodefaultlibs" "-L" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps" "-L" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps" "-L" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/i686-pc-windows-gnu/native/libbacktrace/.libs" "-L" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/i686-pc-windows-gnu/native/jemalloc/lib" "-L" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/build/compiler_builtins-9a628b8811d527b1/out" "-L" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i686-pc-windows-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-l" "backtrace" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-l" "advapi32" "-l" "ws2_32" "-l" "userenv" "-l" "shell32" "-Wl,-Bstatic" "-Wl,--whole-archive" "/tmp/rustc.FVNpKszbVFbO/liballoc_system-c7c9f0b1ea532f1d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.FVNpKszbVFbO/libpanic_unwind-d399427d956f4fb4.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.FVNpKszbVFbO/libunwind-cbf709a3971b5aac.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.FVNpKszbVFbO/liblibc-3df2e5bf52a2af87.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.FVNpKszbVFbO/liballoc-b107440eaf44010a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.FVNpKszbVFbO/libstd_unicode-f8fa856fa5c731c6.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.FVNpKszbVFbO/libcore-504c7f6499de2474.rlib" "-Wl,--no-whole-archive" "/tmp/rustc.FVNpKszbVFbO/libcompiler_builtins-cf036af5054fa5f1.rlib" "-l" "gcc_eh" "-l" "pthread" "-shared" "-Wl,-Bdynamic" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i686-pc-windows-gnu/lib/rsend.o"
  = note: /tmp/rustc.FVNpKszbVFbO/libpanic_unwind-d399427d956f4fb4.rlib(panic_unwind-d399427d956f4fb4.panic_unwind1-a200335ad3a53671556e057b85cea9c.rs.rcgu.o): In function `rust_eh_unwind_resume':
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:291: undefined reference to `_Unwind_Resume'
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:291: undefined reference to `_Unwind_Resume'
          /tmp/rustc.FVNpKszbVFbO/libpanic_unwind-d399427d956f4fb4.rlib(panic_unwind-d399427d956f4fb4.panic_unwind1-a200335ad3a53671556e057b85cea9c.rs.rcgu.o): In function `ZN12panic_unwind3imp5panic17hc5bc44d5a40088ddE':
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:83: undefined reference to `_Unwind_RaiseException'
          /tmp/rustc.FVNpKszbVFbO/libpanic_unwind-d399427d956f4fb4.rlib(panic_unwind-d399427d956f4fb4.panic_unwind1-a200335ad3a53671556e057b85cea9c.rs.rcgu.o): In function `rust_eh_unwind_resume':
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:291: undefined reference to `_Unwind_Resume'
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:291: undefined reference to `_Unwind_Resume'
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:291: undefined reference to `_Unwind_Resume'
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:291: undefined reference to `_Unwind_Resume'
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:291: undefined reference to `_Unwind_Resume'
          /tmp/rustc.FVNpKszbVFbO/libpanic_unwind-d399427d956f4fb4.rlib(panic_unwind-d399427d956f4fb4.panic_unwind1-a200335ad3a53671556e057b85cea9c.rs.rcgu.o):/build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:291: more undefined references to `_Unwind_Resume' follow
          /tmp/rustc.FVNpKszbVFbO/libpanic_unwind-d399427d956f4fb4.rlib(panic_unwind-d399427d956f4fb4.panic_unwind3-a200335ad3a53671556e057b85cea9c.rs.rcgu.o): In function `ZN12panic_unwind3imp5panic17hc5bc44d5a40088ddE':
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:83: undefined reference to `_Unwind_RaiseException'
          /tmp/rustc.FVNpKszbVFbO/libpanic_unwind-d399427d956f4fb4.rlib(panic_unwind-d399427d956f4fb4.panic_unwind3-a200335ad3a53671556e057b85cea9c.rs.rcgu.o): In function `rust_eh_unwind_resume':
          /build/mingw-w64-rust/src/rustc-1.24.0-src/src/libpanic_unwind/gcc.rs:291: undefined reference to `_Unwind_Resume'
          collect2: error: ld returned 1 exit status


error: aborting due to previous error

error: Could not compile `std`.

Caused by:
  process didn't exit successfully: `/build/mingw-w64-rust/src/rustc-1.24.0-src/build/bootstrap/debug/rustc --crate-name std libstd/lib.rs --error-format json --crate-type dylib --crate-type rlib --emit=dep-info,link -C prefer-dynamic -C opt-level=2 --cfg feature="alloc_jemalloc" --cfg feature="backtrace" --cfg feature="jemalloc" --cfg feature="panic-unwind" --cfg feature="panic_unwind" -C metadata=a67e8415a6b8c7c5 -C extra-filename=-a67e8415a6b8c7c5 --out-dir /build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps --target i686-pc-windows-gnu -L dependency=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps -L dependency=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps --extern alloc_system=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/liballoc_system-c7c9f0b1ea532f1d.rlib --extern std_unicode=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/libstd_unicode-f8fa856fa5c731c6.rlib --extern alloc_jemalloc=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/liballoc_jemalloc-f4ed5f99239665b3.rlib --extern libc=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/liblibc-3df2e5bf52a2af87.rlib --extern alloc=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/liballoc-b107440eaf44010a.rlib --extern core=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/libcore-504c7f6499de2474.rlib --extern compiler_builtins=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/libcompiler_builtins-cf036af5054fa5f1.rlib --extern panic_abort=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/libpanic_abort-e540d5ed7a552aed.rlib --extern panic_unwind=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/libpanic_unwind-d399427d956f4fb4.rlib --extern unwind=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/deps/libunwind-cbf709a3971b5aac.rlib -L native=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/i686-pc-windows-gnu/native/libbacktrace/.libs -l static=backtrace -l advapi32 -l ws2_32 -l userenv -l shell32 -L native=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/i686-pc-windows-gnu/native/jemalloc/lib -L native=/build/mingw-w64-rust/src/rustc-1.24.0-src/build/x86_64-unknown-linux-gnu/stage2-std/i686-pc-windows-gnu/release/build/compiler_builtins-9a628b8811d527b1/out` (exit code: 101)
thread 'main' panicked at 'command did not execute successfully: "/usr/bin/cargo" "build" "--target" "i686-pc-windows-gnu" "--release" "--frozen" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/build/mingw-w64-rust/src/rustc-1.24.0-src/src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101', bootstrap/compile.rs:886:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failed to run: /build/mingw-w64-rust/src/rustc-1.24.0-src/build/bootstrap/debug/bootstrap build src/rustc src/libstd src/tools/cargo
Build completed unsuccessfully in 0:18:38

Martchus commented on 2018-02-18 17:17

The dependency gdb is missing. Since it is not in the groups base or base-devel it should be added explicitly.

xantares commented on 2018-02-17 15:13

the provides/conflict lines are useless; it's enough for the bin package to include these

pingplug commented on 2018-02-14 05:35

  1. Rust can not build upon sjlj version of MinGW (i686-w64-mingw32 toolchain in mingw-w64-gcc<10.1.0).
  2. building mingw-w64-rust will take about 50GiB, make sure that your $BUILDDIR have enough free space.
  3. Rust will check $prefix when packaging, please make an empty $prefix dir (for example /opt/rust) if you don't have one, and don't forget to remove this dir before install this package.
  4. THERE IS NO GUARANTEE RUST CAN HOST ITSELF WITH THE SAME VERSION OF RUST! They only test building rust from the last stable version of rust. This package will use the last version of rust for bootstrap, not depend on system rust.
  5. to use this, you should add /opt/rust/bin to PATH, and set CARGO_HOME to /opt/rust/cargo.

tsdgeos commented on 2018-02-13 17:45

Failed to compile https://paste.kde.org/ptxgsv522

I guess a dependency is needed?