NetBSD Problem Report #56304

From tsutsui@ceres.dti.ne.jp  Sun Jul 11 17:49:44 2021
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 561EF1A9247
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 11 Jul 2021 17:49:44 +0000 (UTC)
Message-Id: <202107111749.16BHnXx6009640@ceres.dti.ne.jp>
Date: Mon, 12 Jul 2021 02:49:33 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: pkgsrc-2021Q2 lang/rust fails to build on NetBSD/i386 9.2
X-Send-Pr-Version: 3.95

>Number:         56304
>Category:       pkg
>Synopsis:       pkgsrc-2021Q2 lang/rust fails to build on NetBSD/i386 9.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 11 17:50:00 +0000 2021
>Closed-Date:    Thu Aug 12 01:08:29 +0000 2021
>Last-Modified:  Thu Aug 12 01:08:29 +0000 2021
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.2 + pkgsrc-2021Q2
>Organization:
>Environment:
System: NetBSD mirage 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
pkgsrc-2021Q2 lang/rust fails to build on NetBSD/i386 9.2:
---
 :

   Compiling getopts v0.2.21
   Compiling rustc_lexer v0.1.0 (/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/compiler/rustc_lexer)
   Compiling unicode-normalization v0.1.13
   Compiling rustc_llvm v0.0.0 (/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/compiler/rustc_llvm)
   Compiling unicode-security v0.0.5
The following warnings were emitted during compilation:

warning: llvm-wrapper/PassWrapper.cpp: In function 'void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef)':
warning: llvm-wrapper/PassWrapper.cpp:397:57: error: 'const class llvm::MCSubtargetInfo' has no member named 'getCPUTable'; did you mean 'getCPU'?
warning:    const ArrayRef<SubtargetSubTypeKV> CPUTable = MCInfo->getCPUTable();
warning:                                                          ^~~~~~~~~~~
warning:                                                          getCPU
warning: llvm-wrapper/PassWrapper.cpp: In function 'void LLVMRustPrintTargetFeatures(LLVMTargetMachineRef)':
warning: llvm-wrapper/PassWrapper.cpp:414:58: error: 'const class llvm::MCSubtargetInfo' has no member named 'getFeatureTable'; did you mean 'getFeatureBits'?
warning:    const ArrayRef<SubtargetFeatureKV> FeatTable = MCInfo->getFeatureTable();
warning:                                                           ^~~~~~~~~~~~~~~
warning:                                                           getFeatureBits

error: failed to run custom build command for `rustc_llvm v0.0.0 (/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/compiler/rustc_llvm)`

Caused by:
  process didn't exit successfully: `/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/build/i586-unknown-netbsd/stage0-rustc/release/build/rustc_llvm-803e993867acaf16/build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=RUST_CHECK
  cargo:rerun-if-env-changed=REAL_LIBRARY_PATH_VAR
  cargo:rerun-if-env-changed=REAL_LIBRARY_PATH
  cargo:rerun-if-env-changed=LLVM_CONFIG
  cargo:rerun-if-changed=/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/build/i586-unknown-netbsd/llvm/build/bin/llvm-config
  cargo:rustc-cfg=llvm_component="aarch64"
  cargo:rustc-cfg=llvm_component="arm"
  cargo:rustc-cfg=llvm_component="asmparser"
  cargo:rustc-cfg=llvm_component="avr"
  cargo:rustc-cfg=llvm_component="bitreader"
  cargo:rustc-cfg=llvm_component="bitwriter"
  cargo:rustc-cfg=llvm_component="coverage"
  cargo:rustc-cfg=llvm_component="hexagon"
  cargo:rustc-cfg=llvm_component="instrumentation"
  cargo:rustc-cfg=llvm_component="ipo"
  cargo:rustc-cfg=llvm_component="linker"
  cargo:rustc-cfg=llvm_component="lto"
  cargo:rustc-cfg=llvm_component="mips"
  cargo:rustc-cfg=llvm_component="msp430"
  cargo:rustc-cfg=llvm_component="nvptx"
  cargo:rustc-cfg=llvm_component="powerpc"
  cargo:rustc-cfg=llvm_component="riscv"
  cargo:rustc-cfg=llvm_component="sparc"
  cargo:rustc-cfg=llvm_component="systemz"
  cargo:rustc-cfg=llvm_component="webassembly"
  cargo:rustc-cfg=llvm_component="x86"
  cargo:rustc-cfg=llvm_has_msp430_asm_parser
  cargo:rerun-if-env-changed=LLVM_RUSTLLVM
  cargo:rerun-if-env-changed=LLVM_NDEBUG
  cargo:rerun-if-changed=llvm-wrapper/RustWrapper.cpp
  cargo:rerun-if-changed=llvm-wrapper/PassWrapper.cpp
  cargo:rerun-if-changed=llvm-wrapper/CoverageMappingWrapper.cpp
  cargo:rerun-if-changed=llvm-wrapper/ArchiveWrapper.cpp
  cargo:rerun-if-changed=llvm-wrapper/Linker.cpp
  cargo:rerun-if-changed=llvm-wrapper/LLVMWrapper.h
  cargo:rerun-if-changed=llvm-wrapper/.editorconfig
  cargo:rerun-if-changed=llvm-wrapper/README
  TARGET = Some("i586-unknown-netbsd")
  OPT_LEVEL = Some("3")
  HOST = Some("i586-unknown-netbsd")
  CXX_i586-unknown-netbsd = Some("c++")
  CXXFLAGS_i586-unknown-netbsd = Some("-O2 -ffunction-sections -fdata-sections -fPIC -m32 -O2 -march=i586 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.8")
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-O2" "-march=i586" "-D_FORTIFY_SOURCE=2" "-I/usr/pkg/include" "-I/usr/include" "-I/usr/include/krb5" "-I/usr/pkg/include/python3.8" "-I/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/src/llvm-project/llvm/include" "-I/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/build/i586-unknown-netbsd/llvm/build/include" "-std=c++14" "-fno-exceptions" "-fno-rtti" "-D_LARGEFILE_SOURCE" "-D_FILE_OFFSET_BITS=64" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AARCH64" "-DLLVM_COMPONENT_ARM" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_AVR" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_MIPS" "-DLLVM_CO!
 MPONENT_MSP430" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_POWERPC" "-DLLVM_COMPONENT_RISCV" "-DLLVM_COMPONENT_SPARC" "-DLLVM_COMPONENT_SYSTEMZ" "-DLLVM_COMPONENT_WEBASSEMBLY" "-DLLVM_COMPONENT_X86" "-DLLVM_RUSTLLVM" "-DNDEBUG" "-o" "/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/build/i586-unknown-netbsd/stage0-rustc/i586-unknown-netbsd/release/build/rustc_llvm-b7b88d246b31eeee/out/llvm-wrapper/PassWrapper.o" "-c" "llvm-wrapper/PassWrapper.cpp"
  cargo:warning=llvm-wrapper/PassWrapper.cpp: In function 'void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef)':
  cargo:warning=llvm-wrapper/PassWrapper.cpp:397:57: error: 'const class llvm::MCSubtargetInfo' has no member named 'getCPUTable'; did you mean 'getCPU'?
  cargo:warning=   const ArrayRef<SubtargetSubTypeKV> CPUTable = MCInfo->getCPUTable();
  cargo:warning=                                                         ^~~~~~~~~~~
  cargo:warning=                                                         getCPU
  cargo:warning=llvm-wrapper/PassWrapper.cpp: In function 'void LLVMRustPrintTargetFeatures(LLVMTargetMachineRef)':
  cargo:warning=llvm-wrapper/PassWrapper.cpp:414:58: error: 'const class llvm::MCSubtargetInfo' has no member named 'getFeatureTable'; did you mean 'getFeatureBits'?
  cargo:warning=   const ArrayRef<SubtargetFeatureKV> FeatTable = MCInfo->getFeatureTable();
  cargo:warning=                                                          ^~~~~~~~~~~~~~~
  cargo:warning=                                                          getFeatureBits
  exit code: 1

  --- stderr


  error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-O2" "-march=i586" "-D_FORTIFY_SOURCE=2" "-I/usr/pkg/include" "-I/usr/include" "-I/usr/include/krb5" "-I/usr/pkg/include/python3.8" "-I/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/src/llvm-project/llvm/include" "-I/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/build/i586-unknown-netbsd/llvm/build/include" "-std=c++14" "-fno-exceptions" "-fno-rtti" "-D_LARGEFILE_SOURCE" "-D_FILE_OFFSET_BITS=64" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AARCH64" "-DLLVM_COMPONENT_ARM" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_AVR" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_M!
 IPS" "-DLLVM_COMPONENT_MSP430" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_POWERPC" "-DLLVM_COMPONENT_RISCV" "-DLLVM_COMPONENT_SPARC" "-DLLVM_COMPONENT_SYSTEMZ" "-DLLVM_COMPONENT_WEBASSEMBLY" "-DLLVM_COMPONENT_X86" "-DLLVM_RUSTLLVM" "-DNDEBUG" "-o" "/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/build/i586-unknown-netbsd/stage0-rustc/i586-unknown-netbsd/release/build/rustc_llvm-b7b88d246b31eeee/out/llvm-wrapper/PassWrapper.o" "-c" "llvm-wrapper/PassWrapper.cpp" with args "c++" did not execute successfully (status code exit code: 1).


