Project

General

Profile

[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
  SVN::S4
  Voneline
  WFH
General Info
  Papers

Issue #1322

Build errors at V3Error.cpp

Added by أحمد المحمودي 6 months ago. Updated 5 months ago.

Status:
NoFixNeeded
Priority:
Normal
Assignee:
Category:
Configure/Make/Compiling
% Done:

0%


Description

I get too many errors when building verilator 3.924, because of V3Error.h, here is a sample of build errors:

make3: Entering directory '/<<PKGBUILDDIR>>/src/obj_dbg' g++ -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -faligned-new -fno-delete-null-pointer-checks -Wno-unused-parameter -Wno-shadow -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"/usr/include\" -DDEFENV_SYSTEMC_LIBDIR=\"/usr/lib/x86_64-linux-gnu\" -DDEFENV_VERILATOR_ROOT=\"/usr/share/verilator\" -c ../VlcMain.cpp In file included from ../V3Error.cpp:25:0, from ../VlcMain.cpp:23: ../V3Error.h:192:10: error: ‘ostream’ does not name a type; did you mean ‘strcat’? inline ostream& operator<<(ostream& os, V3ErrorCode rhs) { return os<<rhs.ascii(); } ^~~~~ strcat ../V3Error.h:199:13: error: ‘set’ does not name a type; did you mean ‘tzset’? typedef set<string> MessagesSet; ^~~ tzset

also:

make3: Entering directory '/<<PKGBUILDDIR>>/src/obj_dbg' g++ -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -faligned-new -fno-delete-null-pointer-checks -Wno-unused-parameter -Wno-shadow -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"/usr/include\" -DDEFENV_SYSTEMC_LIBDIR=\"/usr/lib/x86_64-linux-gnu\" -DDEFENV_VERILATOR_ROOT=\"/usr/share/verilator\" -c ../Verilator.cpp In file included from ../V3Global.h:28:0, from ../Verilator.cpp:21: ../V3Error.h:192:10: error: ‘ostream’ does not name a type inline ostream& operator<<(ostream& os, V3ErrorCode rhs) { return os<<rhs.ascii(); } ^~~~~ ../V3Error.h:199:13: error: ‘set’ does not name a type; did you mean ‘getw’? typedef set<string> MessagesSet; ^~~ getw

the full build log can be found at: https://launchpadlibrarian.net/376334227/buildlog_ubuntu-bionic-amd64.verilator_3.924-1~7.gbp784a68_BUILDING.txt.gz

config_build.h.in View (1.66 KB) أحمد المحمودي, 07/07/2018 06:57 AM

History

#1 Updated by Wilson Snyder 6 months ago

  • Status changed from New to Resolved
  • Assignee set to Wilson Snyder

Fixed this in git, towards 3.925.

Let me know if you need a new release tarball to be able to use it.

#2 Updated by أحمد المحمودي 6 months ago

Build fails with this error: Something failed during ./configure as config_build.h is incomplete.

Probably the commit depends on other commits ? full build log at: https://launchpadlibrarian.net/376456022/buildlog_ubuntu-bionic-amd64.verilator_3.924-1~8.gbpe98273_BUILDING.txt.gz

#3 Updated by Wilson Snyder 6 months ago

  • Status changed from Resolved to AskedReporter

I added that error because I suspected it might be the problem instead of your GCC.

From the log:

config.status: creating src/config_build.h configure: WARNING: unrecognized options: --disable-silent-rules, --disable-maintainer-mode, --disable-dependency-tracking

After trying a build can you look at this file? I see some possibilities.

0. It's suspicious there are warnings but suspect this is harmless. I'll probably add ignores for those. 1. If you compare it to src/config_build.in it may be truncated. This indicates some bug likely in autoconf since I'm not doing anything special here, but understand I'll probably need to work around it. 2. Try just doing a "make" again (without reconfiguring). Maybe there's a file system race between writing the src/config_build.h and your compiling, since this is an automated build.

#4 Updated by أحمد المحمودي 6 months ago

autoreconf is causing this problem

#5 Updated by أحمد المحمودي 6 months ago

Disabling autoreconf fixed the problem.

#6 Updated by Wilson Snyder 6 months ago

  • Status changed from AskedReporter to NoFixNeeded

Great, I'll update the new error message to suggest that.

#7 Updated by أحمد المحمودي 5 months ago

I think this is an issue to be fixed.

#8 Updated by أحمد المحمودي 5 months ago

Attached config_build.h.in after running autoreconf

#9 Updated by Wilson Snyder 5 months ago

Verilator wasn't designed to use automake(/autoreconf), it uses handcrafted makefiles & configs. While some programs do use it, many do not, and I don't see why this is needed.

Also available in: Atom