You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: