NetBSD-Bugs archive

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

port-powerpc/56107: All tests in t_make fail with "Cannot map anonymous memory" on booke



>Number:         56107
>Category:       port-powerpc
>Synopsis:       All tests in t_make fail with "Cannot map anonymous memory" on booke
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-powerpc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 14 05:05:00 +0000 2021
>Originator:     Rin Okuyama
>Release:        9.99.81
>Organization:
Department of Physics, Meiji University
>Environment:
NetBSD rb800 9.99.81 NetBSD 9.99.81 (RB800-$Revision: 1.38 $) #130: Wed Apr 14 09:49:39 JST 2021  rin@latipes:/sys/arch/evbppc/compile/RB800 evbppc
>Description:
All tests in /usr/tests/usr.bin/make/t_make fail on powerpc/booke,
although they pass successfully for other powerpc sub-archs, i.e., oea and
ibm4xx. Log from atf-run(1) is like:

| tc-start: 1618319044.259295, archive
| tc-so:Executing command [ make -f /usr/tests/usr.bin/make/unit-tests/Makefile archive.out ]
| tc-so:Executing command [ cat archive.out ]
| tc-se:Fail: stdout does not match golden output
| tc-se:--- /usr/tests/usr.bin/make/unit-tests/archive.exp        2021-04-13 10:03:48.000000000 +0000
| tc-se:+++ /tmp/check.grUp6u/stdout      2021-04-13 13:04:04.881254960 +0000
| tc-se:@@ -1,28 +1,2 @@
| tc-se:-Making remove-archive
| tc-se:-rm -f libprog.a
| ...(snip)...
| tc-se:-exit status 0
| tc-se:+Cannot map anonymous memoryCannot allocate memory: Cannot allocate memory
| tc-se:+exit status 1

The first error message seems to come from ld.elf_so:

| % find /usr/src -type f -printx | xargs grep "Cannot map anonymous memory"
| /usr/src/libexec/ld.elf_so/xmalloc.c:           xprintf("Cannot map anonymous memory");
| %

The failure occurs both for kernel and userland built with GCC 9 and 10.

make(1) itself works fine as far as I can see. At least, kernel can be
self-built on booke.

Note that these tests pass on mips64-eb, which shares uvm/pmap with booke.
>How-To-Repeat:
"cd /usr/tests/usr.bin/make && atf-run t_make" on powerpc/booke.
>Fix:
N/A



Home | Main Index | Thread Index | Old Index