electron-lang / electron

A mixed signal netlist language (pre-alpha)
https://electron-lang.org
60 stars 6 forks source link

can not install libyosys on windows 10 OS #36

Open oioeic opened 5 years ago

oioeic commented 5 years ago

D:\DataSoft\TS\blinky>yarn yarn install v1.9.4 info No lockfile found. [1/4] Resolving packages... warning @electron-lang/electron > electro-grammar > nearley > nomnom@1.6.2: Package no longer supported. Contact support@npmjs.com for more info. info There appears to be trouble with your network connection. Retrying... [2/4] Fetching packages... [---------------------------------------------------------------------------------------------------------------] 0/392(node:15500) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. info fsevents@1.2.4: The platform "win32" is incompatible with this module. info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... [4/4] Building fresh packages... [1/2] ⠄ libyosys error D:\DataSoft\TS\blinky\node_modules\libyosys: Command failed. Exit code: 2 Command: prebuildify-load || make Arguments: Directory: D:\DataSoft\TS\blinky\node_modules\libyosys Output: make: *** No targets specified and no makefile found. Stop.

D:\DataSoft\TS\blinky>npm install libyosys npm WARN deprecated nomnom@1.6.2: Package no longer supported. Contact support@npmjs.com for more info.

libyosys@0.0.8 install D:\DataSoft\TS\blinky\node_modules\libyosys prebuildify-load || make

make: *** No targets specified and no makefile found. Stop. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! libyosys@0.0.8 install: prebuildify-load || make npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the libyosys@0.0.8 install script.

dvc94ch commented 5 years ago

Need help on that one, don't have a Windows machine or knowledge of the platform. If you'd like to get your hands dirty, contributions are welcome...

jagot commented 5 years ago

FWIW I see exactly the same on macOS.

dvc94ch commented 5 years ago

libyosys needs to be built for mac in Travis and the result has to be uploaded to GitHub releases. Then it should pull the correct binaries using prebuildify-load. Libyosys is a dependency used for converting json netlists to verilog. If you'd like to update the Travis script for macosx, you'll find it here: https://github.com/electron-lang/libyosys

jagot commented 5 years ago

I figured something like that, after commenting above, so I tried to build libyosys separately. However, when running yarn in a checkout of the repo, I get the following error:

...
cd yosys-src && make
[Makefile.conf] ENABLE_LIBYOSYS=1
[Makefile.conf] ENABLE_TCL=0
[Makefile.conf] ENABLE_ABC=0
[Makefile.conf] ENABLE_READLINE=0
[  0%] Building kernel/version_0a840dd8.cc
[  0%] Building kernel/version_0a840dd8.o
[  0%] Building kernel/driver.o
[  0%] Building techlibs/common/simcells_help.inc
[  1%] Building kernel/register.o
[  1%] Building kernel/rtlil.o
[  2%] Building kernel/log.o
[  2%] Building kernel/calc.o
[  3%] Building kernel/yosys.o
[  3%] Building kernel/cellaigs.o
[  4%] Building kernel/celledges.o
[  7%] Building libs/subcircuit/subcircuit.o
[ 10%] Building frontends/ast/ast.o
[ 11%] Building frontends/ast/simplify.o
[ 11%] Building frontends/ast/genrtlil.o
[ 12%] Building frontends/ast/dpicall.o
[ 12%] Building frontends/blif/blifparse.o
[ 12%] Building frontends/ilang/ilang_parser.tab.cc
frontends/ilang/ilang_parser.y:48.14-38: syntax error, unexpected string, expecting =
make[1]: *** [frontends/ilang/ilang_parser.tab.cc] Error 1
make: *** [build-yosys] Error 2
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
dvc94ch commented 5 years ago

That looks like an old version of bison + lex, mac osx is notorious for having old software...