NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Building NetBSD 11 Release from Source Fails on Linux/MacOS
On Tue, 3 Nov 2026, Helge Pfeiffer wrote:
/home/user/workspace/netbsd-11-obj/tooldir.Linux-5.19.0-76051900-generic-x86_64/bin/nbm4 -
DCONFIG_TOP_SRCDIR=/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp/../../dist -
I/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp -I/home/user/workspace/netbsd-11-
obj/external/lgpl3/gmp/lib/libgmp/dummy -I/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp/../../dist/ -
I/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp/../../dist/mpn -I/home/user/workspace/netbsd-11-
obj/external/lgpl3/gmp/lib/libgmp -DPIC -DOPERATION_sqr_diag_addlsh1 /home/user/workspace/netbsd-11-
src/external/lgpl3/gmp/lib/libgmp/../../dist/mpn/x86_64/sqr_diag_addlsh1.asm > sqr_diag_addlsh1.s
nbm4: unexpected end of input, unclosed parenthesis:
/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp/../../dist/mpn/x86_64/sqr_diag_addlsh1.asm at line
116
The error is `unexpected end of input, unclosed parenthesis'. Which means all
the files (incl. the included files) were found, but, there's something wrong
with parsing them.
Compare these 2 files, and whatever they include, against the sources which
surely build[1]:
/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/dist/mpn/x86_64/sqr_diag_addlsh1.asm
/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4
(I think these are the only 2 included files.)
/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/dist/mpn/asm-defs.m4
/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/dist/mpn/x86_64/x86_64-defs.m4
If all 4 files compare OK, you can run this command again, as a test:
/home/user/workspace/netbsd-11-obj/tooldir.Linux-5.19.0-76051900-generic-x86_64/bin/nbm4 -
DCONFIG_TOP_SRCDIR=/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp/../../dist -
I/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp -I/home/user/workspace/netbsd-11-
obj/external/lgpl3/gmp/lib/libgmp/dummy -I/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp/../../dist/ -
I/home/user/workspace/netbsd-11-src/external/lgpl3/gmp/lib/libgmp/../../dist/mpn -I/home/user/workspace/netbsd-11-
obj/external/lgpl3/gmp/lib/libgmp -DPIC -DOPERATION_sqr_diag_addlsh1 /home/user/workspace/netbsd-11-
src/external/lgpl3/gmp/lib/libgmp/../../dist/mpn/x86_64/sqr_diag_addlsh1.asm > sqr_diag_addlsh1.s
*** [sqr_diag_addlsh1.s] Error code 1
```
1. Is there enough space for the build? Not running out of disk space, right?
2. You shouldn't set any custom $CC, $CFLAGS, $CXXFLAGS, $LDFLAGS etc.
These have a tendency to screw up the build in mysterious ways.
-RVP
[1]: https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-11/latest/source/sets/
Home |
Main Index |
Thread Index |
Old Index