Menu

#367 g++ 4.1.1-33 on RedHat fails to compile

v0.8
closed-fixed
nobody
5
2008-04-29
2008-02-02
Anonymous
No

I just successfully built Icarus Verilog 0.8 with g++ 3.4.6-9 on Linux, but the same distribution failed to compile on a different machine with a newer g++.

See the log below.

Igor Markov <imarkov@eecs.umich.edu>

% make
mkdir dep
g++ -DHAVE_CVS_IDENT=1 -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 -MD -c main.cc -o main.o
verinum.h:46: error: expected ',' or '...' before '&' token
verinum.h:46: error: ISO C++ forbids declaration of 'string' with no type
verinum.h:93: error: 'string' does not name a type
verinum.h:110: error: expected initializer before '&' token
verinum.h:111: error: expected initializer before '&' token
verireal.h:42: error: ISO C++ forbids declaration of 'ostream' with no type
verireal.h:42: error: 'ostream' is neither function nor member function; cannot be declared friend
verireal.h:42: error: expected ';' before '&' token
verireal.h:71: error: expected initializer before '&' token
StringHeap.h:104: error: expected ',' or '...' before '&' token
StringHeap.h:104: error: ISO C++ forbids declaration of 'string' with no type
svector.h:104: error: invalid use of constructor as a template
svector.h:104: note: use 'svector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::svector' instead of 'svector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::class svector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' to name the constructor in a qualified name
netlist.h:756: error: ISO C++ forbids declaration of 'NetRamDq' with no type
netlist.h:756: error: expected ';' before '*' token
netlist.h:1848: error: ISO C++ forbids declaration of 'NetEvTrig' with no type
netlist.h:1848: error: expected ';' before '*' token
netlist.h:1853: error: ISO C++ forbids declaration of 'NetEvWait' with no type
netlist.h:1853: error: expected ';' before '*' token
PExpr.h:327: error: extra qualification 'PEString::' on member 'eval_const'
make: *** [main.o] Error 1

Discussion

  • Stephen Williams

    • status: open --> closed-fixed
     
  • Stephen Williams

    Logged In: YES
    user_id=97566
    Originator: NO

    This has since been fixed, and compiles with the 4.x series of compilers.

     

Log in to post a comment.