Skip to content

Instantly share code, notes, and snippets.

@zofrex
Created April 17, 2016 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zofrex/86388300187f8ebe99d712ba4753fe47 to your computer and use it in GitHub Desktop.
Save zofrex/86388300187f8ebe99d712ba4753fe47 to your computer and use it in GitHub Desktop.
# which rustc
which: rustc: Command not found.
# ./rustc-1.8.0/x86_64-unknown-openbsd/stage2/bin/rustc test.rs
./rustc-1.8.0/x86_64-unknown-openbsd/stage2/bin/rustc: can't load library 'libstd-db5a760f.so'
# cd rustc-1.8.0
# gmake install
. . . the usual, full output below ...
# which rustc
/usr/local/bin/rustc
# cd ..
# rustc test.rs
error: can't find crate for `std` [E0463]
error: aborting due to previous error
# ./rustc-1.8.0/x86_64-unknown-openbsd/stage2/bin/rustc test.rs
# ./test
Hello
cfg: version 1.8.0-dev
cfg: build triple x86_64-unknown-openbsd
cfg: host triples x86_64-unknown-openbsd
cfg: target triples x86_64-unknown-openbsd
cfg: host for x86_64-unknown-openbsd is x86_64
cfg: os for x86_64-unknown-openbsd is unknown-openbsd
cfg: no good valgrind for x86_64-unknown-openbsd
cfg: using CC=egcc (CFG_CC)
cfg: using CXX=eg++ (CFG_CXX)
cfg: disabling valgrind run-pass tests
cfg: including prepare rules
cfg: including dist rules
cfg: including install rules
gmake[1]: Entering directory '/home/zofrex/rustc-1.8.0'
cfg: version 1.8.0-dev
cfg: build triple x86_64-unknown-openbsd
cfg: host triples x86_64-unknown-openbsd
cfg: target triples x86_64-unknown-openbsd
cfg: host for x86_64-unknown-openbsd is x86_64
cfg: os for x86_64-unknown-openbsd is unknown-openbsd
cfg: no good valgrind for x86_64-unknown-openbsd
cfg: using CC=egcc (CFG_CC)
cfg: using CXX=eg++ (CFG_CXX)
cfg: disabling valgrind run-pass tests
cfg: including prepare rules
cfg: including dist rules
cfg: including install rules
cleaning destination tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/bin
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/etc
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/share/man/man1
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libstd-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/liblog-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libterm-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libserialize-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libarena-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libsyntax-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libfmt_macros-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libflate-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libgetopts-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librbml-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_front-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libgraphviz-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_llvm-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_back-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_data_structures-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_borrowck-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_platform_intrinsics-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_typeck-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_mir-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_resolve-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_trans-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_privacy-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_lint-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_metadata-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_plugin-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libsyntax_ext-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_passes-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustc_driver-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/libtest-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/lib/librustdoc-*.so
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/bin/rustdoc
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/share/man/man1/rustdoc.1
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/bin/rustc
prepare: tmp/dist/rustc-1.8.0-dev-x86_64-unknown-openbsd-image/share/man/man1/rustc.1
build: dist/rustc-1.8.0-dev-x86_64-unknown-openbsd.tar.gz
gen-installer: looking for programs
gen-installer:
gen-installer: found tar
gen-installer: found cp
gen-installer: found rm
gen-installer: found mkdir
gen-installer: found echo
gen-installer: found tr
gen-installer: found awk
gen-installer:
gen-installer: processing arguments
gen-installer:
gen-installer: CFG_PRODUCT_NAME := Rust
gen-installer: CFG_COMPONENT_NAME := rustc
gen-installer: CFG_PACKAGE_NAME := rustc-1.8.0-dev-x86_64-unknown-open ...
gen-installer: CFG_REL_MANIFEST_DIR := rustlib
gen-installer: CFG_SUCCESS_MESSAGE := Rust-is-ready-to-roll.
gen-installer: CFG_LEGACY_MANIFEST_DIRS := rustlib,cargo
gen-installer: CFG_NON_INSTALLED_OVERLAY := tmp/dist/rustc-1.8.0-dev-x86_64-unk ...
gen-installer: CFG_BULK_DIRS :=
gen-installer: CFG_IMAGE_DIR := tmp/dist/rustc-1.8.0-dev-x86_64-unk ...
gen-installer: CFG_WORK_DIR := tmp/dist
gen-installer: CFG_OUTPUT_DIR := dist
gen-installer:
gen-installer: validating arguments
gen-installer:
gen-install-script: looking for install programs
gen-install-script:
gen-install-script: found sed
gen-install-script: found chmod
gen-install-script: found cat
gen-install-script:
gen-install-script: processing arguments
gen-install-script:
gen-install-script: CFG_PRODUCT_NAME := Rust
gen-install-script: CFG_REL_MANIFEST_DIR := rustlib
gen-install-script: CFG_SUCCESS_MESSAGE := Rust-is-ready-to-roll.
gen-install-script: CFG_OUTPUT_SCRIPT := tmp/dist/rustc-1.8.0-dev-x86_64-unk ...
gen-install-script: CFG_LEGACY_MANIFEST_DIRS := rustlib,cargo
gen-install-script:
gen-install-script: validating arguments
gen-install-script:
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/bin
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/liblibc-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libstd-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libstd-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libflate-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libflate-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libarena-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libarena-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libterm-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libterm-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libserialize-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libserialize-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libgetopts-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libgetopts-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libcollections-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libtest-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libtest-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librand-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/liblog-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/liblog-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libgraphviz-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libgraphviz-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libcore-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librbml-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librbml-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/liballoc-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_unicode-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_bitflags-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/liballoc_system-*.rlib
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libsyntax-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libsyntax_ext-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_typeck-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_mir-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_borrowck-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_resolve-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_driver-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_trans-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_back-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_llvm-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_privacy-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_lint-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_data_structures-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_front-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_platform_intrinsics-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_plugin-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_metadata-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustc_passes-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/librustdoc-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libfmt_macros-*.so
prepare: tmp/dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd-image/lib/rustlib/x86_64-unknown-openbsd/lib/libcompiler-rt.a
build: dist/rust-std-1.8.0-dev-x86_64-unknown-openbsd.tar.gz
gen-installer: looking for programs
gen-installer:
gen-installer: found tar
gen-installer: found cp
gen-installer: found rm
gen-installer: found mkdir
gen-installer: found echo
gen-installer: found tr
gen-installer: found awk
gen-installer:
gen-installer: processing arguments
gen-installer:
gen-installer: CFG_PRODUCT_NAME := Rust
gen-installer: CFG_COMPONENT_NAME := rust-std-x86_64-unknown-openbsd
gen-installer: CFG_PACKAGE_NAME := rust-std-1.8.0-dev-x86_64-unknown-o ...
gen-installer: CFG_REL_MANIFEST_DIR := rustlib
gen-installer: CFG_SUCCESS_MESSAGE := std-is-standing-at-the-ready.
gen-installer: CFG_LEGACY_MANIFEST_DIRS := rustlib,cargo
gen-installer: CFG_NON_INSTALLED_OVERLAY :=
gen-installer: CFG_BULK_DIRS :=
gen-installer: CFG_IMAGE_DIR := tmp/dist/rust-std-1.8.0-dev-x86_64- ...
gen-installer: CFG_WORK_DIR := tmp/dist
gen-installer: CFG_OUTPUT_DIR := dist
gen-installer:
gen-installer: validating arguments
gen-installer:
gen-install-script: looking for install programs
gen-install-script:
gen-install-script: found sed
gen-install-script: found chmod
gen-install-script: found cat
gen-install-script:
gen-install-script: processing arguments
gen-install-script:
gen-install-script: CFG_PRODUCT_NAME := Rust
gen-install-script: CFG_REL_MANIFEST_DIR := rustlib
gen-install-script: CFG_SUCCESS_MESSAGE := std-is-standing-at-the-ready.
gen-install-script: CFG_OUTPUT_SCRIPT := tmp/dist/rust-std-1.8.0-dev-x86_64- ...
gen-install-script: CFG_LEGACY_MANIFEST_DIRS := rustlib,cargo
gen-install-script:
gen-install-script: validating arguments
gen-install-script:
build: dist/rust-docs-1.8.0-dev-x86_64-unknown-openbsd.tar.gz
gen-installer: looking for programs
gen-installer:
gen-installer: found tar
gen-installer: found cp
gen-installer: found rm
gen-installer: found mkdir
gen-installer: found echo
gen-installer: found tr
gen-installer: found awk
gen-installer:
gen-installer: processing arguments
gen-installer:
gen-installer: CFG_PRODUCT_NAME := Rust-Documentation
gen-installer: CFG_COMPONENT_NAME := rust-docs
gen-installer: CFG_PACKAGE_NAME := rust-docs-1.8.0-dev-x86_64-unknown- ...
gen-installer: CFG_REL_MANIFEST_DIR := rustlib
gen-installer: CFG_SUCCESS_MESSAGE := Rust-documentation-is-installed.
gen-installer: CFG_LEGACY_MANIFEST_DIRS := rustlib,cargo
gen-installer: CFG_NON_INSTALLED_OVERLAY :=
gen-installer: CFG_BULK_DIRS := share/doc/rust/html
gen-installer: CFG_IMAGE_DIR := tmp/dist/rust-docs-1.8.0-dev-x86_64 ...
gen-installer: CFG_WORK_DIR := tmp/dist
gen-installer: CFG_OUTPUT_DIR := dist
gen-installer:
gen-installer: validating arguments
gen-installer:
gen-install-script: looking for install programs
gen-install-script:
gen-install-script: found sed
gen-install-script: found chmod
gen-install-script: found cat
gen-install-script:
gen-install-script: processing arguments
gen-install-script:
gen-install-script: CFG_PRODUCT_NAME := Rust-Documentation
gen-install-script: CFG_REL_MANIFEST_DIR := rustlib
gen-install-script: CFG_SUCCESS_MESSAGE := Rust-documentation-is-installed.
gen-install-script: CFG_OUTPUT_SCRIPT := tmp/dist/rust-docs-1.8.0-dev-x86_64 ...
gen-install-script: CFG_LEGACY_MANIFEST_DIRS := rustlib,cargo
gen-install-script:
gen-install-script: validating arguments
gen-install-script:
gmake[1]: Leaving directory '/home/zofrex/rustc-1.8.0'
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rust-docs'
Rust documentation is installed.
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rust-std-x86_64-unknown-openbsd'
std is standing at the ready.
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rustc'
Rust is ready to roll.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment