Skip to content
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

Can't called by start-process correctly #1199

Closed
veripoolbot opened this issue Sep 6, 2017 · 2 comments
Closed

Can't called by start-process correctly #1199

veripoolbot opened this issue Sep 6, 2017 · 2 comments
Labels
area: usability Issue involves general usability resolution: abandoned Closed; not enough information or otherwise never finished

Comments

@veripoolbot
Copy link
Contributor


Author Name: yun he
Original Redmine Issue: 1199 from https://www.veripool.org

Original Assignee: yun he


At first, thx for your hard work on Verilator. And I want to use the verilator as a syntax check tool in flycheck, but it can't work correctly. And at last, I found that when the emacs function start-process try to run verilator as a process,it always return a error message "Exec format error", but start-process-shell-command can work. And the I rewrote the check as blow:

(flycheck-define-checker my-verilog-verilator
     "A Verilog syntax checker using the Verilator Verilog HDL simulator.

See URL `https://www.veripool.org/wiki/verilator'.
The original checker(verilog-verilator) doesn't work, when start-process call the verilator, it return a message that "Exec format error",
for the reasion described above, use bash to start verilator can be OK
"
     :command ("sh" "verilator" "--lint-only" "-Wall" "-Wno-ASSIGNDLY" source)
     :error-patterns
     ((warning line-start "%Warning-" (zero-or-more not-newline) ": "
               (file-name) ":" line ": " (message) line-end)
      (error line-start "%Error: " (file-name) ":"
             line ": " (message) line-end))
     :modes verilog-mode)
</code>

Is there any advice to fix this up?
BTW: my system is rhel6.4, and I install verilator by the source kit with the following command: ./configure --prefix=/path to my install directory; make -j 30; make install

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-09-07T00:58:06Z


That it works under one method but not the other means this must be something related to your computer's use of emacs or shell and is not an issue with verilator itself.

I see a bunch of hints if you google that error (which suggest you might be using cygwin?), e.g. https://www.google.com/search?q=start-process+exec+format+error&oq=emacs+start-process+exec+format+error

If that doesn't help, try calling instead an e.g. shell script instead which has a printenv at the top and probably that will help track down the issue.

Let us know what you turn up.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-11-18T22:50:42Z


Didn't hear back, presumably you got it working.

@veripoolbot veripoolbot added area: usability Issue involves general usability resolution: abandoned Closed; not enough information or otherwise never finished labels Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: usability Issue involves general usability resolution: abandoned Closed; not enough information or otherwise never finished
Projects
None yet
Development

No branches or pull requests

1 participant