Closed jiapei100 closed 7 years ago
I can't reproduce this with a clean checkout and build:
git clone https://github.com/steveicarus/iverilog.git
cd iverilog
sh autoconf.sh
./configure
make
What O/S are you using, and what compiler? What version of gperf? When you ran make, did the call to gperf that generates the lexor_keyword.cc file run without any errors. If so, what is the output from
nm lexor_keyword.o
I tried to replicate it as well, and no luck. I think that Martin is right, something broke with your lexor_keyword.cc file. The "sh autoconf.sh" step makes that file using gperf. You sure you have gperf installed?
On Tue, Sep 13, 2016 at 2:41 PM, martinwhitaker notifications@github.com wrote:
I can't reproduce this with a clean checkout and build:
git clone https://github.com/steveicarus/iverilog.git cd iverilog sh autoconf.sh ./configure make
What O/S are you using, and what compiler? What version of gperf? When you ran make, did the call to gperf that generates the lexor_keyword.cc file run without any errors. If so, what is the output from
nm lexor_keyword.o
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/steveicarus/iverilog/issues/126#issuecomment-246834163, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAlMnvfLO-Q8oVoIn7d1g9aKcugMNmJks5qpxiCgaJpZM4J7Zsb .
Steve Williams "The woods are lovely, dark and deep. steve@icarus.com steveicarus@gmail.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep."
As there's been no response for over 2 months, I'm going to assume it was a local problem and is now fixed. Please feel free to reopen if there is still an issue.
I just hit this issue. Installing gperf resolved it.
@martinwhitaker Just FYI, you can get into this state by running autoconf.sh
- accidentally or otherwise- in your build directory rather than the source directory:
william@xubuntu-dtrain:~/Projects/FPGA/build-ivl$ sh ../iverilog/autoconf.sh --prefix=/home/william/.local
Autoconf in root...
autoconf: error: no input file
Precompiling lexor_keyword.gperf
Cannot open input file './lexor_keyword.gperf'
Precompiling vhdlpp/lexor_keyword.gperf
../iverilog/autoconf.sh: 16: cd: can't cd to vhdlpp
Cannot open input file './lexor_keyword.gperf'
william@xubuntu-dtrain:~/Projects/FPGA/build-ivl$ ls
lexor_keyword.cc
william@xubuntu-dtrain:~/Projects/FPGA/build-ivl$ ll
total 8
drwxrwxr-x 2 william william 4096 Aug 22 20:32 ./
drwxrwxr-x 35 william william 4096 Aug 22 20:32 ../
-rw-rw-r-- 1 william william 0 Aug 22 20:32 lexor_keyword.cc
william@xubuntu-dtrain:~/Projects/FPGA/build-ivl$
Can't promise that is what the person who opened the issue ran into, but I thought it was worth mentioning. Is there a way to get gperf
to not emit an empty file if the input file doesn't exist (or delete it as part of cleanup)?
Current GIT brought me the following error messages:
Cheers Pei