pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Rust amd64 build failure.



Hopefully it is OK hijacking thi thread - just because the subject is compatible?

Since a couple of weeks i am unable to build rust from source on my netbsd amd64 systems.
The error that annoys me most is „not a git repository“.  sometimes followed by a name: „.git“ - which is a name find does not find anywhere...

the last successful build was
 116329337 Jun  4 03:33 /usr/pkgsrc/packages/All/rust-1.69.0.tgz

Platforms are:
NetBSD 9.99.98, NetBSD 10.99.2 and NetBSD 9.99.101
with corresponding userland.

When deinstalling rust, a new build fails slightly different in that it stops during libssh2 build

The following warnings were emitted during compilation:

warning: libssh2/src/kex.c: In function 'diffie_hellman_sha_algo':
warning: libssh2/src/kex.c:259:34: error: 'LIBSSH2_DH_MAX_MODULUS_BITS' undeclared (first use in this function); did you mean 'OPENSSL_DH_MAX_MODULUS_BITS'?
warning:   259 |         if(_libssh2_bn_bits(p) > LIBSSH2_DH_MAX_MODULUS_BITS) {
warning:       |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
warning:       |                                  OPENSSL_DH_MAX_MODULUS_BITS
[...]
error: failed to run custom build command for `libssh2-sys v0.2.23`
[...]
  --- stderr
  fatal: not a git repository (or any of the parent directories): .git



This all is without any options.  When selecting rust-cargo-static, rust just builds fine.

What is happening here?

Cheers
	Oskar


-----------
28f9f70d40ea4a43/out/build" "-fvisibility=hidden" "-DHAVE_LONGLONG" "-DHAVE_SNPRINTF" "-DHAVE_UNISTD_H" "-DHAVE_INTTYPES_H" "-DHAVE_STDLIB_H" "-DHAVE_SYS_SELECT_H" "-DHAVE_SYS_SOCKET_H" "-DHAVE_SYS_IOCTL_H" "-DHAVE_SYS_TIME_H" "-DHAVE_SYS_UN_H" "-DHAVE_O_NONBLOCK" "-DLIBSSH2_OPENSSL" "-DHAVE_LIBCRYPT32" "-DHAVE_EVP_AES_128_CTR" "-DHAVE_POLL" "-DHAVE_GETTIMEOFDAY" "-DLIBSSH2_DH_GEX_NEW" "-DLIBSSH2_HAVE_ZLIB" "-o" "/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libssh2-sys-28f9f70d40ea4a43/out/build/libssh2/src/knownhost.o" "-c" "libssh2/src/knownhost.c"
  exit status: 0

  --- stderr
  fatal: not a git repository (or any parent up to mount point /var)
  Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).


  error occurred: Command "gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-O2" "-fPIC" "-D_FORTIFY_SOURCE=2" "-I/usr/pkg/include" "-I/usr/include" "-I/usr/include/krb5" "-DLDAP_DEPRECATED" "-I/usr/pkg/include/python3.11" "-I" "/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libssh2-sys-28f9f70d40ea4a43/out/include" "-I" "libssh2/src" "-I" "/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libssh2-sys-28f9f70d40ea4a43/out/build" "-fvisibility=hidden" "-DHAVE_LONGLONG" "-DHAVE_SNPRINTF" "-DHAVE_UNISTD_H" "-DHAVE_INTTYPES_H" "-DHAVE_STDLIB_H" "-DHAVE_SYS_SELECT_H" "-DHAVE_SYS_SOCKET_H" "-DHAVE_SYS_IOCTL_H" "-DHAVE_SYS_TIME_H" "-DHAVE_SYS_UN_H" "-DHAVE_O_NONBLOCK" "-DLIBSSH2_OPENSSL" "-DHAVE_LIBCRYPT32" "-DHAVE_EVP_AES_128_CTR" "-DHAVE_POLL" "-DHAVE_GETTIMEOFDAY" "-DLIBSSH2_DH_GEX_NEW" "-DLIBSSH2_HAVE_ZLIB" "-o" "/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libssh2-sys-28f9f70d40ea4a43/out/build/libssh2/src/kex.o" "-c" "libssh2/src/kex.c" with args "gcc" did not execute successfully (status code exit status: 1).


