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 not install libyosys on windows 10 OS #36

Open
oioeic opened this issue Dec 5, 2018 · 5 comments
Open

can not install libyosys on windows 10 OS #36

oioeic opened this issue Dec 5, 2018 · 5 comments

Comments

@oioeic
Copy link

oioeic commented Dec 5, 2018

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 > [email protected]: Package no longer supported. Contact [email protected] 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 [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" 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 [email protected]: Package no longer supported. Contact [email protected] for more info.

[email protected] 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: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] install: prebuildify-load || make
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] install script.

@dvc94ch
Copy link
Member

dvc94ch commented Dec 5, 2018

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
Copy link

jagot commented Dec 31, 2018

FWIW I see exactly the same on macOS.

@dvc94ch
Copy link
Member

dvc94ch commented Dec 31, 2018

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
Copy link

jagot commented Dec 31, 2018

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
Copy link
Member

dvc94ch commented Dec 31, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants