-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Arch Linux shaderc does not compile #304
Comments
All compile fine here with mesa on Archlinux x64 (intel gpu). |
Try:
|
I've tried both now, even installed mesa-libgl and tried again, had to reinstall nvidia-340xx-libgl thou because steam for some weird reason stopped working. |
You should not need anything like that to build glsl-optimizer. Make sure you don't have any modified files in bgfx repo. |
I don't, its a clean folder with fresh newest bgfx and ../bx, I guess if I can't get bgfx to work again I will end up turning the idea into a web app and use webgl. |
Can you try building just stand alone glsl-optimizer on your machine? https://github.com/aras-p/glsl-optimizer |
Hi, I just tried compiling glsl-optimizer, and got this kind of issue with it aras-p/glsl-optimizer#92 |
Did you figure out what's wrong with building on Arch? |
Alas, I did not. |
Do you see 3rdparty/glsl-optimizer/src/glsl/glcpp/pp.c compiling? |
$ git pull
$ make
$ cd .build/projects/gmake-linux/
$ make clean && make >> buildlog
$ cat buildlog | grep pp.c Seem to return pp.c so I'd presume it did compile. |
I can't reproduce it on Linux (Mint), OSX or Windows. Something about Arch or your setup is messed up. You'll have to figure it out, and let me know what causing it. |
Okay this is very weird, I tried to compile on my work laptop and it went perfectly even thou it has optimus graphics, at any rate, it seems like the issue is with my main workstation... Thanks for the help, I will go look into how the heck can it be fixed. 👍 |
I set up a fresh Arch machine and reproduced the output mentioned in the original post, as well as a warning about use of implicit declaration of 'yylex' in the generated source file. The same problem occurs on my reasonably stock Ubuntu Trusty (14.04) server. Search results around this seems a bit vague and mostly talks about differences between Bison's YACC mode and Berkeley's YACC, not helped by my complete ignorance around yacc and lexx interactions. Bison versions I have are 3.0.2 (on Ubuntu) and 3.0.4 (on Arch). Is there perhaps something in the build that's regenerated on some of these configurations, but not on the ones that appear to work? |
Try calling this script to generate those files: |
It compiles and links successfully after running the script, on both Arch and Ubuntu. |
Hi, currently working from Arch Linux x64, and decided to try BGFX again for an idea.
And here I endup being.
I tracked down this issue to be mesa glsl implementation or something like this.
I am running mesa-10.5.1-2, my libgl is nvidia-340xx-libgl.76-2 (I am not feeling like risking breaking my stuff by replacing it to mesa-liblg)
What would be the advised solution?
The text was updated successfully, but these errors were encountered: