Re: update: lang/rust 1.24
On Mon, Feb 19, 2018 at 07:45:48AM +0100, Landry Breuil wrote: > On Sat, Feb 17, 2018 at 01:24:27PM +0100, Sebastien Marie wrote: > > Hi, > > > > The following diff update lang/rust to 1.24. > > > > Tests that was done: > > - build on i386 - but it seems the memory usage still grow. I added a > > new knob to try to reduce it. I was able to build but after several > > tries. BROKEN-i386 might be necessary ? > > > > - build on amd64 > > - pass rustc testsuite on amd64 > > Here make test fails early with: > > tidy error: > /usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/rustllvm/ArchiveWrapper.cpp:245: > tab character > tidy error: > /usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/rustllvm/ArchiveWrapper.cpp:245: > trailing whitespace > some tidy checks failed > > > command did not execute successfully: > "/usr/obj/ports/rust-1.24.0/build-amd64/build/x86_64-unknown-openbsd/stage0-tools-bin/tidy" > "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src" > expected success, got: exit code: 1 > > > Traceback (most recent call last): > File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/x.py", line 20, in > > bootstrap.main() > File > "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstrap.py", > line 758, in main > bootstrap() > File > "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstrap.py", > line 749, in bootstrap > run(args, env=env, verbose=build.verbose) > File > "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstrap.py", > line 148, in run > raise RuntimeError(err) > RuntimeError: failed to run: > /usr/obj/ports/rust-1.24.0/build-amd64/build/bootstrap/debug/bootstrap test > --jobs=1 > > > Other than that, it builds/packages on amd64, and fails on miniz-sys on i386 > at > the first try. Will give it another chance locally.. Tried on i386 4 or 5 times, always failed sadly. rustc command: "/build/obj/ports/rust-1.24.0/rustc-bootstrap-i386-1.24.0-20180213/bin/rustc" "--crate-name" "rustc" "librustc/lib.rs" "--crate-type" "dylib" "--emit=dep-info,link" "-C" "prefer-dynamic" "-C" "opt-level=2" "--cfg" "stage1" "--sysroot" "/build/obj/ports/rust-1.24.0/build-i386/build/i686-unknown-openbsd/stage0-sysroot" "-Cprefer-dynamic" "-C" "debug-assertions=n" "-C" "codegen-units=16" "-C" "opt-level=1" "-Z" "fewer-names" "-Z" "force-unstable-if-unmarked" "--color=always" terminating with uncaught exception of type std::bad_alloc: std::bad_alloc ... (signal: 6, SIGABRT: process abort signal) thread 'main' panicked at 'command did not execute successfully: "/build/obj/ports/rust-1.24.0/rustc-bootstrap-i386-1.24.0-20180213/bin/car go" "build" "--target" "i686-unknown-openbsd" "-j" "1" "-v" "--release" "--frozen" "--features" " jemalloc llvm" "--manifest-path" "/build/ obj/ports/rust-1.24.0/rustc-1.24.0-src/src/rustc/Cargo.toml" "--message-format" "json" expected success, got: exit code: 101', bootstrap/compile.rs:886:9 My ulimit is 3g/max. Landry
Re: update: lang/rust 1.24
On Sun, Feb 18, 2018 at 06:03:47PM +0100, Sebastien Marie wrote: Hello Sebastien, > It seems that the uploaded file is truncated in some way. > > $ tar zft rustc-bootstrap-amd64-1.24.0-20180213.tar.gz >/dev/null > gzip: stdin: Input/output error > tar: End of archive volume 1 reached > > distinfo has the right checksum. > > I am re-uploading the file (at 30K/s, so please wait a bit). I removed > the bad file, and the new one will be available once completely > uploaded. Thanks! With your update, it builds and installs correctly; and runs all the programs I've tried it upon. "make test" does fail with the same error that Landry noticed, although I must admit that it doesn't look very OpenBSD specific. Laurie -- Personal http://tratt.net/laurie/ Software Development Teamhttp://soft-dev.org/ https://github.com/ltratt http://twitter.com/laurencetratt
Re: update: lang/rust 1.24
On Sat, Feb 17, 2018 at 01:24:27PM +0100, Sebastien Marie wrote: > Hi, > > The following diff update lang/rust to 1.24. > > Tests that was done: > - build on i386 - but it seems the memory usage still grow. I added a > new knob to try to reduce it. I was able to build but after several > tries. BROKEN-i386 might be necessary ? > > - build on amd64 > - pass rustc testsuite on amd64 Here make test fails early with: tidy error: /usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/rustllvm/ArchiveWrapper.cpp:245: tab character tidy error: /usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/rustllvm/ArchiveWrapper.cpp:245: trailing whitespace some tidy checks failed command did not execute successfully: "/usr/obj/ports/rust-1.24.0/build-amd64/build/x86_64-unknown-openbsd/stage0-tools-bin/tidy" "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src" expected success, got: exit code: 1 Traceback (most recent call last): File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/x.py", line 20, in bootstrap.main() File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstrap.py", line 758, in main bootstrap() File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstrap.py", line 749, in bootstrap run(args, env=env, verbose=build.verbose) File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstrap.py", line 148, in run raise RuntimeError(err) RuntimeError: failed to run: /usr/obj/ports/rust-1.24.0/build-amd64/build/bootstrap/debug/bootstrap test --jobs=1 Other than that, it builds/packages on amd64, and fails on miniz-sys on i386 at the first try. Will give it another chance locally.. Landry
Re: update: lang/rust 1.24
On Sun, Feb 18, 2018 at 10:11:44AM +, Laurence Tratt wrote: > On Sat, Feb 17, 2018 at 01:24:27PM +0100, Sebastien Marie wrote: > > Hello Sebastien, > > > The following diff update lang/rust to 1.24. > > Thanks for this! I had a couple of problems. First the distinfo seems to be > out of date? I got this error from fetch: > > >> Size does not match for rust/rustc-bootstrap-amd64-1.24.0-20180213.tar.gz > > After I regenerated distinfo myself the build then died pretty quickly: > It seems that the uploaded file is truncated in some way. $ tar zft rustc-bootstrap-amd64-1.24.0-20180213.tar.gz >/dev/null gzip: stdin: Input/output error tar: End of archive volume 1 reached distinfo has the right checksum. I am re-uploading the file (at 30K/s, so please wait a bit). I removed the bad file, and the new one will be available once completely uploaded. Thanks for your report, and the sorry for the inconvenience. -- Sebastien Marie
Re: update: lang/rust 1.24
On Sat, Feb 17, 2018 at 01:24:27PM +0100, Sebastien Marie wrote: Hello Sebastien, > The following diff update lang/rust to 1.24. Thanks for this! I had a couple of problems. First the distinfo seems to be out of date? I got this error from fetch: >> Size does not match for rust/rustc-bootstrap-amd64-1.24.0-20180213.tar.gz After I regenerated distinfo myself the build then died pretty quickly: ===> Building for rust-1.24.0 cd /home/ports/pobj/rust-1.24.0/build-amd64 && exec /usr/bin/env -i LIBGIT2_SYS_USE_PKG_CONFIG=1 RUST_BACKTRACE=1 CC=cc PYTHONUSERBASE=/home/ports/pobj/rust-1.24.0 CONFIG_SITE='/home/ports/pobj/rust-1.24.0/config.site' LIBTOOL="/usr/local/bin/libtool" PATH='/home/ports/pobj/rust-1.24.0/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin' PREFIX='/usr/local' LOCALBASE='/usr/local' X11BASE='/usr/X11R6' CFLAGS='-O2 -pipe' TRUEPREFIX='/usr/local' DESTDIR='' HOME='/rust-1.24.0_writes_to_HOME' COMPILER_VERSION=clang PICFLAG="-fpic" BINGRP=bin BINOWN=root BINMODE=755 NONBINMODE=644 DIRMODE=755 INSTALL_COPY=-c INSTALL_STRIP=-s MANGRP=bin MANOWN=root MANMODE=644 BSD_INSTALL_PROGRAM="/home/ports/pobj/rust-1.24.0/bin/install -c -s -m 755" BSD_INSTALL_SCRIPT="/home/ports/pobj/rust-1.24.0/bin/install -c -m 755" BSD_INSTALL_DATA="/home/ports/pobj/rust-1.24.0/bin/install -c -m 644" BSD_INSTALL_MAN="/home/ports/pobj/rust-1.24.0/bin/install -c -m 644" BSD_INSTALL_PROGRAM_DIR="/home/ports/pobj/rust-1.24.0/bin/install -d -m 755" BSD_INSTALL_SCRIPT_DIR="/home/ports/pobj/rust-1.24.0/bin/install -d -m 755" BSD_INSTALL_DATA_DIR="/home/ports/pobj/rust-1.24.0/bin/install -d -m 755" BSD_INSTALL_MAN_DIR="/home/ports/pobj/rust-1.24.0/bin/install -d -m 755" /usr/local/bin/python2.7 /home/ports/pobj/rust-1.24.0/rustc-1.24.0-src/x.py dist --jobs=1 running: /home/ports/pobj/rust-1.24.0/rustc-bootstrap-amd64-1.24.0-20180213/bin/cargo build --manifest-path /home/ports/pobj/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/Cargo.toml --verbose --verbose --frozen error: process didn't exit successfully: `/home/ports/pobj/rust-1.24.0/rustc-bootstrap-amd64-1.24.0-20180213/bin/rustc -vV` (signal: 9, SIGKILL: kill) --- stderr ld.so: rustc.bin: can't load library 'libstd-660d119e70d3682d.so' Since this may be related to the distinfo problem, I haven't investigated further yet. Laurie -- Personal http://tratt.net/laurie/ Software Development Teamhttp://soft-dev.org/ https://github.com/ltratt http://twitter.com/laurencetratt