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

Unable to build abc on Windows: Path is too long #1461

Open
xobs opened this issue Oct 21, 2019 · 0 comments
Open

Unable to build abc on Windows: Path is too long #1461

xobs opened this issue Oct 21, 2019 · 0 comments
Labels

Comments

@xobs
Copy link
Contributor

xobs commented Oct 21, 2019

Yosys is unable to build yosys-abc on Windows because the make clean command exceeds PATH_MAX, which is 32,768 characters (see: berkeley-abc/abc#54)

When yosys is built, it clones/updates abc and then performs a make clean. Currently, this command is 55,806 characters long, and the resulting CreateProcessEx() command exits with an error.

Until that patch lands, a workaround is to manually check out abc and compile with ABCREV=default which skips this step:

git clone %ABCURL% abc
cd abc
git fetch origin master
git checkout %ABCREV%
if errorlevel 1 exit 1
cd ..
make ABCREV=default

Another option is to cross-compile on a platform with a longer PATH_MAX such as Linux, however some build systems (notably Conda) don't support cross-compiling, so this isn't always an option.

@whitequark whitequark added the bug label Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants