3

I have gentoo ~amd64 installed and I'm trying to create a crossdev environment for armv7a-hardfloat-linux-gnueabi.

my CFLAGS are `CCFLAGS="-O2 -pipe -fomit-frame-pointer".

when I try to compile the base system, it tries to compile libgpg-error and fails with:

gawk: fatal: cannot use gawk builtin `namespace' as variable

how do I resolve this to continue and build my crossdev environment ?

I tried downgrading gawk from 5 to 4 but the results are the same.

thanks

ufk
  • 30,912
  • 70
  • 235
  • 386

2 Answers2

3

Same problem on my side:

"namespace" name is not acceptable by gawk-5.0

try:

sed -i                                                  \
  -e "s/namespace/varerrno/g"                           \
  src/{Makefile.am,mkstrtable.awk}

Before doing ./autogen.sh or/and ./configure

Hoping that help.

CoyBit
  • 1,592
  • 1
  • 17
  • 19
JMP
  • 46
  • 2
1

Could it be a typo?

Change "libpgp-error" to "libgpg-error".

Even one of the blue buttons has label "libgpg-error"

Marichyasana
  • 2,966
  • 1
  • 19
  • 20