Bug 18615 - scripts/sysd-rules.awk (via make process) causes a ton of gawk warnings
Summary: scripts/sysd-rules.awk (via make process) causes a ton of gawk warnings
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: build (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-01 00:33 UTC by jamespharvey20
Modified: 2015-07-24 14:46 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespharvey20 2015-07-01 00:33:14 UTC
On arch, glibc-git and gawk 4.1.3, right after running configure, make causes a ton of (duplicate) gawk warnings, through scripts/sysd-rules.awk.

Not sure (yet) if this is a harmless warning.

Even if it is, and the third argument to gensub is supposed to be 1, it would be nice to pretty-up the build output by actually giving it 1.

==========
make -r PARALLELMFLAGS="" -C ../glibc.git.awk.check objdir=`pwd` all
make[1]: Entering directory '/home/username/glibc.git.awk.check'
LC_ALL=C gawk -f scripts/sysd-rules.awk > /home/username/glibc.git.awk.check.build/sysd-rulesT \
		-v all_object_suffixes='.o .os .op .og .oS' \
		-v inhibit_sysdep_asm='' \
		-v sysd_rules_patterns='%:% rtld-%:rtld-% rtld-%:% m_%:s_% ptw-%:%' \
		-v config_sysdirs='sysdeps/unix/sysv/linux/x86_64/64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/wordsize-64 sysdeps/x86_64/nptl sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/x86_64 sysdeps/unix sysdeps/posix sysdeps/x86_64/64 sysdeps/x86_64/fpu/multiarch sysdeps/x86_64/fpu sysdeps/x86/fpu sysdeps/x86_64/multiarch sysdeps/x86_64 sysdeps/x86 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/wordsize-64 sysdeps/ieee754 sysdeps/generic'
gawk: scripts/sysd-rules.awk:56: warning: gensub: third argument `' treated as 1
gawk: scripts/sysd-rules.awk:56: warning: gensub: third argument `' treated as 1
gawk: scripts/sysd-rules.awk:56: warning: gensub: third argument `' treated as 1
gawk: scripts/sysd-rules.awk:56: warning: gensub: third argument `' treated as 1
gawk: scripts/sysd-rules.awk:56: warning: gensub: third argument `' treated as 1
{repeats maybe a few hundred times}
==========
Comment 1 jamespharvey20 2015-07-01 00:39:30 UTC
Also happens at nptl/tst-cancel-wrappers.sh:77

Instead of 1 (or any other number) "g" could be intended, for a global substitution.