RStudio - Windows - Issue installing hellorust: Error E0463

Hi,
I am new to Rust. I wanted to integrate RStudio with Rust and have been following the new install instructions for Rust/Cargo. In RStudio I keep receiving error E0463 when I try to install the ‘hellorust’ package.

I have tried re-installing Rust as well as Cargo. Along with toolchains. No such luck.

**error[E0463]: can’t find crate for core
|
= note: the x86_64-pc-windows-gnu target may not be installed

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: Could not compile winapi-x86_64-pc-windows-gnu.
warning: build failed, waiting for other jobs to finish…
error: build failed
make: *** [Makevars.win:11: myrustlib/target/x86_64-pc-windows-gnu/release/myrustlib.lib] Error 101
ERROR: compilation failed for package ‘hellorust’

  • removing ‘C:/Users/curtiskm/Documents/R/win-library/3.6/hellorust’**

devtools::install_github(“r-rust/hellorust”)
Downloading GitHub repo r-rust/hellorust@master
√ checking for file ‘C:\Users\curtiskm\AppData\Local\Temp\Rtmp0oqAjP\remotes3438771a662f\r-rust-hellorust-cc6edc0/DESCRIPTION’ …

  • preparing ‘hellorust’:
    √ checking DESCRIPTION meta-information …
  • cleaning src
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • building ‘hellorust_0.1.0.tar.gz’
    Warning: file ‘hellorust/configure’ did not have execute permissions: corrected

Installing package into ‘C:/Users/curtiskm/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)

  • installing source package ‘hellorust’ …
    ** using staged installation


    WARNING: this package has a configure script
    It probably needs manual configuration


** libs

*** arch - i386
rm -Rf hellorust.dll myrustlib/target/i686-pc-windows-gnu/release/myrustlib.lib wrapper.o myrustlib/target
c:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.0/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c wrapper.c -o wrapper.o
cargo build --target=i686-pc-windows-gnu --release --manifest-path=myrustlib/Cargo.toml
Updating crates.io index
Compiling winapi-i686-pc-windows-gnu v0.4.0
Compiling winapi v0.3.7
Compiling libc v0.2.54
Compiling rand v0.4.6
Compiling myrustlib v0.1.0 (C:\Users\curtiskm\AppData\Local\Temp\Rtmpua7jvG\R.INSTALL54841a72316\hellorust\src-i386\myrustlib)
Finished release [optimized] target(s) in 5.76s
C:\Rtools\mingw_32\bin\nm.exe: ‘myrustlib/target/-pc-windows-gnu/release/myrustlib.lib’: No such file
c:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o hellorust.dll tmp.def wrapper.o -Lmyrustlib/target/i686-pc-windows-gnu/release -lmyrustlib -lws2_32 -ladvapi32 -luserenv -LC:/PROGRA~1/R/R-36~1.0/bin/i386 -lR
installing to C:/Users/curtiskm/Documents/R/win-library/3.6/00LOCK-hellorust/00new/hellorust/libs/i386

*** arch - x64
rm -Rf hellorust.dll myrustlib/target/x86_64-pc-windows-gnu/release/myrustlib.lib wrapper.o myrustlib/target
c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.0/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c wrapper.c -o wrapper.o
cargo build --target=x86_64-pc-windows-gnu --release --manifest-path=myrustlib/Cargo.toml
Updating crates.io index
Compiling winapi-x86_64-pc-windows-gnu v0.4.0
Compiling winapi v0.3.7
Compiling libc v0.2.54
error[E0463]: can’t find crate for core
|
= note: the x86_64-pc-windows-gnu target may not be installed

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: Could not compile winapi-x86_64-pc-windows-gnu.
warning: build failed, waiting for other jobs to finish…
error: build failed
make: *** [Makevars.win:11: myrustlib/target/x86_64-pc-windows-gnu/release/myrustlib.lib] Error 101
ERROR: compilation failed for package ‘hellorust’

  • removing ‘C:/Users/curtiskm/Documents/R/win-library/3.6/hellorust’
    Error in i.p(…) :
    (converted from warning) installation of package ‘C:/Users/curtiskm/AppData/Local/Temp/Rtmp0oqAjP/file3438239b7c2/hellorust_0.1.0.tar.gz’ had non-zero exit status

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.