pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rust - volunteers sought...



>> I've started building 1.78, using llvm 18.1.5 (I usually use the
>> built-in llvm, decided to test irst with the new llvm). This is on
>>
>> $ uname -a
>> NetBSD narvi 10.99.10 NetBSD 10.99.10 (GENERIC64) #0: Tue May 14 01:56:21 BST 2024  sysbuild%ymir.lorien.lan@localhost:/dumps/sysbuild/evbarm64/obj/home/sysbuild/src/sys/arch/evbarm/compile/GENERIC64 evbarm
...
>> And eventually it failed, using the builtin llvm, creating the second
>> stage compiler, with a stack exceeded error. I increased the stack size to
>> the max of 64m, to no effect.

OK, this is consistent with what I observe.  This means that at
least the error isn't due to some kink in my setup.

Increasing the stack size would have no effect due to the rust
Makefile already doing

UNLIMIT_RESOURCES+=     cputime stacksize datasize virtualsize

My next try is going to be with a kernel which has an increased
maximum stack size (MAXSSIZ), ref.

Index: sys/arch/evbarm/conf/GENERIC64
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/conf/GENERIC64,v
retrieving revision 1.103.2.13
diff -u -r1.103.2.13 GENERIC64
--- sys/arch/evbarm/conf/GENERIC64      7 Jul 2020 10:29:06 -0000       1.103.2.13
+++ sys/arch/evbarm/conf/GENERIC64      16 May 2024 08:36:52 -0000
@@ -143,6 +143,9 @@
 #options       POOL_QUARANTINE # optional
 #options       KASAN_PANIC     # optional
 
+# Bump max stack size by 2x:
+makeoptions    MAXSSIZ="1L<<27" # default is 1L<<26, ref sys/arch/aarch64/include/vmparam.h
+
 makeoptions    DEBUG="-g"      # compile full symbol table
 makeoptions    COPY_SYMTAB=1
 
in an attempt to truly verify that it's actually exceeding the
stack size.

Anyone know what the max stack size is on Linux/aarch64?

Regards,

- Havard


Home | Main Index | Thread Index | Old Index