guile30: finish package

Easier now that boehm-gc is threaded.
This commit is contained in:
Thomas Klausner 2020-03-18 21:05:50 +01:00
parent b0fcdd60f9
commit fbb5c0f07f
3 changed files with 831 additions and 769 deletions

View File

@ -17,8 +17,6 @@ GUILE_SUBDIR= guile/3.0
# guile does not like the --build and --host triplets on NetBSD
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-shared
# not until boehm-gc is threaded
#CONFIGURE_ARGS+= --without-threads
CONFIGURE_ARGS+= SHELL=${CONFIG_SHELL}
# Needed to work around broken configure check for accept4()
LDFLAGS.SunOS+= -lsocket -lnsl
@ -81,10 +79,10 @@ post-configure:
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../textproc/libunistring/buildlink3.mk"
# needs a particular bug fix on NetBSD
BUILDLINK_API_DEPENDS.boehm-gc+= boehm-gc>=7.4.2nb1
# needs threaded boehm-gc
BUILDLINK_API_DEPENDS.boehm-gc+= boehm-gc>=8.0.4nb1
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
#.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,30 @@
On NetBSD:
With threads support:
Needs "sysctl -w security.pax.mprotect.enabled=0".
Test failures:
error: 'guild compile' failed to remove 't-guild-compile-23088.go.RI4Ae9'
FAIL: test-guild-compile
...
SKIP: test-pthread-create-secondary
...
wrote `/scratch/wip/guile30/work/guile-3.0.1/cache/guile/ccache/3.0-LE-8-4.2/scratch/wip/guile30/work/guile-3.0.1/test-suite/standalone/test-out-of-memory.go' GC Warning: Failed to expand heap by 134348800 bytes
GC Warning: Failed to expand heap by 134217728 bytes
GC Warning: Out of Memory! Heap size: 1 MiB. Returning NULL!
error creating finalization thread: Cannot allocate memory
GC Warning: Failed to expand heap by 1000132608 bytes
GC Warning: Failed to expand heap by 1000001536 bytes
GC Warning: Out of Memory! Heap size: 1 MiB. Returning NULL!
mmap(PROT_NONE) failed
[1] Abort trap (core dumped) top_srcdir="../.." srcdir="." builddir="." CHA...
FAIL: test-out-of-memory
(same as with guile22-2.2.7)
Without threads support, doesn't build:
CCLD libguile-3.0.la
ld: .libs/libguile_3.0_la-posix.o: in function `scm_tmpnam':
/scratch/wip/guile30/work/guile-3.0.1/libguile/posix.c:1605: warning: warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp()