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

win_bison can't find data directory unless it's in the current directory #48

Closed
nirbheek opened this issue Sep 16, 2019 · 5 comments
Closed

Comments

@nirbheek
Copy link

Starting with 2.5.19, if the data/ directory isn't in the current directory, running win_bison gives the following error: data/m4sugar/m4sugar.m4: cannot open: No such file or directory

Looking at the git history, this broke while merging the upstream changes. bison/src/main.c doesn't use get_local_pkgdatadir() anymore, which had been patched to use get_app_path() from common/misc/app_path.c. Instead, the datadir is fetched by calling pkgdatadir() in bison/src/files.c. So, that function needs to be changed to call get_app_path() and return that path.

@lexxmark
Copy link
Owner

Thank you for discovering this bug. Going to fix it soon.

@pal1000
Copy link

pal1000 commented Sep 17, 2019

I was able to hit it too when building Mesa3D with MSVC.

pal1000 added a commit to pal1000/mesa-dist-win that referenced this issue Sep 17, 2019
@lexxmark
Copy link
Owner

Try this binary. If it works I'll publish it.
win_flex_bison-2.5.20.zip

@nirbheek
Copy link
Author

I tested it and it works great, thanks!

@pal1000
Copy link

pal1000 commented Sep 18, 2019

It worked for me too.

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