Page MenuHome GnuPG

libgpg-error 1.36 and gawk: fatal: cannot use gawk builtin `namespace' as variable name
Closed, ResolvedPublic

Description

Hi Everyone,

I'm trying to build the latest GnuPG suite from the release tarballs. I'm working on Fedora 31, x86_64, fully patched. Downloads for the GnuPG suite are found at GnuPG Downloads.

First up is libgpg-error:

gmake[2]: Entering directory '/home/jwalton/Build-Scripts/libgpg-error-1.36/src'
gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
	./err-sources.h.in >err-sources-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
	./err-codes.h.in >err-codes-sym.h
gawk: gawk: ./mkerrnos.awk:86: warning: regexp escape sequence `\#' is not a known regexp operator./mkerrcodes1.awk:84: 
warning: regexp escape sequence `\#' is not a known regexp operator
gcc -E -I/usr/local/include -DNDEBUG  -P _mkerrcodes.h | grep GPG_ERR_ | \
               gawk -f ./mkerrcodes.awk >mkerrcodes.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
	-v prefix=GPG_ERR_ -v namespace=errnos_ \
	./errnos.in >errnos-sym.h
gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `\#' is not a known regexp operator
gcc -g -O0 -I. -I. -o mkheader ./mkheader.c
gcc -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -DNDEBUG  -g2 -O2 -march=native -fPIC -pthread  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT gen-posix-lock-obj.o -MD -MP -MF .deps/gen-posix-lock-obj.Tpo -c -o gen-posix-lock-obj.o gen-posix-lock-obj.c
gawk: ./mkerrcodes.awk:88: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: fatal: cannot use gawk builtin `namespace' as variable name
gmake[2]: *** [Makefile:1617: errnos-sym.h] Error 2
gmake[2]: *** Waiting for unfinished jobs....
rm _mkerrcodes.h
mv -f .deps/gen-posix-lock-obj.Tpo .deps/gen-posix-lock-obj.Po
gmake[2]: Leaving directory '/home/jwalton/Build-Scripts/libgpg-error-1.36/src'
gmake[1]: *** [Makefile:509: all-recursive] Error 1
gmake[1]: Leaving directory '/home/jwalton/Build-Scripts/libgpg-error-1.36'
gmake: *** [Makefile:441: all] Error 2

And:

skylake:Build-Scripts$ command -v gawk
/bin/gawk
skylake:Build-Scripts$ gawk --version
GNU Awk 5.0.1, API: 3.0 (GNU MPFR 3.1.6-p2, GNU MP 6.1.2)

Details

Version
1.38

Event Timeline

JW updated the task description. (Show Details)
JW updated the task description. (Show Details)

That looks pretty much like another gawk regression. The easiest fix is to install another AWK version (e.g. mawk).

werner claimed this task.
werner added a project: Duplicate.

It has been fixed in the repo for nearly a year, see T4459. A new release is urgently required and will follow in the next days. I close this as a duplicate.