-
Notifications
You must be signed in to change notification settings - Fork 955
Yosys not reporting non-existing files #5013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks like this bug snuck in with #4834
|
@widlarizer Can you take a look at this? The other users of std::istream* f = uncompressed(liberty_file.c_str());
yosys_input_files.insert(liberty_file);
if (f->fail())
log_cmd_error("Can't open liberty file `%s': %s\n", liberty_file.c_str(), strerror(errno)); while f = uncompressed(filename, bin_input ? std::ifstream::binary : std::ifstream::in);
if (f == NULL)
log_cmd_error("Can't open input file `%s' for reading: %s\n", filename.c_str(), strerror(errno)); And I'm not sure if the correct solution is to return |
@KrystalDelusion Hi, I just came across this issue and found it quite interesting, so I did some additional testing. I noticed that when using mkdir temp && yosys -p "read_verilog temp"
|
Version
Yosys 0.51+125 (git sha1 cc8fd3e, g++ 12.2.0-14 -fPIC -O3)
On which OS did this happen?
Linux
Reproduction Steps
yosys nonexistent.v
Expected Behavior
Yosys reports the files as missing / non-existent.
Actual Behavior
Yosys doesn't report missing files. It happily concludes the parsing with Successfully finished Verilog frontend. despite the file not being there.
The text was updated successfully, but these errors were encountered: