NetBSD Problem Report #54599

From www@netbsd.org  Fri Oct  4 16:23:12 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 052A07A14B
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  4 Oct 2019 16:23:12 +0000 (UTC)
Message-Id: <20191004162310.B66887A242@mollari.NetBSD.org>
Date: Fri,  4 Oct 2019 16:23:10 +0000 (UTC)
From: scole_mail@gmx.com
Reply-To: scole_mail@gmx.com
To: gnats-bugs@NetBSD.org
Subject: lang/rust-1.37.0 doesn't build on i386
X-Send-Pr-Version: www-1.0

>Number:         54599
>Category:       pkg
>Synopsis:       lang/rust-1.37.0 doesn't build on i386
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 04 16:25:00 +0000 2019
>Closed-Date:    Sat Feb 29 17:20:33 +0000 2020
>Last-Modified:  Sat Feb 29 17:20:33 +0000 2020
>Originator:     scole_mail
>Release:        pkgsrc-2019Q3
>Organization:
none
>Environment:
NetBSD dstar.dstar.net 8.1_STABLE NetBSD 8.1_STABLE (GENERIC) #0: Tue Sep 17 13:57:09 PDT 2019  scole@dstar.dstar.net:/home/scole/nbsd/cvs/8_0/obj/sys/arch/i386/compile/GENERIC i386
>Description:
rust 1.37.0 from pkgsrc-2019Q3 is failing to build on my NetBSD 8.1
i386 machine:

....
=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp
===> Building for rust-1.37.0
/usr/sbin/paxctl +am /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo
cd /usr/pkgsrc/lang/rust/work/rustc-1.37.0-src  && /usr/bin/env CARGO_BUILD_JOBS=1 USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= PYTHON=/usr/pkg/bin/python3.7 CC=cc CFLAGS=-O2\ -march=i586\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.7\ -I/usr/include/krb5 CPPFLAGS=-I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.7\ -I/usr/include/krb5 CXX=c++ CXXFLAGS=-O2\ -march=i586\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.7\ -I/usr/include/krb5 COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/usr/pkgsrc/lang/rust/work/.cwrapper/bin:/usr/pkgsrc/lang/rust/work/.buildlink/bin:/usr/pkgsrc/lang/rust/work/.gcc/bin
 :/usr/pkgsrc/lang/rust/work/.tools/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/pkg/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/usr/pkgsrc/lang/rust/work/.home CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/lang/rust/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no LIBTOOL="/usr/pkgsrc/lang/rust/work/.cwrapper/bin/libtool " BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/us
 r/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/usr/pkgsrc/lang/rust/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG=/usr/pkgsrc/lang/rust/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/usr/pkgsrc/lang/rust/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/lang/rust/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/lang/rust/work/.pkg-config.log PKG_CONFIG_PATH= KRB5_CONFIG=/usr/bin/krb5-config CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/lang/rust/work/.cwrapper/config  /u
 sr/pkg/bin/python3.7 ./x.py -v build -j 1
running: /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build --manifest-path /usr/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/Cargo.toml --frozen
warning: /usr/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/tools/miri/Cargo.toml: the cargo feature `default-run` is now stable and is no longer necessary to be listed in the manifest
error: process didn't exit successfully: `/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/rustc -vV` (exit code: 1)
--- stdout
rustc 1.37.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: i686-unknown-netbsd
release: 1.37.0

--- stderr
error: couldn't load codegen backend "/usr/pkgsrc/lang/rust/work/rust-bootstrap/lib/rustlib/i686-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so": "Shared object \"libLLVM-7.so\" not found"


Traceback (most recent call last):
  File "./x.py", line 11, in <module>
    bootstrap.main()
  File "/usr/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/bootstrap.py", line 854, in main
    bootstrap(help_triggered)
  File "/usr/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/bootstrap.py", line 825, in bootstrap
    build.build_bootstrap()
  File "/usr/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/bootstrap.py", line 655, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
  File "/usr/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/bootstrap.py", line 141, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build --manifest-path /usr/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/Cargo.toml --frozen
*** Error code 1

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

Stop.
bmake: stopped in /usr/pkgsrc/lang/rust

>How-To-Repeat:
cd .../pkgsrc/lang/rust && bmake
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 29 Feb 2020 10:57:49 +0000
State-Changed-Why:
rust and its bootstrapkit has been updated a couple times
in the meantime. Do you still have this problem?


From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54599 (lang/rust-1.37.0 doesn't build on i386)
Date: Sat, 29 Feb 2020 07:41:43 -0800

 I've stopped using i386 and don't know if it builds now.  Feel free to
 close.

 Thanks

State-Changed-From-To: feedback->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 29 Feb 2020 17:20:33 +0000
State-Changed-Why:
Submitter says this can be closed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.