[PATCH] D147740: [llvm-profdata] Refactoring Sample Profile Reader to increase FDO build speed using MD5 as key to Sample Profile map

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 25 01:40:01 PDT 2023


ro added a comment.

In D147740#4529339 <https://reviews.llvm.org/D147740#4529339>, @huangjd wrote:

> @ro 
> I am using the SPARC machine on GCC farm but it seems to hang on linking the unit tests. Is this normal? Is there an easy option to cross build all the binaries from a X86 machine targeting SPARC and send the file over?

Which cfarm system did you use for the builds?  There are several, both Solaris and Linux.  I've avoided the Linux ones since they could be unreliable at times.  I'd suggest going for `gcc106`, the only Solaris 11.4 box which is required for LLVM.  There are two issues to be wary about:

- Be careful to control the parallellism: the link steps can be quite memory intensive (for comparison's sake, my Solaris 11.4/SPARC box used to have 256 GB RAM and is now at 512 GB which helped tremendously).
- If you are doing a debug build, the linking is painfully slow indeed (on the order of hours in some cases).  Nothing to do about that but being patient.

I've never done cross builds and would expect them to be a real PITA, especially since `clang` only supports the Solaris linker right now, and GNU `ld` is **not** command-line compatible.

> What command did you use to build and test on SPARC?

I'm using a script of my own to do the `cmake` invocation, for a considerable part handling the 2-stage build.  Nothing really special in there, though.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147740/new/

https://reviews.llvm.org/D147740



More information about the llvm-commits mailing list