command did not execute successfully: "/s/obj.i386/pkgsrc/lang/rust/work.i386/rust-bootstrap/bin/cargo" "build" "--target" "i586-unknown-netbsd" "-Zbinary-dep-depinfo" "-j" "1" "--release" "--frozen" "--features" " llvm max_level_info" "--manifest-path" "/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/compiler/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit code: 101
Traceback (most recent call last):
  File "./x.py", line 27, in <module>
    bootstrap.main()
  File "/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/src/bootstrap/bootstrap.py", line 1183, in main
    bootstrap(help_triggered)
  File "/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/src/bootstrap/bootstrap.py", line 1169, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-src/src/bootstrap/bootstrap.py", line 153, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /s/obj.i386/pkgsrc/lang/rust/work.i386/rustc-1.52.1-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

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

---

Looks not build on official build either:
 http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/9.0_2021Q2/All/

Whole log is here:
 https://gist.github.com/tsutsui/00496e2a98128a049882c53e841692d6

It looks 'const class llvm::MCSubtargetInfo' doesn't have
getCPUTable() or >getFeatureTable():
 https://github.com/llvm/llvm-project/blob/release/11.x/llvm/include/llvm/MC/MCSubtargetInfo.h
but rust refers them?
 https://github.com/rust-lang/rust/blame/master/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp#L395

Note there is no problem on pkgsrc-2021Q1. 

>How-To-Repeat:
Just 'make package' on lang/rust on NetBSD/i386 + pkgsrc-2021Q2

>Fix:
Not sure.  Should check bootstrap binaries?

---
Izumi Tsutsui

>Release-Note:

>Audit-Trail:
From: Havard Eidnes <he@NetBSD.org>
To: tsutsui@ceres.dti.ne.jp
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/56304: pkgsrc-2021Q2 lang/rust fails to build on
 NetBSD/i386 9.2
Date: Sun, 11 Jul 2021 22:13:22 +0200 (CEST)

 > pkgsrc-2021Q2 lang/rust fails to build on NetBSD/i386 9.2:

 My builds are all done with the non-default

 PKG_OPTIONS.rust+=3D      rust-llvm

 set in /etc/mk.conf.  Does that make any difference in your case?

 I'm trying a build on NetBSD/i386 9.1 right now, and my build
 logs show that I successfully built 1.52.1 on i386/8.0 on May 31.

 Regards,

 - H=E5vard

