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 cube.cxx with circle build 200 #19

Open
bartman opened this issue Nov 25, 2023 · 1 comment
Open

unable to build cube.cxx with circle build 200 #19

bartman opened this issue Nov 25, 2023 · 1 comment

Comments

@bartman
Copy link

bartman commented Nov 25, 2023

It's not clear to me what the error actually is here.
I get similar errors with other source code in this repo.
Most simpler programs from the circle repo work.
Some do not: seanbaxter/circle#193

$ circle --version
circle version 1.0.0-200
  Circle public preview build 200
  Built Jul 29 2023 11:15:57 EDT
  (c) 2023 Sean Baxter
  https://www.circle-lang.org/
  Twitter: @seanbax

$ git remote -v
origin  https://github.com/seanbaxter/shaders.git (fetch)
origin  https://github.com/seanbaxter/shaders.git (push)

$ git describe --always
185c6e8

$ cmake -Bbuild -S. -DCMAKE_CXX_COMPILER=circle
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is Clang 5.0.0
...

$ cmake --build build
[ 50%] Building CXX object CMakeFiles/cube.dir/cube.cxx.o
error: SPIR-V implicit declarations:315:83
cannot convert prvalue int to <2 x float>
GLSL_PREFIX vec2   [[spirv::GLSLstd450(6)]] sign(vec2   a) noexcept { return a >= 0 ? 1.f : -1.f; }
                                                                                  ^

error: SPIR-V implicit declarations:316:83
cannot convert prvalue int to <3 x float>
GLSL_PREFIX vec3   [[spirv::GLSLstd450(6)]] sign(vec3   a) noexcept { return a >= 0 ? 1.f : -1.f; }
                                                                                  ^

error: SPIR-V implicit declarations:317:83
cannot convert prvalue int to <4 x float>
GLSL_PREFIX vec4   [[spirv::GLSLstd450(6)]] sign(vec4   a) noexcept { return a >= 0 ? 1.f : -1.f; }
                                                                                  ^

error: SPIR-V implicit declarations:319:83
cannot convert prvalue int to <2 x double>
GLSL_PREFIX dvec2  [[spirv::GLSLstd450(6)]] sign(dvec2  a) noexcept { return a >= 0 ? 1.0 : -1.0; }
                                                                                  ^

error: SPIR-V implicit declarations:320:83
cannot convert prvalue int to <3 x double>
GLSL_PREFIX dvec3  [[spirv::GLSLstd450(6)]] sign(dvec3  a) noexcept { return a >= 0 ? 1.0 : -1.0; }
                                                                                  ^

error: SPIR-V implicit declarations:321:83
cannot convert prvalue int to <4 x double>
GLSL_PREFIX dvec4  [[spirv::GLSLstd450(6)]] sign(dvec4  a) noexcept { return a >= 0 ? 1.0 : -1.0; }
                                                                                  ^

error: SPIR-V implicit declarations:442:103
cannot convert prvalue int to <2 x float>
GLSL_PREFIX vec2   [[spirv::GLSLstd450(46)]] mix(vec2   x, vec2   y, vec2   a) noexcept { return x * (1 - a) + y * a; }
                                                                                                      ^

error: SPIR-V implicit declarations:443:103
cannot convert prvalue int to <3 x float>
GLSL_PREFIX vec3   [[spirv::GLSLstd450(46)]] mix(vec3   x, vec3   y, vec3   a) noexcept { return x * (1 - a) + y * a; }
                                                                                                      ^

error: SPIR-V implicit declarations:444:103
cannot convert prvalue int to <4 x float>
GLSL_PREFIX vec4   [[spirv::GLSLstd450(46)]] mix(vec4   x, vec4   y, vec4   a) noexcept { return x * (1 - a) + y * a; }
                                                                                                      ^

error: SPIR-V implicit declarations:446:103
cannot convert prvalue int to <2 x double>
GLSL_PREFIX dvec2  [[spirv::GLSLstd450(46)]] mix(dvec2  x, dvec2  y, dvec2  a) noexcept { return x * (1 - a) + y * a; }
                                                                                                      ^

error: SPIR-V implicit declarations:447:103
cannot convert prvalue int to <3 x double>
GLSL_PREFIX dvec3  [[spirv::GLSLstd450(46)]] mix(dvec3  x, dvec3  y, dvec3  a) noexcept { return x * (1 - a) + y * a; }
                                                                                                      ^

error: translation aborted; too many errors

gmake[2]: *** [CMakeFiles/cube.dir/build.make:76: CMakeFiles/cube.dir/cube.cxx.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/cube.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
@Ikaron
Copy link

Ikaron commented Jan 1, 2024

Just came to say I have the exact same issue. Even compiling an entirely empty file, if it's compiled with the -shader flag.

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

2 participants