Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building Verilog-Perl 3.121 #121

Closed
veripoolbot opened this issue Apr 6, 2009 · 0 comments
Closed

Error building Verilog-Perl 3.121 #121

veripoolbot opened this issue Apr 6, 2009 · 0 comments
Assignees
Labels

Comments

@veripoolbot
Copy link
Collaborator

@veripoolbot veripoolbot commented Apr 6, 2009


Author Name: Wilson Snyder (@wsnyder)
Original Redmine Issue: 121 from https://www.veripool.org
Original Date: 2009-04-06
Original Assignee: Wilson Snyder (@wsnyder)


This bug was cloned from Perl-RT, rt44820.

Email addresses have have been truncated.

Id:   44820
Status:		rejected
Queue: 		Verilog-Perl
Requestors:	rlewandowski.junkmail@

Created:	Mon Apr 06 11:44:10 2009
Last Contact: 	Mon Jun 01 21:45:16 2009
Closed: 	Mon Jun 01 21:45:16 2009
Updated: 	Mon Jun 01 21:45:16 2009 by WSNYDER

Mon Apr 06 11:44:15 2009 rlewandowski.junkmail@ - Ticket created

Subject:  Error building Verilog-Perl 3.121
Date: 	  Mon, 6 Apr 2009 09:43:31 -0600
To: 	  bug-Verilog-Perl@
From: 	  Ryan Lewandowski <rlewandowski.junkmail@>

I was just trying to build Verilog-Perl 3.121 and ran into an error
while running make. I saw a similar error reported before, but no
solution:

make[1]: Entering directory
`/tmp_mnt/net/farmall/mnt/homes2/lewandor/temp/Verilog-Perl-3.121/Parser'
/opt/ictools/perl/bin/perl callbackgen
g++ -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fPIC -DPIC
-fno-strict-aliasing -I/opt/ictools/db/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I../Preproc -O3
-DVERSION=\"3.121\" -DXS_VERSION=\"3.121\" -fpic
"-I/opt/ictools/perl/lib/5.8.3/i686-linux-thread-multi/CORE"
VParseBison.c
VParseBison.c: In function `int VParseBisonparse()':
VParseBison.c:12090: error: syntax error before `goto'
make[1]: *** [VParseBison.o] Error 1
make[1]: Leaving directory
`/tmp_mnt/net/farmall/mnt/homes2/lewandor/temp/Verilog-Perl-3.121/Parser'
make: *** [subdirs] Error 2

Perl Version: 5.8.3
OS Version: GNU/Linux 2.6.9-78.0.5.ELsmp #1 SMP Wed Sep 24 05:40:24 EDT 2008

Thanks

Mon Apr 06 11:51:18 2009 WSNYDER - Correspondence added

> VParseBison.c: In function `int VParseBisonparse()':
> VParseBison.c:12090: error: syntax error before `goto'

That's a generated file. Which version of bison?

What do the lines around 12090 look like?

Mon Apr 06 11:51:19 2009 RT_System - Status changed from 'new' to 'open'

Mon Apr 06 13:19:02 2009 rlewandowski.junkmail@ - Correspondence added

Subject:     Re: [rt.cpan.org #44820] Error building Verilog-Perl 3.121
Date: 	     Mon, 6 Apr 2009 11:18:20 -0600
To: 	     bug-Verilog-Perl@
From: 	     Ryan Lewandowski <rlewandowski.junkmail@>
Bison version is 1.875

VParseBison.c 12079:12093
/*----------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action. |
`----------------------------------------------------*/
yyerrlab1:

/* Suppress GCC warning that yyerrlab1 is unused when no action
invokes YYERROR. */
#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
__attribute__ ((__unused__))
#endif

goto yyerrlab2;

Mon Apr 06 20:36:12 2009 WSNYDER - Correspondence added

I don't see anything obviously wrong with what you attached, it must be
something more subtle. Since my bison output looks differently, you'll
unfortunately have to debug it at your end.

Try the gcc command line that fails, but just run the preprocessor (-E),
and see if you can see anything wrong.

g++ -E -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fPIC -DPIC
-fno-strict-aliasing -I/opt/ictools/db/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I../Preproc -O3
-DVERSION=\"3.121\" -DXS_VERSION=\"3.121\" -fpic
"-I/opt/ictools/perl/lib/5.8.3/i686-linux-thread-multi/CORE"
VParseBison.c
> VParseBison.i

egrep -v "^#" < VParseBison.i > VParseBison.i.c

g++ -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fPIC -DPIC
-fno-strict-aliasing -I/opt/ictools/db/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I../Preproc -O3
-DVERSION=\"3.121\" -DXS_VERSION=\"3.121\" -fpic
"-I/opt/ictools/perl/lib/5.8.3/i686-linux-thread-multi/CORE"
VParseBison.i.c

Then look around the line # it complains about. If it's not obvious
include the whole VParseBison.i.c file before the egrep.

Mon Jun 01 21:45:14 2009 WSNYDER - Correspondence added

Closing due to no reply; if still problems please use the issue tracker
at veripool.org, thanks.

Mon Jun 01 21:45:16 2009 WSNYDER - Status changed from 'open' to 'rejected'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.