warning: build failed, waiting for other jobs to finish...
command did not execute successfully: cd "/var/build/lang/rust/work/rustc-1.69.0-src" && AR_x86_64_unknown_netbsd="ar" CARGO_INCREMENTAL="0" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_TARGET_DIR="/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2-tools" CC_x86_64_unknown_netbsd="gcc" CFG_COMPILER_HOST_TRIPLE="x86_64-unknown-netbsd" CFG_RELEASE="1.69.0" CFG_RELEASE_CHANNEL="stable" CFG_RELEASE_NUM="1.69.0" CFG_VERSION="1.69.0 (84c898d65 2023-04-16) (built from a source tarball)" CFLAGS_x86_64_unknown_netbsd="-O2 -ffunction-sections -fdata-sections -fPIC -m64 -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -DLDAP_DEPRECATED -I/usr/pkg/include/python3.11" CXXFLAGS_x86_64_unknown_netbsd="-O2 -ffunction-sections -fdata-sections -fPIC -m64 -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -DLDAP_DEPRECATED -I/usr/pkg/include/python3.11" CXX_x86_64_unknown_netbsd="c++" DOC_RUST_LANG_ORG_CHANNEL="https://doc.rust-lang.org/1.69.0"; LIBRARY_PATH="/usr/pkg/lib" LZMA_API_STATIC="1" RANLIB_x86_64_unknown_netbsd="ar s" REAL_LIBRARY_PATH="/var/build/lang/rust/work/rust-bootstrap/lib" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/native" RUSTC="/var/build/lang/rust/work/rustc-1.69.0-src/build/bootstrap/debug/rustc" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_ERROR_METADATA_DST="/var/build/lang/rust/work/rustc-1.69.0-src/build/tmp/extended-error-metadata" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2/lib" RUSTC_REAL="/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2/bin/rustc" RUSTC_SNAPSHOT="/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2/lib" RUSTC_STAGE="2" RUSTC_SYSROOT="/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2" RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="1" RUSTDOC="/var/build/lang/rust/work/rustc-1.69.0-src/build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="-Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) --check-cfg=values(parallel_compiler) --check-cfg=values(no_btreemap_remove_entry) --check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations) --check-cfg=values(rustix_use_libc) --check-cfg=values(emulate_second_only_system) --crate-version 1.69.0\n(84c898d65\n2023-04-16)\n(built\nfrom\na\nsource\ntarball)" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="-Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) --check-cfg=values(parallel_compiler) --check-cfg=values(no_btreemap_remove_entry) --check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations) --check-cfg=values(rustix_use_libc) --check-cfg=values(emulate_second_only_system) -Zmacro-backtrace -Clink-args=-Wl,-z,origin -Clink-args=-Wl,-rpath,/usr/pkg/lib -Zunstable-options -Csplit-debuginfo=off" RUST_TEST_THREADS="1" SYSROOT="/var/build/lang/rust/work/rustc-1.69.0-src/build/x86_64-unknown-netbsd/stage2" __CARGO_DEFAULT_LIB_METADATA="stabletool-rustc" "/var/build/lang/rust/work/rust-bootstrap/bin/cargo" "build" "--target" "x86_64-unknown-netbsd" "--release" "-Zcheck-cfg=names,values,output,features" "-Zbinary-dep-depinfo" "-j" "1" "-v" "--frozen" "--manifest-path" "/var/build/lang/rust/work/rustc-1.69.0-src/src/tools/cargo/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit status: 101
Traceback (most recent call last):
  File "/var/build/lang/rust/work/rustc-1.69.0-src/./x.py", line 29, in <module>
    bootstrap.main()
  File "/var/build/lang/rust/work/rustc-1.69.0-src/src/bootstrap/bootstrap.py", line 958, in main
    bootstrap(args)
  File "/var/build/lang/rust/work/rustc-1.69.0-src/src/bootstrap/bootstrap.py", line 933, in bootstrap
    run(args, env=env, verbose=build.verbose, is_bootstrap=True)
  File "/var/build/lang/rust/work/rustc-1.69.0-src/src/bootstrap/bootstrap.py", line 167, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /var/build/lang/rust/work/rustc-1.69.0-src/build/bootstrap/debug/bootstrap -v build --stage 2 -j 1
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/lang/rust
*** Error code 1

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Home | Main Index | Thread Index | Old Index