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't build on Ubuntu 15.10 #69

Open
Victoralm opened this issue Nov 20, 2015 · 3 comments
Open

Can't build on Ubuntu 15.10 #69

Victoralm opened this issue Nov 20, 2015 · 3 comments

Comments

@Victoralm
Copy link

Need some help please, I'm getting this error message while trying to build with "cmake . && make":

[  3%] Executing Bison on hlslang.y
/bin/sh: 1: bison: not found
CMakeFiles/hlsl2glsl.dir/build.make:59: recipe for target 'hlslang/MachineIndependent/hlslang_tab.cpp' failed
make[2]: *** [hlslang/MachineIndependent/hlslang_tab.cpp] Error 127
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/hlsl2glsl.dir/all' failed
make[1]: *** [CMakeFiles/hlsl2glsl.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2
@vk2gpu
Copy link

vk2gpu commented Nov 20, 2015

Have you got bison installed?

-----Original Message-----
From: "Victoralm" [email protected]
Sent: ‎20/‎11/‎2015 15:17
To: "aras-p/hlsl2glslfork" [email protected]
Subject: [hlsl2glslfork] Can't build on Ubuntu 15.10 (#69)

Need some help please, I'm getting this error message while trying to build with "cmake . && make":
[ 3%] Executing Bison on hlslang.y
/bin/sh: 1: bison: not found
CMakeFiles/hlsl2glsl.dir/build.make:59: recipe for target 'hlslang/MachineIndependent/hlslang_tab.cpp' failed
make[2]: *** [hlslang/MachineIndependent/hlslang_tab.cpp] Error 127
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/hlsl2glsl.dir/all' failed
make[1]: *** [CMakeFiles/hlsl2glsl.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2

Reply to this email directly or view it on GitHub.

@darrellenns
Copy link

Same missing hlslang_tab.hpp error for me on Arch Linux. Bison is installed and there is no bison error.

[  2%] Executing Bison on hlslang.y
hlslang.y:99.1-12: warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’ [-Wdeprecated]
   99 | %pure-parser
      | ^~~~~~~~~~~~
      | %define api.pure
hlslang.y: warning: fix-its can be applied.  Rerun with option '--update'. [-Wother]
[  5%] Executing flex on hlslang.l
Scanning dependencies of target hlsl2glsl
[  8%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslCommon.cpp.o
[ 11%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslFunction.cpp.o
[ 14%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslOutput.cpp.o
[ 17%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslStruct.cpp.o
[ 20%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslSymbol.cpp.o
[ 23%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/hlslCrossCompiler.cpp.o
[ 26%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/hlslLinker.cpp.o
[ 29%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/hlslSupportLib.cpp.o
[ 32%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/propagateMutable.cpp.o
[ 35%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/typeSamplers.cpp.o
[ 38%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/HLSL2GLSL.cpp.o
[ 41%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/InfoSink.cpp.o
[ 44%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/Initialize.cpp.o
[ 47%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/Intermediate.cpp.o
[ 50%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/intermOut.cpp.o
[ 52%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/IntermTraverse.cpp.o
[ 55%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/ParseHelper.cpp.o
[ 58%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/PoolAlloc.cpp.o
[ 61%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/RemoveTree.cpp.o
[ 64%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/SymbolTable.cpp.o
[ 67%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/ConstantFolding.cpp.o
[ 70%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/mojoshader_common.cpp.o
[ 73%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/mojoshader_lexer.cpp.o
[ 76%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/mojoshader_preprocessor.cpp.o
[ 79%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/mojoshader.cpp.o
[ 82%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/sourceloc.cpp.o
[ 85%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/OSDependent/Linux/ossource.cpp.o
[ 88%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/Gen_hlslang.cpp.o
[ 91%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/hlslang_tab.cpp.o
hlslang_tab.cpp:143:10: fatal error: hlslang_tab.hpp: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/hlsl2glsl.dir/build.make:461: CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/hlslang_tab.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:124: CMakeFiles/hlsl2glsl.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

@derekslinz
Copy link

I removed mv hlslang_tab.hpp hlslang_tab.h this command and was able to compile.

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

4 participants