[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

'abort' not defined

Added by Jayanand AK about 3 years ago

Hi, The 'perl Makefile.PL' command works and displays: Writing Makefile for Verilog::Parser Writing Makefile for Verilog::Preproc Writing Makefile for Verilog::Language

When I try the 'make' command after that, I get the following error

g++ -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../Preproc -O2 -g -DVERSION=\"3.200\" -DXS_VERSION=\"3.200\" -fPIC "-I/usr/lib/perl/5.10/CORE" Parser_cleaned.c In file included from VSymTable.h:28, from VParse.h:32, from Parser.xs:30: VAst.h: In constructor ‘VAstEnt::VAstEnt()’: VAst.h:103: error: ‘abort’ was not declared in this scope VAst.h: In destructor ‘VAstEnt::~VAstEnt()’: VAst.h:104: error: ‘abort’ was not declared in this scope make1: *** [Parser_cleaned.o] Error 1

I don't see the abort() function used in the constructor/destructor defined anywhere. Please do let me know how I can fix this. Thanks.

-Jayanand.


Replies (4)

RE: 'abort' not defined - Added by Wilson Snyder about 3 years ago

abort is a c library function.

Try adding to to VAst.h right after #include <string>

#include <cstdlib>

RE: 'abort' not defined - Added by Jayanand AK about 3 years ago

Thanks! The 'make' and 'make test' steps worked. During 'make install' there was an error of not having permissions to '/usr/local/bin'. I don't have root access, perhaps that is the problem. If I modify the script to use some other directory for which I have permissions, I guess it should work.

-Jayanand

RE: 'abort' not defined - Added by J Baxter about 3 years ago

Hi guys,

Just letting you know I ran into this problem too, when both doing an install from cpan and from sources. The inclusion of #include <cstdlib> in Parser/VAst.h fixed things.

Thanks.

RE: 'abort' not defined - Added by Wilson Snyder about 3 years ago

This was fixed in the git version last week. Since J Baxter hit it too, I pushed the new version 3.201. I'll hit cpan soon.

(1-4/4)