Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20350 - iverilog compiles, but doesn't work properly -- config file is set to wrong path
Summary: iverilog compiles, but doesn't work properly -- config file is set to wrong path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 9767
Blocks:
  Show dependency tree
 
Reported: 2003-05-02 17:51 UTC by Alex
Modified: 2003-09-30 12:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2003-05-02 17:51:48 UTC
Has anyone here actually gotten iverilog to work?  It finally compiles (the 
portage version didn't for a long time) but I find it hard to believe that 
anyone has actually tested it yet.
                                                          
for 
test.v:                                                                         
                                                             
module test;                                                  
        reg abc;                                    
        initial begin
#1;
abc=1;
$display("HELLO WORLD %b",abc);
end
endmodule                                                              
traveler@bhodoo /home/traveler $ iverilog test.v              
Config file                                                   
"/var/tmp/portage/iverilog-0.7/image//usr/lib/ivl/iverilog.conf" not 
found                                                                           
                                                              
putting a symlink as /var/tmp/portage/iverilog-0.7/image linking it to / works 
but this doesn't seem like the 'proper solution.' 

I dont understand the ebuilds well enough to fix this myself...

Reproducible: Always
Steps to Reproduce:
1. emerge iverilog
2. attempt to run trivial verilog program
3. see error

Actual Results:  
the aformentioned error occurs

Expected Results:  
worked properly!
Comment 1 Chris Bainbridge (RETIRED) gentoo-dev 2003-05-07 08:57:50 UTC
This happens because make fails with -jx where x>1. make install paths=${D}.. then 
builds stuff, setting the compile time path to the install image path.  
 
temporary solution:  MAKEOPTS="-j1" emerge iverilog 
 
Check bug 9767... 
Comment 2 Brandon 2003-05-08 18:30:21 UTC
[gorjusborg] The iverilog autoconf/automake seems to create hard references to config files instead of using relative paths.  The executable compiles, but when iverilog is run it complains that it cannot find the config file in the 'shadow' install directory used during the build.  The program should be looking in the real install directory that everything gets copied to following the compile.
Comment 3 Chris Bainbridge (RETIRED) gentoo-dev 2003-06-01 05:59:33 UTC
Brandon, emerge calls make twice, once to build and once to install. The first time 
PREFIX paths are /. This build fails because of -j2. Now its called a second time 
with make path=path/to/image install. make spots that files aren't compiled, so it 
builds them, with the hardcoded paths in. Setting MAKEOPTS="${MAKEOPTS} -j1" 
 in the ebuild would fix this problem. 
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2003-06-11 17:11:02 UTC
I went ahead and added a -j1 to the emake call.  Let me know if this
fixes things.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2003-06-18 15:50:13 UTC
Ok, moving to TEST-REQUEST status.
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-09-30 12:15:23 UTC
db issue