Jump to content

Search the Community

Showing results for tags 'rust'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Funtoo Discussion Forums
    • News and Announcements
    • General Discussion
    • Dev Central
    • Funtoo Hosting
    • Funtoo Infrastructure
  • Help Central
    • General Help
    • Installation Help
    • Portage Help
    • Desktop Help
    • Server Help
  • Funtoo Services

Blogs

  • danielv's Blog
  • eusanpe
  • saraedward's Blog
  • Simple Step-by-Step Server Setup
  • andreawilson's Blog
  • maldoror's Blog
  • Not So Stupid Admin Tricks
  • drobbins' Blog
  • Sandro's Blog
  • Chris Kurlinski's Blog
  • decision theory
  • 666threesixes666's Blog
  • psychopatch's Blog
  • haxmeister's Blog
  • It's a Bear's life
  • Linux Container Club - LXD/LXC's Blog
  • Funtoo Perl Hackers's Perl on Funtoo

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


freenode


github


web


First Name


Last Name


Location


Interests

Found 2 results

  1. hi, i tried compiling rust on my desktop but it failed numerous time, i tried running emerge like i'd normally do, i also tried running it with only one job using MAKEOPTS="-j1", i have 12GiB of RAM and the same amount of swap so memory isn't the problem. i used these use flags : "clippy parallel-compiler rustfmt nightly" and here is the error (i also provided the output of emerge --info '=dev-lang/rust-1.46.0::lang-kit' as an attachment) anybody has any idea about what is causing this ? PS : i asked this question on the discord server too, please don't kill me if i shouldn't do it here too Running `/var/tmp/portage/dev-lang/rust-1.46.0/work/rust-stage0/bin/rustc --crate-name build_script_build /var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/vendor/crossbeam-utils/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -Cembed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="lazy_static"' --cfg 'feature="std"' -C metadata=b75193f5c76106f2 -C extra-filename=-b75193f5c76106f2 --out-dir /var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/build/bootstrap/debug/build/crossbeam-utils-b75193f5c76106f2 -L dependency=/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/build/bootstrap/debug/deps --extern autocfg=/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/build/bootstrap/debug/deps/libautocfg-ac8e1a092cbfaee6.rlib --cap-lints allow -C target-cpu=haswell -Cdebuginfo=2 -C linker=x86_64-pc-linux-gnu-gcc -Wrust_2018_idioms -Wunused_lifetimes -Dwarnings` The futex facility returned an unexpected error code. error: could not compile `memchr`. Caused by: process didn't exit successfully: `/var/tmp/portage/dev-lang/rust-1.46.0/work/rust-stage0/bin/rustc --crate-name memchr /var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/vendor/memchr/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -Cembed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' --cfg 'feature="use_std"' -C metadata=bb39e2a5397cb723 -C extra-filename=-bb39e2a5397cb723 --out-dir /var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/build/bootstrap/debug/deps -L dependency=/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/build/bootstrap/debug/deps --cap-lints allow -C target-cpu=haswell -Cdebuginfo=2 -C linker=x86_64-pc-linux-gnu-gcc -Wrust_2018_idioms -Wunused_lifetimes -Dwarnings --cfg memchr_runtime_simd --cfg memchr_runtime_sse2 --cfg memchr_runtime_sse42 --cfg memchr_runtime_avx` (exit code: 134) warning: build failed, waiting for other jobs to finish... error: build failed Traceback (most recent call last): File "./x.py", line 11, in <module> bootstrap.main() File "/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/src/bootstrap/bootstrap.py", line 981, in main bootstrap(help_triggered) File "/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/src/bootstrap/bootstrap.py", line 948, in bootstrap build.build_bootstrap() File "/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/src/bootstrap/bootstrap.py", line 733, in build_bootstrap run(args, env=env, verbose=self.verbose) File "/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/src/bootstrap/bootstrap.py", line 143, in run raise RuntimeError(err) RuntimeError: failed to run: /var/tmp/portage/dev-lang/rust-1.46.0/work/rust-stage0/bin/cargo build --manifest-path /var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src/src/bootstrap/Cargo.toml --verbose --locked --frozen * ERROR: dev-lang/rust-1.46.0::lang-kit failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 3652: Called die * The specific snippet of code: * env $(cat "${S}"/config.env) RUST_BACKTRACE=1 "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) || die * * If you need support, post the output of `emerge --info '=dev-lang/rust-1.46.0::lang-kit'`, * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.46.0::lang-kit'`. * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.46.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.46.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src' * S: '/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src' * Messages for package dev-lang/rust-1.46.0: * ERROR: dev-lang/rust-1.46.0::lang-kit failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 3652: Called die * The specific snippet of code: * env $(cat "${S}"/config.env) RUST_BACKTRACE=1 "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) || die * * If you need support, post the output of `emerge --info '=dev-lang/rust-1.46.0::lang-kit'`, * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.46.0::lang-kit'`. * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.46.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.46.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src' * S: '/var/tmp/portage/dev-lang/rust-1.46.0/work/rustc-1.46.0-src' emerge-info
  2. Hi. I'm trying to install the rust-1.31.1 package. During compilation an error occurs because the machine has less than 4GB of memory. So I created an overlay and changed the limit from 4GB to 3GB. # free -m total used free shared buff/cache available Mem: 3416 686 298 1 2432 2449 Swap: 8191 0 8191 I followed this guide: Local Overlay My steps: 1. Creating the local reposiotry mkdir /var/git/overlay cd /var/git/overlay git clone https://github.com/funtoo/skeleton-overlay.git myoverlay echo "myoverlay" > /var/git/overlay/myoverlay/profiles/repo_name 2. Editing the /etc/portage/repos.conf/myoverlay.conf file: # nano /etc/portage/repos.conf/myoverlay.conf [myoverlay] location = /var/git/overlay/myoverlay auto-sync = no priority = 10 3. Creating the ebuild's path: # install -d /var/git/overlay/myoverlay/dev-lang/rust # cd /var/git/overlay/myoverlay/dev-lang/rust # cp -r /var/git/meta-repo/kits/net-kit/dev-lang/rust/* . 4. Modifying the check parameter CHECKREQS_MEMORY="4G" by CHECKREQS_MEMORY="3G" into rust-1.31.1.ebuild. 5. Digesting the ebuild: # ebuild /var/git/overlay/myoverlay/dev-lang/rust/rust-1.31.1.ebuild digest >>> Creating Manifest for /var/git/overlay/myoverlay/dev-lang/rust After that all versions of rust were downloaded. by the ebuild command. 6. Emerging the package: # emerge rust Calculating dependencies... done! >>> Verifying ebuild manifests >>> Running pre-merge checks for dev-lang/rust-1.31.1 * Checking for at least 3 GiB RAM ... [ ok ] * Checking for at least 7 GiB disk space at "/var/tmp/portage/dev-lang/rust-1.31.1/temp" ... [ ok ] >>> Emerging (1 of 1) dev-lang/rust-1.31.1::myoverlay * rustc-1.31.1-src.tar.xz SHA512 size ;-) ... [ ok ] * rust-1.30.1-x86_64-unknown-linux-gnu.tar.xz SHA512 size ;-) ... [ ok ] * Checking for at least 3 GiB RAM ... [ ok ] * Checking for at least 7 GiB disk space at "/var/tmp/portage/dev-lang/rust-1.31.1/temp" ... [ ok ] >>> Unpacking source... >>> Unpacking rustc-1.31.1-src.tar.xz to /var/tmp/portage/dev-lang/rust-1.31.1/work >>> Unpacking rust-1.30.1-x86_64-unknown-linux-gnu.tar.xz to /var/tmp/portage/dev-lang/rust-1.31.1/work >>> Source unpacked in /var/tmp/portage/dev-lang/rust-1.31.1/work >>> Preparing source in /var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src ... install: creating uninstall script at /var/tmp/portage/dev-lang/rust-1.31.1/work/rust-stage0/lib/rustlib/uninstall.sh install: installing component 'rustc' install: installing component 'cargo' install: installing component 'rls-preview' install: installing component 'clippy-preview' install: installing component 'rustfmt-preview' install: installing component 'llvm-tools-preview' install: installing component 'rust-analysis-x86_64-unknown-linux-gnu' install: installing component 'rust-std-x86_64-unknown-linux-gnu' install: installing component 'rust-docs' Rust is ready to roll. * Applying 1.30.1-clippy-sysroot.patch ... /var/tmp/portage/dev-lang/rust-1.31.1/temp/environment: line 1172: /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch : No such file or directory [ !! ] * ERROR: dev-lang/rust-1.31.1::myoverlay failed (prepare phase): * patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch * * Call stack: * ebuild.sh, line 92: Called src_prepare * environment, line 4389: Called default * phase-functions.sh, line 868: Called default_src_prepare * phase-functions.sh, line 933: Called __eapi6_src_prepare * environment, line 270: Called eapply '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * environment, line 1237: Called _eapply_patch '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * environment, line 1175: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * isolated-functions.sh, line 121: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=dev-lang/rust-1.31.1::myoverlay'`, * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.31.1::myoverlay'`. * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src' * S: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src' >>> Failed to emerge dev-lang/rust-1.31.1, Log file: >>> '/var/tmp/portage/dev-lang/rust-1.31.1/temp/build.log' * Messages for package dev-lang/rust-1.31.1: * ERROR: dev-lang/rust-1.31.1::myoverlay failed (prepare phase): * patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch * * Call stack: * ebuild.sh, line 92: Called src_prepare * environment, line 4389: Called default * phase-functions.sh, line 868: Called default_src_prepare * phase-functions.sh, line 933: Called __eapi6_src_prepare * environment, line 270: Called eapply '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * environment, line 1237: Called _eapply_patch '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * environment, line 1175: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * isolated-functions.sh, line 121: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=dev-lang/rust-1.31.1::myoverlay'`, * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.31.1::myoverlay'`. * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src' * S: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src' The error is: * Applying 1.30.1-clippy-sysroot.patch ... /var/tmp/portage/dev-lang/rust-1.31.1/temp/environment: line 1172: /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch : No such file or directory [ !! ] * ERROR: dev-lang/rust-1.31.1::myoverlay failed (prepare phase): * patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch But the file /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch exists! ? # ls -lash /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch 4.0K -rw-r--r-- 1 root root 2.9K Jan 11 15:45 /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch What can I do ? My best regards. Duca.
×
×
  • Create New...