pkgsrc-Bugs archive

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

Re: pkg/56335: lang/rust fails on NetBSD/aarch64 with gcc 10.3.0



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

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: Re: pkg/56335: lang/rust fails on NetBSD/aarch64 with gcc 10.3.0
Date: Fri, 30 Jul 2021 09:34:02 +0200

 On Thu, Jul 29, 2021 at 05:40:00AM +0000, john%ziaspace.com@localhost wrote:
 > >Number:         56335
 > >Category:       pkg
 > >Synopsis:       lang/rust fails on NetBSD/aarch64 with gcc 10.3.0
 
 rust builds fine for me on 9.99.87/amd64 with gcc 10.3.0.
 
 > Trying to compile rust on another aarch64 system running 9.99.87 with gcc=
  10.3.0
 > fails with:
 >=20
 >   running: "gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-=
 O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-O2" "-D_FORTIFY_SOURC=
 E=3D2" "-I/usr/local/include" "-I/usr/include" "-I/usr/include/krb5" "-I/us=
 r/local/include/python3.8" "-I" "curl/lib" "-I" "curl/include" "-I" "/usr/p=
 kgsrc/lang/rust/work/rustc-1.52.1-src/build/aarch64-unknown-netbsd/stage2-t=
 ools/aarch64-unknown-netbsd/release/build/libnghttp2-sys-939bfb82b05e4e2d/o=
 ut/i/include" "-fvisibility=3Dhidden" "-DBUILDING_LIBCURL" "-DCURL_DISABLE_=
 CRYPTO_AUTH" "-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_DISA=
 BLE_SMTP" "-DCURL_DISABLE_TELNET" "-DCURL_DISABLE_TFTP" "-DCURL_STATICLIB" =
 "-DENABLE_IPV6" "-DHAVE_ASSERT_H" "-DOS=3D\"unknown\"" "-DHAVE_ZLIB_H" "-DH=
 AVE_LIBZ" "-DHAVE_GETADDRINFO" "-DHAVE_GETPEERNAME" "-DHAVE_GETSOCKNAME" "-=
 DCURL_DISABLE_FTP" "-DUSE_NGHTT
 >  P2" "-DNGHTTP2_STATICLIB" "-DUSE_UNIX_SOCKETS" "-DHAVE_SYS_UN_H" "-DUSE_=
 OPENSSL" "-DHAVE_CLOCK_GETTIME_MONOTONIC" "-DHAVE_GETTIMEOFDAY" "-DRECV_TYP=
 E_ARG1=3Dint" "-DHAVE_PTHREAD_H" "-DHAVE_ARPA_INET_H" "-DHAVE_ERRNO_H" "-DH=
 AVE_FCNTL_H" "-DHAVE_NETDB_H" "-DHAVE_NETINET_IN_H" "-DHAVE_POLL_FINE" "-DH=
 AVE_POLL_H" "-DHAVE_FCNTL_O_NONBLOCK" "-DHAVE_SYS_SELECT_H" "-DHAVE_SYS_STA=
 T_H" "-DHAVE_UNISTD_H" "-DHAVE_RECV" "-DHAVE_SELECT" "-DHAVE_SEND" "-DHAVE_=
 SOCKET" "-DHAVE_STERRROR_R" "-DHAVE_SOCKETPAIR" "-DHAVE_STRUCT_TIMEVAL" "-D=
 USE_THREADS_POSIX" "-DRECV_TYPE_ARG2=3Dvoid*" "-DRECV_TYPE_ARG3=3Dsize_t" "=
 -DRECV_TYPE_ARG4=3Dint" "-DRECV_TYPE_RETV=3Dssize_t" "-DSEND_QUAL_ARG2=3Dco=
 nst" "-DSEND_TYPE_ARG1=3Dint" "-DSEND_TYPE_ARG2=3Dvoid*" "-DSEND_TYPE_ARG3=
 =3Dsize_t" "-DSEND_TYPE_ARG4=3Dint" "-DSEND_TYPE_RETV=3Dssize_t" "-DSIZEOF_=
 CURL_OFF_T=3D8" "-DSIZEOF_INT=3D4" "-DSIZEOF_SHORT=3D2" "-DSIZEOF_SSIZE_T=
 =3D8" "-DSIZEOF_SIZE_T=3D8" "-DSIZEOF_LONG=3D8" "-o" "/usr/pkgsrc/lang/rust=
 /work/rustc-1.52.1-src/build/aarch64-unknown-netbsd/stage2-too
 >  ls/aarch64-unknown-netbsd/release/build/curl-sys-4535
 > 484fa02b1619/out/build/curl/lib/strerror.o" "-c" "curl/lib/strerror.c"
 >   cargo:warning=3Dcurl/lib/strerror.c: In function 'curl_easy_strerror':
 >   cargo:warning=3Dcurl/lib/strerror.c:191:8: error: 'CURLE_TELNET_OPTION_=
 SYNTAX' undeclared (first use in this function); did you mean 'CURLE_SETOPT=
 _OPTION_SYNTAX'?
 >   cargo:warning=3D  191 |   case CURLE_TELNET_OPTION_SYNTAX :
 >   cargo:warning=3D      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
 >   cargo:warning=3D      |        CURLE_SETOPT_OPTION_SYNTAX
 >   cargo:warning=3Dcurl/lib/strerror.c:191:8: note: each undeclared identi=
 fier is reported only once for each function it appears in
 >   exit code: 1
 
 This symbol has been in curl since forever
 (https://github.com/curl/curl/blob/master/docs/libcurl/symbols-in-versions
 says 7.7 which was in pkgsrc in 2001).
 
 The rust package has a curl dependency for me, with rust default options:
 
 # make show-buildlink3 | grep curl
 curl
 
 Do you have curl installed?
 Does rust have a curl dependency in your setup?
  Thomas
 


Home | Main Index | Thread Index | Old Index