Closed gwihlidal closed 6 years ago
I haven't seen this error. Our Linux buildbot is currently passing using GCC 4.8.4 5.4.0
Latest run: https://travis-ci.org/google/DirectXShaderCompiler/jobs/396519461
We haven't tried other GCC versions. Will try to investigate soon.
Sounds good! I just released a Dockerfile (referenced above) that can repro the issue, and also includes the full build log. In the meantime I will try with an Ubuntu base image.
Feel free to poke around and if you find out the reason for failure, please feel free to post a pull-request to the google repo.
I periodically compile with gcc-6.4. I've never seen this issue.
Our buildbot builds with gcc 5.4.0. Not 4.8.4. 4.8.4 support is impossible because of insufficient c++11 support.
Oops, I was looking at the wrong log file. You're right.
Confirmed that using Ubuntu (18.04 in my case) works fine, so the issue is likely specific to Alpine Linux
Just typing "ninja" will try to compile everything. Sadly, that doesn't work yet. you can compile dxc and clang-spirv-tests. Try just typing "ninja dxc clang-spirv-tests"
@pow2clk , Actually I recently merged a change that allows you to just run ninja
.
So, @gwihlidal should be fine. The documentation file is also updated and tells users to just run ninja
Give this a try: https://github.com/pow2clk/DirectXShaderCompiler/tree/alpine64
To use from your already cloned DirectXShaderCompiler location: git remote add p2c https://github.com/pow2clk/DirectXShaderCompiler.git git fetch p2c git checkout -b alpine64 -t p2c/alpine64 then try rebuilding. It needn't be a clean rebuild.
Sorry if I'm spoonfeeding excessively. I try not to assume git familiarity levels.
Thanks, @pow2clk - I can confirm that your branch does in fact fix the errors! :)
Woohoo! \o/ Thanks @pow2clk
Hello!
I'm running into issues compiling DXC on Linux (alpine 3.7) using GCC 6.4.0; there are quite a number of redefinitions throwing errors like the
fopen
one shown below.Has this been encountered before?
Thanks! Graham