Bug 244813 - lang/rust: fix build on powerpc64 elfv2
Summary: lang/rust: fix build on powerpc64 elfv2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Some People
Assignee: FreeBSD Rust Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-14 20:33 UTC by Piotr Kubaj
Modified: 2020-03-17 22:33 UTC (History)
3 users (show)

See Also:
mikael: maintainer-feedback+


Attachments
patch (2.93 KB, patch)
2020-03-14 20:33 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (rust)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2020-03-14 20:33:47 UTC
Created attachment 212413 [details]
patch

After upgrade to LLVM 10, core in stage 1 fails to compile (no clear reason, rustc crashes):
pid 26828 (rustc), jid 0, uid 0: exited on signal 11 (core dumped)

Compilation with GCC works fine, so switch to GCC for the time being.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-03-17 19:25:49 UTC
A commit references this bug:

Author: pkubaj
Date: Tue Mar 17 19:25:20 UTC 2020
New revision: 528599
URL: https://svnweb.freebsd.org/changeset/ports/528599

Log:
  lang/rust: fix build on powerpc64 elfv2

  After upgrade to LLVM 10, core in stage 1 fails to compile (no clear reason, rustc crashes):
  pid 26828 (rustc), jid 0, uid 0: exited on signal 11 (core dumped)

  Compilation with GCC works fine, so switch to GCC for the time being.

  PR:		244813
  Approved by:	mikael

Changes:
  head/lang/rust/Makefile
  head/lang/rust/files/powerpc64-elfv2/patch-src_bootstrap_native.rs
  head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-03-17 22:33:03 UTC
A commit references this bug:

Author: tobik
Date: Tue Mar 17 22:32:21 UTC 2020
New revision: 528606
URL: https://svnweb.freebsd.org/changeset/ports/528606

Log:
  lang/rust-bootstrap: Unbreak powerpc64_elfv2 flavor after r528599

  error: could not find native static library `stdc++`, perhaps an -L flag is missing?

  error: aborting due to previous error

  error: could not compile `rustc_llvm`.

  PR:		244813

Changes:
  head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs