pkgsrc-Bugs archive

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

Re: pkg/55767 (pkgsrc/lang/rust fails on aarch64)



The following reply was made to PR pkg/55767; it has been noted by GNATS.

From: John Klos <john%ziaspace.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: pkg-manager%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/55767 (pkgsrc/lang/rust fails on aarch64)
Date: Wed, 9 Mar 2022 16:39:53 +0000 (UTC)

 > Is this still current? rust changes rapidly
 
 This hasn't happened for a while, but it has popped up again in rust 
 1.58.1. Tested with multiple machines running NetBSD-current from within 
 the last few months.
 
    running: "gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" 
 "-m64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-O2" 
 "-fPIC" "-D_FORTIFY_SOURCE=2" "-I/usr/local/include" "-I/usr/include" 
 "-I/usr/local/include/python3.10" "-I" "curl/lib" "-I" "curl/include" "-I" 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libnghttp2-sys-10475613eb9a9ef1/out/i/include" 
 "-fvisibility=hidden" "-DBUILDING_LIBCURL" "-DCURL_DISABLE_DICT" 
 "-DCURL_DISABLE_GOPHER" "-DCURL_DISABLE_IMAP" "-DCURL_DISABLE_LDAP" 
 "-DCURL_DISABLE_LDAPS" "-DCURL_DISABLE_NTLM" "-DCURL_DISABLE_POP3" 
 "-DCURL_DISABLE_RTSP" "-DCURL_DISABLE_SMB" "-DCURL_DISABLE_SMTP" 
 "-DCURL_DISABLE_TELNET" "-DCURL_DISABLE_TFTP" "-DCURL_STATICLIB" 
 "-DENABLE_IPV6" "-DHAVE_ASSERT_H" "-DOS=\"unknown\"" "-DHAVE_ZLIB_H" 
 "-DHAVE_LONGLONG" "-DHAVE_LIBZ" "-DHAVE_BOOL_T" "-DHAVE_STDBOOL_H" 
 "-DHAVE_GETADDRINFO" "-DHAVE_GETPEERNAME" "-DHAVE_GETSOCKNAME" 
 "-DCURL_DISABLE_FTP" "-DUSE_NGHTTP2" "-DNGHTTP2_STATICLIB" "-DUSE_OPENSSL" 
 "-DRECV_TYPE_ARG1=int" "-DHAVE_PTHREAD_H" "-DHAVE_ARPA_INET_H" 
 "-DHAVE_ERRNO_H" "-DHAVE_FCNTL_H" "-DHAVE_NETDB_H" "-DHAVE_NETINET_IN_H" 
 "-DHAVE_NETINET_TCP_H" "-DHAVE_POLL_H" "-DHAVE_FCNTL_O_NONBLOCK" 
 "-DHAVE_SYS_SELECT_H" "-DHAVE_SYS_STAT_H" "-DHAVE_UNISTD_H" "-DHAVE_RECV" 
 "-DHAVE_SELECT" "-DHAVE_SEND" "-DHAVE_SOCKET" "-DHAVE_STERRROR_R" 
 "-DHAVE_SOCKETPAIR" "-DHAVE_STRUCT_TIMEVAL" "-DHAVE_SYS_UN_H" 
 "-DUSE_THREADS_POSIX" "-DUSE_UNIX_SOCKETS" "-DRECV_TYPE_ARG2=void*" 
 "-DRECV_TYPE_ARG3=size_t" "-DRECV_TYPE_ARG4=int" 
 "-DRECV_TYPE_RETV=ssize_t" "-DSEND_QUAL_ARG2=const" "-DSEND_TYPE_ARG1=int" 
 "-DSEND_TYPE_ARG2=void*" "-DSEND_TYPE_ARG3=size_t" "-DSEND_TYPE_ARG4=int" 
 "-DSEND_TYPE_RETV=ssize_t" "-DSIZEOF_CURL_OFF_T=8" "-DSIZEOF_INT=4" 
 "-DSIZEOF_SHORT=2" "-DHAVE_CLOCK_GETTIME_MONOTONIC" "-DHAVE_GETTIMEOFDAY" 
 "-DHAVE_POLL_FINE" "-DSIZEOF_SSIZE_T=8" "-DSIZEOF_SIZE_T=8" 
 "-DSIZEOF_LONG=8" "-o" 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/curl-sys-56e781f81747750d/out/build/curl/lib/strerror.o" 
 "-c" "curl/lib/strerror.c"
    exit status: 0
    cargo:warning=curl/lib/strerror.c: In function 'curl_easy_strerror':
    cargo:warning=curl/lib/strerror.c:227:8: error: 'CURLE_LDAP_INVALID_URL' 
 undeclared (first use in this function)
    cargo:warning=  227 |   case CURLE_LDAP_INVALID_URL:
    cargo:warning=      |        ^~~~~~~~~~~~~~~~~~~~~~
    cargo:warning=curl/lib/strerror.c:227:8: note: each undeclared 
 identifier is reported only once for each function it appears in
    cargo:warning=curl/lib/strerror.c:275:8: error: 'CURLE_CONV_REQD' 
 undeclared (first use in this function); did you mean 'CURLE_CONV_FAILED'?
    cargo:warning=  275 |   case CURLE_CONV_REQD:
    cargo:warning=      |        ^~~~~~~~~~~~~~~
    cargo:warning=      |        CURLE_CONV_FAILED
    exit status: 1
    exit status: 0
    running: "gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" 
 "-m64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-O2" 
 "-fPIC" "-D_FORTIFY_SOURCE=2" "-I/usr/local/include" "-I/usr/include" 
 "-I/usr/local/include/python3.10" "-I" "curl/lib" "-I" "curl/include" "-I" 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libnghttp2-sys-10475613eb9a9ef1/out/i/include" 
 "-fvisibility=hidden" "-DBUILDING_LIBCURL" "-DCURL_DISABLE_DICT" 
 "-DCURL_DISABLE_GOPHER" "-DCURL_DISABLE_IMAP" "-DCURL_DISABLE_LDAP" 
 "-DCURL_DISABLE_LDAPS" "-DCURL_DISABLE_NTLM" "-DCURL_DISABLE_POP3" 
 "-DCURL_DISABLE_RTSP" "-DCURL_DISABLE_SMB" "-DCURL_DISABLE_SMTP" 
 "-DCURL_DISABLE_TELNET" "-DCURL_DISABLE_TFTP" "-DCURL_STATICLIB" 
 "-DENABLE_IPV6" "-DHAVE_ASSERT_H" "-DOS=\"unknown\"" "-DHAVE_ZLIB_H" 
 "-DHAVE_LONGLONG" "-DHAVE_LIBZ" "-DHAVE_BOOL_T" "-DHAVE_STDBOOL_H" 
 "-DHAVE_GETADDRINFO" "-DHAVE_GETPEERNAME" "-DHAVE_GETSOCKNAME" 
 "-DCURL_DISABLE_FTP" "-DUSE_NGHTTP2" "-DNGHTTP2_STATICLIB" "-DUSE_OPENSSL" 
 "-DRECV_TYPE_ARG1=int" "-DHAVE_PTHREAD_H" "-DHAVE_ARPA_INET_H" 
 "-DHAVE_ERRNO_H" "-DHAVE_FCNTL_H" "-DHAVE_NETDB_H" "-DHAVE_NETINET_IN_H" 
 "-DHAVE_NETINET_TCP_H" "-DHAVE_POLL_H" "-DHAVE_FCNTL_O_NONBLOCK" 
 "-DHAVE_SYS_SELECT_H" "-DHAVE_SYS_STAT_H" "-DHAVE_UNISTD_H" "-DHAVE_RECV" 
 "-DHAVE_SELECT" "-DHAVE_SEND" "-DHAVE_SOCKET" "-DHAVE_STERRROR_R" 
 "-DHAVE_SOCKETPAIR" "-DHAVE_STRUCT_TIMEVAL" "-DHAVE_SYS_UN_H" 
 "-DUSE_THREADS_POSIX" "-DUSE_UNIX_SOCKETS" "-DRECV_TYPE_ARG2=void*" 
 "-DRECV_TYPE_ARG3=size_t" "-DRECV_TYPE_ARG4=int" 
 "-DRECV_TYPE_RETV=ssize_t" "-DSEND_QUAL_ARG2=const" "-DSEND_TYPE_ARG1=int" 
 "-DSEND_TYPE_ARG2=void*" "-DSEND_TYPE_ARG3=size_t" "-DSEND_TYPE_ARG4=int" 
 "-DSEND_TYPE_RETV=ssize_t" "-DSIZEOF_CURL_OFF_T=8" "-DSIZEOF_INT=4" 
 "-DSIZEOF_SHORT=2" "-DHAVE_CLOCK_GETTIME_MONOTONIC" "-DHAVE_GETTIMEOFDAY" 
 "-DHAVE_POLL_FINE" "-DSIZEOF_SSIZE_T=8" "-DSIZEOF_SIZE_T=8" 
 "-DSIZEOF_LONG=8" "-o" 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/curl-sys-56e781f81747750d/out/build/curl/lib/strtok.o" 
 "-c" "curl/lib/strtok.c"
    exit status: 0
 
    --- stderr
    fatal: not a git repository (or any of the parent directories): .git
 
 
    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/local/include" "-I/usr/include" "-I/usr/local/include/python3.10" 
 "-I" "curl/lib" "-I" "curl/include" "-I" 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libnghttp2-sys-10475613eb9a9ef1/out/i/include" 
 "-fvisibility=hidden" "-DBUILDING_LIBCURL" "-DCURL_DISABLE_DICT" 
 "-DCURL_DISABLE_GOPHER" "-DCURL_DISABLE_IMAP" "-DCURL_DISABLE_LDAP" 
 "-DCURL_DISABLE_LDAPS" "-DCURL_DISABLE_NTLM" "-DCURL_DISABLE_POP3" 
 "-DCURL_DISABLE_RTSP" "-DCURL_DISABLE_SMB" "-DCURL_DISABLE_SMTP" 
 "-DCURL_DISABLE_TELNET" "-DCURL_DISABLE_TFTP" "-DCURL_STATICLIB" 
 "-DENABLE_IPV6" "-DHAVE_ASSERT_H" "-DOS=\"unknown\"" "-DHAVE_ZLIB_H" 
 "-DHAVE_LONGLONG" "-DHAVE_LIBZ" "-DHAVE_BOOL_T" "-DHAVE_STDBOOL_H" 
 "-DHAVE_GETADDRINFO" "-DHAVE_GETPEERNAME" "-DHAVE_GETSOCKNAME" 
 "-DCURL_DISABLE_FTP" "-DUSE_NGHTTP2" "-DNGHTTP2_STATICLIB" "-DUSE_OPENSSL" 
 "-DRECV_TYPE_ARG1=int" "-DHAVE_PTHREAD_H" "-DHAVE_ARPA_INET_H" 
 "-DHAVE_ERRNO_H" "-DHAVE_FCNTL_H" "-DHAVE_NETDB_H" "-DHAVE_NETINET_IN_H" 
 "-DHAVE_NETINET_TCP_H" "-DHAVE_POLL_H" "-DHAVE_FCNTL_O_NONBLOCK" 
 "-DHAVE_SYS_SELECT_H" "-DHAVE_SYS_STAT_H" "-DHAVE_UNISTD_H" "-DHAVE_RECV" 
 "-DHAVE_SELECT" "-DHAVE_SEND" "-DHAVE_SOCKET" "-DHAVE_STERRROR_R" 
 "-DHAVE_SOCKETPAIR" "-DHAVE_STRUCT_TIMEVAL" "-DHAVE_SYS_UN_H" 
 "-DUSE_THREADS_POSIX" "-DUSE_UNIX_SOCKETS" "-DRECV_TYPE_ARG2=void*" 
 "-DRECV_TYPE_ARG3=size_t" "-DRECV_TYPE_ARG4=int" 
 "-DRECV_TYPE_RETV=ssize_t" "-DSEND_QUAL_ARG2=const" "-DSEND_TYPE_ARG1=int" 
 "-DSEND_TYPE_ARG2=void*" "-DSEND_TYPE_ARG3=size_t" "-DSEND_TYPE_ARG4=int" 
 "-DSEND_TYPE_RETV=ssize_t" "-DSIZEOF_CURL_OFF_T=8" "-DSIZEOF_INT=4" 
 "-DSIZEOF_SHORT=2" "-DHAVE_CLOCK_GETTIME_MONOTONIC" "-DHAVE_GETTIMEOFDAY" 
 "-DHAVE_POLL_FINE" "-DSIZEOF_SSIZE_T=8" "-DSIZEOF_SIZE_T=8" 
 "-DSIZEOF_LONG=8" "-o" 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/curl-sys-56e781f81747750d/out/build/curl/lib/strerror.o" 
 "-c" "curl/lib/strerror.c" with args "gcc" did not execute successfully 
 (status code exit status: 1).
 
 
 warning: build failed, waiting for other jobs to finish...
 error: build failed
 command did not execute successfully: 
 "/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo" "build" "--target" 
 "x86_64-unknown-netbsd" "-Zbinary-dep-depinfo" "-j" "12" "-v" "--release" 
 "--frozen" "--manifest-path" 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/src/tools/cargo/Cargo.toml" 
 "--message-format" "json-render-diagnostics"
 expected success, got: exit status: 101
 Traceback (most recent call last):
    File "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/./x.py", line 27, in 
 <module>
      bootstrap.main()
    File 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/src/bootstrap/bootstrap.py", 
 line 1273, in main
      bootstrap(help_triggered)
    File 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/src/bootstrap/bootstrap.py", 
 line 1259, in bootstrap
      run(args, env=env, verbose=build.verbose, is_bootstrap=True)
    File 
 "/usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/src/bootstrap/bootstrap.py", 
 line 144, in run
      raise RuntimeError(err)
 RuntimeError: failed to run: 
 /usr/pkgsrc/lang/rust/work/rustc-1.58.1-src/build/bootstrap/debug/bootstrap 
 -v build --stage 2 -j 12
 *** Error code 1
 
 Stop.
 make[1]: stopped in /usr/pkgsrc/lang/rust
 *** Error code 1
 
 Stop.
 make: stopped in /usr/pkgsrc/lang/rust
 


Home | Main Index | Thread Index | Old Index