Issue #534
config_rev.pl not called when verilator used as a git submodule
| Status: | Closed | Start date: | 07/22/2012 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | Wilson Snyder | % Done: | 0% |
|
| Category: | Configure/Make/Compiling | |||
| Target version: | - |
Description
Compilation fails when Verilator repository is cloned as a git submodule. This can be reproduced with :
mkdir test cd test git init . git submodule add http://git.veripool.org/git/verilator autoconf ./configure make -j5The error message is as follows:
[...] g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3Options.cpp ../V3Options.cpp:42:24: fatal error: config_rev.h: No such file or directory compilation terminated. make[2]: *** [V3Options.o] Error 1 [...]The failure is due to the line in src/Makefile (or the .in version):
UNDER_GIT = $(wildcard ${srcdir}/../.git/logs/HEAD)
This fails to recognize that in a submodule "../.git" is not a directory anymore but just a file.
As a hack to compile, I used:
UNDER_GIT = $(wildcard ${srcdir}/../.git)
History
Updated by Wilson Snyder 10 months ago
- Status changed from New to Resolved
- Assignee set to Wilson Snyder
Thanks for the report, simple enough to fix. Fixed in git towards 3.840++.
Also available in: Atom
![[logo]](/img/veripool_small.png)