I see things heading in the right direction, but it’s missing some base libraries. I have the proper .so’s but it I can’t find the correct way to tell the rust build system about them.
Also, it appears to be using the system’s CC when it could be using the cross compiler?
export PATH=$PATH:/home/kallisti5/Code/haiku/generated.x86_64/cross-tools-x86_64/bin
./configure --enable-rustbuild --host=x86_64-unknown-haiku --disable-jemalloc
make dist
Build error:
Documenting stage2 error index (x86_64-unknown-linux-gnu)
Dist docs stage2 (x86_64-unknown-linux-gnu)
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.14.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 := /home/kallisti5/Code/rust/build/tmp ...
gen-installer: CFG_WORK_DIR := /home/kallisti5/Code/rust/build/tmp ...
gen-installer: CFG_OUTPUT_DIR := /home/kallisti5/Code/rust/build/dis ...
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 := /home/kallisti5/Code/rust/build/tmp ...
gen-install-script: CFG_LEGACY_MANIFEST_DIRS := rustlib,cargo
gen-install-script:
gen-install-script: validating arguments
gen-install-script:
Dist std stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
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-linux-gnu
gen-installer: CFG_PACKAGE_NAME := rust-std-1.14.0-dev-x86_64-unknown- ...
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 := /home/kallisti5/Code/rust/build/tmp ...
gen-installer: CFG_WORK_DIR := /home/kallisti5/Code/rust/build/tmp ...
gen-installer: CFG_OUTPUT_DIR := /home/kallisti5/Code/rust/build/dis ...
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 := /home/kallisti5/Code/rust/build/tmp ...
gen-install-script: CFG_LEGACY_MANIFEST_DIRS := rustlib,cargo
gen-install-script:
gen-install-script: validating arguments
gen-install-script:
Documenting stage2 standalone (x86_64-unknown-haiku)
Building stage2 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-haiku)
Compiling core v0.0.0 (file:///home/kallisti5/Code/rust/src/libcore)
Compiling unwind v0.0.0 (file:///home/kallisti5/Code/rust/src/libunwind)
Compiling libc v0.0.0 (file:///home/kallisti5/Code/rust/src/rustc/libc_shim)
Compiling compiler_builtins v0.0.0 (file:///home/kallisti5/Code/rust/src/libcompiler_builtins)
Compiling std v0.0.0 (file:///home/kallisti5/Code/rust/src/libstd)
Compiling alloc v0.0.0 (file:///home/kallisti5/Code/rust/src/liballoc)
Compiling rustc_unicode v0.0.0 (file:///home/kallisti5/Code/rust/src/librustc_unicode)
Compiling rand v0.0.0 (file:///home/kallisti5/Code/rust/src/librand)
Compiling alloc_system v0.0.0 (file:///home/kallisti5/Code/rust/src/liballoc_system)
Compiling panic_unwind v0.0.0 (file:///home/kallisti5/Code/rust/src/libpanic_unwind)
Compiling panic_abort v0.0.0 (file:///home/kallisti5/Code/rust/src/libpanic_abort)
Compiling collections v0.0.0 (file:///home/kallisti5/Code/rust/src/libcollections)
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-m64" "-L" "/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-haiku/lib" "/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-haiku/release/deps/std-d8a6cc1478c5db9d.0.o" "-o" "/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-haiku/release/deps/libstd-d8a6cc1478c5db9d.so" "/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-haiku/release/deps/std-d8a6cc1478c5db9d.metadata.o" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-haiku/release/deps" "-L" "/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-haiku/release/build/std-07b7501857e2a858/out/.libs" "-L" "/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-haiku/release/build/compiler_builtins-9734521b54594229/out" "-L" "/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-haiku/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-l" "backtrace" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-Wl,--whole-archive" "/tmp/rustc.UQLCwR6S7PWF/libpanic_unwind-eb34f7fa41054e2f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.UQLCwR6S7PWF/libcollections-9733680f2020ce9f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.UQLCwR6S7PWF/liballoc-ed58344ca3d700e9.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.UQLCwR6S7PWF/liballoc_system-15c47616c189f14f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.UQLCwR6S7PWF/librustc_unicode-f4b8177343581733.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.UQLCwR6S7PWF/libunwind-daa256cef88cf5fa.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.UQLCwR6S7PWF/liblibc-b7c62ebc89012cfb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.UQLCwR6S7PWF/librand-accc4b4a4017bf13.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.UQLCwR6S7PWF/libcore-254b2218cd876a2a.rlib" "-Wl,--no-whole-archive" "/tmp/rustc.UQLCwR6S7PWF/libcompiler_builtins-caf9eea0439968c2.rlib" "-l" "root" "-l" "network" "-shared" "-Wl,-rpath,$ORIGIN/../lib"
= note: /usr/bin/ld: cannot find -lroot
/usr/bin/ld: cannot find -lnetwork
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: Could not compile `std`.
To learn more, run the command again with --verbose.
command did not execute successfully: "/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "-j" "4" "--target" "x86_64-unknown-haiku" "--release" "--features" " backtrace" "--manifest-path" "/home/kallisti5/Code/rust/src/rustc/std_shim/Cargo.toml"
expected success, got: exit code: 101
Makefile:53: recipe for target 'dist' failed
make: *** [dist] Error 1