pkgsrc-Bugs archive

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

pkg/56786: lang/rust fails to build on NetBSD-current



>Number:         56786
>Category:       pkg
>Synopsis:       lang/rust fails to build on NetBSD-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 10 01:40:00 +0000 2022
>Originator:     john%ziaspace.com@localhost
>Release:        NetBSD 9.99.96
>Organization:
	
>Environment:
	
	
System: NetBSD frigg.zia.io 9.99.96 NetBSD 9.99.96 (FRIGG) #0: Sat Apr 2 19:46:01 UTC 2022 john%frigg.zia.io@localhost:/usr/obj-amd64/sys/arch/amd64/compile/FRIGG amd64
Architecture: x86_64
Machine: amd64
>Description:
	
lang/rust has generally failed to compile on NetBSD-current for the last several weeks.
It works occasionally on some machines, although I do not know why, and the error 
messages make no sense at all to me.

The same errors happen on aarch64, too.

...
  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" "/home/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_D
 ISABLE_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" "/home/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/timeval.o" "-c" "curl/lib/timeval.c"
  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
  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" "/home/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_D
 ISABLE_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" "/home/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/transfer.o" "-c" "curl/lib/transfer.c"
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0

  --- stderr
  fatal: not a git repository (or any parent up to mount point /)
  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/local/include" "-I/usr/include" "-I/usr/local/include/python3.10" "-I" "curl/lib" "-I" "curl/include" "-I" "/home/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_GETSOCK
 NAME" "-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" "/home/pkgsrc/lang/rus
 t/work/rustc-1.58.1-src/build/x86_64-unknown-netbsd/s
tage2-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: "/home/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo" "build" "--target" "x86_64-unknown-netbsd" "-Zbinary-dep-depinfo" "-j" "24" "-v" "--release" "--frozen" "--manifest-path" "/home/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 "/home/pkgsrc/lang/rust/work/rustc-1.58.1-src/./x.py", line 27, in <module>
    bootstrap.main()
  File "/home/pkgsrc/lang/rust/work/rustc-1.58.1-src/src/bootstrap/bootstrap.py", line 1273, in main
    bootstrap(help_triggered)
  File "/home/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 "/home/pkgsrc/lang/rust/work/rustc-1.58.1-src/src/bootstrap/bootstrap.py", line 144, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /home/pkgsrc/lang/rust/work/rustc-1.58.1-src/build/bootstrap/debug/bootstrap -v build --stage 2 -j 24
*** Error code 1


>How-To-Repeat:
	
>Fix:
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index