Re: zfs: out of memory

Patrick Welche <[email protected]>
Newsgroups gmane.os.netbsd.current
Message-ID <[email protected]>
On Sat, Jan 10, 2026 at 11:29:39PM +0000, nia wrote:
> On Sat, Jan 10, 2026 at 03:46:41PM +0000, Patrick Welche wrote:
> > I see:
> > 
> > # zpool list
> > internal error: out of memory
> > # zfs list
> > internal error: out of memory
> > 
> > on 2 different amd64 boxen running 8 Jan -current kernels. The box with
> > 64 G of memory has run zfs flawlessly for years...
> 
> Hey, please try again with zfs from today (11 Jan).

I'm having a bit of trouble with this morning's code (Jan 11 09:20 UTC):

# sh build.sh -D /usr/export/amd64 -r -j1 release
...
dependall ===> tools/compat
#   compile  compat/atoll.lo
...
/usr/src/tools/compat/compat_defs.h: In function 'be16enc':
/usr/src/tools/compat/compat_defs.h:1138:25: error: implicit declaration of function 'bswap16' [-Wimplicit-function-declaration]
 1138 | #define htobe16(x)      bswap16((u_int16_t)(x))
      |                         ^~~~~~~

full log attached.

Thanks for looking at this!


Patrick
build.log (text/plain, 3.1 KB)
do-tools ===> .
build_install ===> tools
dependall-host-mkdep ===> tools	(with: dependall-compat dependall-binstall)
dependall ===> tools/host-mkdep
dependall ===> tools/compat
#   compile  compat/atoll.lo
cc -O   -I. -I./include -I/usr/src/tools/compat -I/usr/src/tools/compat/sys  -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I. -I./include -I/usr/src/tools/compat -I/usr/src/tools/compat/sys -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o atoll.lo.o    /usr/src/tools/compat/../../lib/libc/stdlib/atoll.c
In file included from ./nbtool_config.h:987,
                 from /usr/src/tools/compat/../../lib/libc/stdlib/atoll.c:33:
/usr/src/tools/compat/compat_defs.h: In function 'be16enc':
/usr/src/tools/compat/compat_defs.h:1138:25: error: implicit declaration of function 'bswap16' [-Wimplicit-function-declaration]
 1138 | #define htobe16(x)      bswap16((u_int16_t)(x))
      |                         ^~~~~~~
/usr/src/tools/compat/compat_defs.h:1179:13: note: in expansion of macro 'htobe16'
 1179 |         u = hto ## endian ## bits (u); \
      |             ^~~
/usr/src/tools/compat/compat_defs.h:1183:1: note: in expansion of macro '__GEN_ENDIAN_ENC'
 1183 | __GEN_ENDIAN_ENC(16, be)
      | ^~~~~~~~~~~~~~~~
/usr/src/tools/compat/compat_defs.h: In function 'be32enc':
/usr/src/tools/compat/compat_defs.h:1141:25: error: implicit declaration of function 'bswap32' [-Wimplicit-function-declaration]
 1141 | #define htobe32(x)      bswap32((u_int32_t)(x))
      |                         ^~~~~~~
/usr/src/tools/compat/compat_defs.h:1179:13: note: in expansion of macro 'htobe32'
 1179 |         u = hto ## endian ## bits (u); \
      |             ^~~
/usr/src/tools/compat/compat_defs.h:1186:1: note: in expansion of macro '__GEN_ENDIAN_ENC'
 1186 | __GEN_ENDIAN_ENC(32, be)
      | ^~~~~~~~~~~~~~~~
/usr/src/tools/compat/compat_defs.h: In function 'be64enc':
/usr/src/tools/compat/compat_defs.h:1144:25: error: implicit declaration of function 'bswap64' [-Wimplicit-function-declaration]
 1144 | #define htobe64(x)      bswap64((u_int64_t)(x))
      |                         ^~~~~~~
/usr/src/tools/compat/compat_defs.h:1179:13: note: in expansion of macro 'htobe64'
 1179 |         u = hto ## endian ## bits (u); \
      |             ^~~
/usr/src/tools/compat/compat_defs.h:1189:1: note: in expansion of macro '__GEN_ENDIAN_ENC'
 1189 | __GEN_ENDIAN_ENC(64, be)
      | ^~~~~~~~~~~~~~~~

*** Failed target: atoll.lo
*** In directory: /usr/src/tools/compat
*** Failed commands:
	${_MKTARGET_COMPILE}
	=> @echo '#  ' "compile " compat/atoll.lo
	${HOST_COMPILE.c} -o ${.TARGET}.o ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC}
	=> cc -O   -I. -I./include -I/usr/src/tools/compat -I/usr/src/tools/compat/sys  -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I. -I./include -I/usr/src/tools/compat -I/usr/src/tools/compat/sys -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o atoll.lo.o    /usr/src/tools/compat/../../lib/libc/stdlib/atoll.c
	${MV} ${.TARGET}.o ${.TARGET}
	=> mv -f atoll.lo.o atoll.lo
*** [atoll.lo] Error code 1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.