From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc: he@netbsd.org
Subject: Re: pkg/56304: pkgsrc-2021Q2 lang/rust fails to build on
 NetBSD/i386 9.2
Date: Sun, 11 Jul 2021 18:02:53 -0400

 In a sandboxed pbulk build, it fails sooner:

 finding compilers
 CC_i586-unknown-netbsd = "gcc"
 CFLAGS_i586-unknown-netbsd = ["-O2", "-ffunction-sections", "-fdata-
 sections", "-fPIC", "-m32", "-O2", "-march=i586", "-D_FORTIFY_SOURCE=2",
 "-I/usr/pkg/include", "-I/usr/include", "-I/usr/include/krb5", "-
 I/usr/pkg/include/python3.8"]
 CXX_i586-unknown-netbsd = "c++"
 CXXFLAGS_i586-unknown-netbsd = ["-O2", "-ffunction-sections", "-fdata-
 sections", "-fPIC", "-m32", "-O2", "-march=i586", "-D_FORTIFY_SOURCE=2",
 "-I/usr/pkg/include", "-I/usr/include", "-I/usr/include/krb5", "-
 I/usr/pkg/include/python3.8"]
 AR_i586-unknown-netbsd = "ar"
 running sanity check
 thread 'main' panicked at '

 couldn't find required command: "cmake"

 ', src/bootstrap/sanity.rs:60:13
 note: run with `RUST_BACKTRACE=1` environment variable to display a
 backtrace
 Traceback (most recent call last):
   File "./x.py", line 27, in <module>
     bootstrap.main()
   File "/tmp/work/rustc-1.52.1-src/src/bootstrap/bootstrap.py", line
 1183, in main
     bootstrap(help_triggered)
   File "/tmp/work/rustc-1.52.1-src/src/bootstrap/bootstrap.py", line
 1169, in bootstrap
     run(args, env=env, verbose=build.verbose)
   File "/tmp/work/rustc-1.52.1-src/src/bootstrap/bootstrap.py", line
 153, in run
     raise RuntimeError(err)
 RuntimeError: failed to run: /tmp/work/rustc-1.52.1-
 src/build/bootstrap/debug/bootstrap -v build --stage 2 -j 1
 *** Error code 1

 This is consistent with what the TNF bulk build is reporting:
 http://victory.netbsd.org/pkgsrc/packages/reports/2021Q2/i386-9.0/20210625.0432/rust-1.52.1nb4/build.log

 Evidently, there are cases where cmake is required even when the
 rust-llvm option isn't enabled. I haven't looked into this in detail.

 Separately, there's also the issue that rust-bin doesn't package, for
 the much simpler reason that there's a distinfo mismatch between the
 package version and the supplied files.

 Dave


From: Havard Eidnes <he@NetBSD.org>
To: david@gutteridge.ca
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/56304: pkgsrc-2021Q2 lang/rust fails to build on
 NetBSD/i386 9.2
Date: Mon, 12 Jul 2021 00:17:22 +0200 (CEST)

 > This is consistent with what the TNF bulk build is reporting:
 > http://victory.netbsd.org/pkgsrc/packages/reports/2021Q2/i386-9.0/202=
 10625.0432/rust-1.52.1nb4/build.log
 >
 > Evidently, there are cases where cmake is required even when the
 > rust-llvm option isn't enabled. I haven't looked into this in detail.=


 I just made a commit which should make cmake available
 independent of pkg options.

 > Separately, there's also the issue that rust-bin doesn't package, for=

 > the much simpler reason that there's a distinfo mismatch between the
 > package version and the supplied files.

 How embarrassing. :(
 I'll take a look.

 - H=E5vard

From: "Havard Eidnes" <he@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56304 CVS commit: pkgsrc/lang/rust-bin
Date: Sun, 11 Jul 2021 22:25:10 +0000

 Module Name:	pkgsrc
 Committed By:	he
 Date:		Sun Jul 11 22:25:10 UTC 2021

 Modified Files:
 	pkgsrc/lang/rust-bin: Makefile

 Log Message:
 Correct the names for the NetBSD versions to use.

 This uses the faster "install.sh" script, and also omits the
 "rust-doc" subset, for a much faster installation.

 This is a temporary hack for this version, will be removed on
 the next go-around.

 Apologies for this going un-committed, only myself to blame.
 Should fix part of PR#56304.


 To generate a diff of this commit:
 cvs rdiff -u -r1.23 -r1.24 pkgsrc/lang/rust-bin/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Havard Eidnes <he@NetBSD.org>
To: tsutsui@ceres.dti.ne.jp
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/56304: pkgsrc-2021Q2 lang/rust fails to build on
 NetBSD/i386 9.2
Date: Mon, 12 Jul 2021 13:51:27 +0200 (CEST)

 >> pkgsrc-2021Q2 lang/rust fails to build on NetBSD/i386 9.2:
 >
 > My builds are all done with the non-default
 >
 > PKG_OPTIONS.rust+=3D      rust-llvm
 >
 > set in /etc/mk.conf.  Does that make any difference in your case?
 >
 > I'm trying a build on NetBSD/i386 9.1 right now, and my build
 > logs show that I successfully built 1.52.1 on i386/8.0 on May 31.

 My build on i386/9.1 with rust-llvm set completed successfully.

 - H=E5vard

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: he@NetBSD.org
Cc: gnats-bugs@netbsd.org, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/56304: pkgsrc-2021Q2 lang/rust fails to build onNetBSD/i386
	 9.2
Date: Mon, 12 Jul 2021 21:45:31 +0900

 > My build on i386/9.1 with rust-llvm set completed successfully.

 So should it be set by default?

 ---
 Izumi Tsutsui

From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56304 CVS commit: [pkgsrc-2021Q2] pkgsrc/lang/rust-bin
Date: Thu, 15 Jul 2021 11:29:20 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Thu Jul 15 11:29:20 UTC 2021

 Modified Files:
 	pkgsrc/lang/rust-bin [pkgsrc-2021Q2]: Makefile

 Log Message:
 Pullup ticket #6487 - requested by he
 lang/rust-bin: build fix

 Revisions pulled up:
 - lang/rust-bin/Makefile                                        1.24

 ---
    Module Name:	pkgsrc
    Committed By:	he
    Date:		Sun Jul 11 22:25:10 UTC 2021

    Modified Files:
    	pkgsrc/lang/rust-bin: Makefile

    Log Message:
    Correct the names for the NetBSD versions to use.

    This uses the faster "install.sh" script, and also omits the
    "rust-doc" subset, for a much faster installation.

    This is a temporary hack for this version, will be removed on
    the next go-around.

    Apologies for this going un-committed, only myself to blame.
    Should fix part of PR#56304.


 To generate a diff of this commit:
 cvs rdiff -u -r1.23 -r1.23.2.1 pkgsrc/lang/rust-bin/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56304 CVS commit: pkgsrc/lang/rust
Date: Wed, 11 Aug 2021 12:28:53 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Wed Aug 11 12:28:53 UTC 2021

 Modified Files:
 	pkgsrc/lang/rust: Makefile

 Log Message:
 rust: Do not mix i586-unknown-netbsd and i686-unknown-netbsd

 The mix of i586-unknown-netbsd and i686-unknown-netbsd targets
 leads partial misdetection of external llvm from lang/llvm.
 It adds -DLLVM_RUSTLLVM to CFLAGS and -DLLVM_RUSTLLVM breaks
 PassWrapper.c build with external llvm.
 Fix PR pkg/56304.


 To generate a diff of this commit:
 cvs rdiff -u -r1.242 -r1.243 pkgsrc/lang/rust/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Thu, 12 Aug 2021 01:08:29 +0000
State-Changed-Why:
Confirm fixed by Makefile r1.243 on NetBSD/i386 9.2. Thanks.


>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.