-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rust 1.51 fails to build on X86_64 with llvm 10 #108422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Also I strongly recommend disabling incremental, if your build hasn't already, if you're doing a clean bootstrap from around that time. |
That said, feel free to ignore everything I just said. This was a problem for a much more mundane reason. You ran afoul of Which was not fixed until several versions later: b490ccc There likely isn't much to do except to retry until the kernel doesn't give anything that matches this arm, which may be a while if you are using a mildly interesting filesystem mounting: Some(ENOSYS | EXDEV | EINVAL | EPERM | EOPNOTSUPP | EBADF) => { |
Alternatively, you should be able to apply the diff in your tree and depending on where exactly it panicked for you, I should get picked up |
b490ccc The patch has been applied in rust1.51 the bug error is |
If you still need help, I suggest |
ok,in spec file i add next and try %{python} ./x.py doc clean %install DESTDIR=%{buildroot} %{python} ./x.py clean |
Dist rust-docs-1.51.0-x86_64-unknown-linux-gnu command did not execute successfully: "/builddir/build/BUILD/rustc-1.51.0-src/build/x86_64-unknown-linux-gnu/stage0-tools-bin/fabricate" "generate" "--image-dir" "/builddir/build/BUILD/rustc-1.51.0-src/build/tmp/tarball/rust-docs/x86_64-unknown-linux-gnu/image" "--component-name=rust-docs" "--bulk-dirs" "share/doc/rust/html" "--rel-manifest-dir=rustlib" "--legacy-manifest-dirs=rustlib,cargo" "--product-name=Rust Documentation" "--success-message=rust-docs installed." "--package-name=rust-docs-1.51.0-x86_64-unknown-linux-gnu" "--non-installed-overlay" "/builddir/build/BUILD/rustc-1.51.0-src/build/tmp/tarball/rust-docs/x86_64-unknown-linux-gnu/overlay" "--output-dir" "/builddir/build/BUILD/rustc-1.51.0-src/build/dist" "--work-dir" "/builddir/build/BUILD/rustc-1.51.0-src/build/tmp/tarball/rust-docs/x86_64-unknown-linux-gnu" failed to run: /builddir/build/BUILD/rustc-1.51.0-src/build/bootstrap/debug/bootstrap install RPM build errors: /usr/bin/systemd-nspawn -q -M 63b78429de8441738cb9d70c5116a570 -D /var/lib/mock/test/root -a --capability=cap_ipc_lock --bind=/tmp/mock-resolv.8jmaavq8:/etc/resolv.conf --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v$ --setenv=LANG=en_US.UTF-8 -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rust.spec |
Ah, to prevent this from happening, you would need to apply the diff to the version you are using to build, as the issue is recursive... but really, you should just build it on a different file system, and if you don't want to do that, then it's trying over and over until this build works (with the fix included). Sorry. :/ |
i'm build in a mock environment ,Simultaneous compilation aarch64 and x86_64 ,The aarch64 no program,just x86_64 this problem occurs。i chroot in mock environment and execute: /builddir/build/BUILD/rustc-1.51.0-src/build/x86_64-unknown-linux-gnu/stage0-tools-bin/fabricate" "generate" "--image-dir" "/builddir/build/BUILD/rustc-1.51.0-src/build/tmp/tarball/rust-docs/x86_64-unknown-linux-gnu/image" "--component-name=rust-docs" "--bulk-dirs" "share/doc/rust/html" "--rel-manifest-dir=rustlib" "--legacy-manifest-dirs=rustlib,cargo" "--product-name=Rust Documentation" "--success-message=rust-docs installed." "--package-name=rust-docs-1.51.0-x86_64-unknown-linux-gnu" "--non-installed-overlay" "/builddir/build/BUILD/rustc-1.51.0-src/build/tmp/tarball/rust-docs/x86_64-unknown-linux-gnu/overlay" "--output-dir" "/builddir/build/BUILD/rustc-1.51.0-src/build/dist" "--work-dir" "/builddir/build/BUILD/rustc-1.51.0-src/build/tmp/tarball/rust-docs/x86_64-unknown-linux-gnu" is not success |
Maybe with a more recent kernel? |
I replaced the underlying operating system centos8.2 Finish: rpmbuild rust-1.51.0-7.el8.src.rpm is susccess and don't know why |
Caused by: command did not execute successfully: "/root/rpmbuild/BUILD/rustc-1.51.0-src/build/x86_64-unknown-linux-gnu/stage0-tools-bin/fabricate" "generate" "--image-dir" "/root/rpmbuild/BUILD/rustc-1.51.0-src/build/tmp/tarball/rust-docs/x86_64-unknown-linux-gnu/image" "--component-name=rust-docs" "--bulk-dirs" "share/doc/rust/html" "--rel-manifest-dir=rustlib" "--legacy-manifest-dirs=rustlib,cargo" "--product-name=Rust Documentation" "--success-message=rust-docs installed." "--package-name=rust-docs-1.51.0-x86_64-unknown-linux-gnu" "--non-installed-overlay" "/root/rpmbuild/BUILD/rustc-1.51.0-src/build/tmp/tarball/rust-docs/x86_64-unknown-linux-gnu/overlay" "--output-dir" "/root/rpmbuild/BUILD/rustc-1.51.0-src/build/dist" "--work-dir" "/root/rpmbuild/BUILD/rustc-1.51.0-src/build/tmp/tarball/rust-docs/x86_64-unknown-linux-gnu" failed to run: /root/rpmbuild/BUILD/rustc-1.51.0-src/build/bootstrap/debug/bootstrap install RPM 构建错误: |
I'm going to go with "the kernel didn't give a buggy response this time". Where "buggy" is relative. But I am glad to hear this succeeded, and I strongly suggest using that success to move on past Rust 1.51. I don't think we can help further here. My apologies. |
I'm build rust 1.51 in a mock
llvm version llvm x86_64 10.0.1-2
cargo x86_64 1.50.0-1 build 3.8 M
The text was updated successfully, but these errors were encountered: