Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 455786

Summary: sys-apps/nawk-20110810-r1 is useless and broken
Product: Gentoo Linux Reporter: Alexandre Rostovtsev (RETIRED) <tetromino>
Component: [OLD] Core systemAssignee: Christoph Junghans (RETIRED) <junghans>
Status: RESOLVED FIXED    
Severity: major CC: naota
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 418473, 419555, 425744    
Attachments: emerge --info nawk

Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-02-06 04:12:47 UTC
Created attachment 338060 [details]
emerge --info nawk

~ $ echo hello | gawk '{ print $0, "world" }'
hello world
~ $ echo hello | mawk '{ print $0, "world" }'
hello world
~ $ echo hello | nawk '{ print $0, "world" }'
nawk: syntax error at source line 1
 context is
	{ >>>  print <<<  $0, "world" }
nawk: illegal statement at source line 1


This is on ~amd64; emerge --info is attached.
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2013-02-06 05:27:30 UTC
(In reply to comment #0)
> ~ $ echo hello | nawk '{ print $0, "world" }'
> nawk: syntax error at source line 1
>  context is
> 	{ >>>  print <<<  $0, "world" }
> nawk: illegal statement at source line 1
Works on my x86 box, but not on my amd64 box!
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2013-02-06 05:51:12 UTC
I made a version bump, which fixed the issue on my amd64 box.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-02-06 06:06:40 UTC
nawk-20121220-r1 is still failing for me...
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-02-06 06:12:52 UTC
The error is being raised at awkgram.y:308 : SYNTAX("illegal statement")

Perhaps it makes a difference which virtual/yacc implementation is being used to build nawk? I am using bison-2.7
Comment 5 Christoph Junghans (RETIRED) gentoo-dev 2013-02-06 06:15:26 UTC
(In reply to comment #4)
> The error is being raised at awkgram.y:308 : SYNTAX("illegal statement")
> 
> Perhaps it makes a difference which virtual/yacc implementation is being
> used to build nawk? I am using bison-2.7
I used sys-devel/bison-2.4.3.
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-02-06 06:31:34 UTC
OK, this looks like a parallel make failure.

If I build nawk-20121220-r1 with MAKEOPTS=-j1, it seems to run correctly.
If I build with MAKEOPTS=-j8, it gives a syntax error on any input file.
Comment 7 Christoph Junghans (RETIRED) gentoo-dev 2013-02-06 16:55:41 UTC
(In reply to comment #6)
> OK, this looks like a parallel make failure.
> 
> If I build nawk-20121220-r1 with MAKEOPTS=-j1, it seems to run correctly.
> If I build with MAKEOPTS=-j8, it gives a syntax error on any input file.
I think, I found it. The tarball comes with an obsolete version of ytab.{c,h}, but actually it is build with yacc.

I will patch the makefile.
Comment 8 Christoph Junghans (RETIRED) gentoo-dev 2013-02-07 17:00:09 UTC
fixed in nawk-20121220-r2.