pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Pkgsrc LLVM 19.x on i386?
Hi,
in an effort to find out whether rust can be built with the
pkgsrc-provided LLVM, and to test that on other NetBSD 9.x
platforms than on amd64, I decided to try on NetBSD/i386. For
testing I have a host with PAE enabled, and more than enough
physical memory to not make this a slog.
However, I am finding that pkgsrc LLVM itself fails to build.
"top" right before it bombs looked like this:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
14233 he 21 4 2655M 2630M CPU/1 1:51 99.41% 99.02% cc1plus
and the build log ends in
[ 46%] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SCCPSolver.cpp.o
cc1plus: out of memory allocating 43814400 bytes after a total of 0 bytes
From earlier discussions I vaguely seem to remember that the i386
port is architecturally limited to max around 3GB virtual address
space per process. Pkgsrc says "needs to use gcc8":
$ make show-var VARNAME=GCC_REQD
7 7 8
$ pwd
/usr/pkgsrc/lang/llvm
$
so that's what's done:
=> Build dependency gcc8>=8.5.0nb1: NOT found
=> Verifying reinstall for ../../lang/gcc8
...
=> Returning to build of llvm-19.1.7
=> Full dependency gcc8-libs>=8.3.0: found gcc8-libs-8.5.0nb3
LLVM itself says
GCC_REQD+= 7
so I have not yet figured out where the 8 comes from.
Has LLVM outgrown the i386 port, or is it just a matter of using
a gcc which is newer and doesn't blow up on LLVM?
Regards,
- Håvard
Home |
Main Index |
Thread Index |
Old Index