Leafwing-Studios / template-repo

A quick, CI-enabled Bevy template repository.
Apache License 2.0
43 stars 9 forks source link

Fix broken CI #21

Closed alice-i-cecile closed 2 years ago

alice-i-cecile commented 2 years ago

error: linking with clang failed: exit status: 1 | = note: "clang" "-m64" "/home/runner/work/template-repo/template-repo/target/debug/deps/template_lib-cf65eb44115c7bc6.template_lib.c5e8fe00-cgu.0.rcgu.o" "/home/runner/work/template-repo/template-repo/target/debug/deps/template_lib-cf65eb44115c7bc6.template_lib.c5e8fe00-cgu.1.rcgu.o" "/home/runner/work/template-repo/template-repo/target/debug/deps/template_lib-cf65eb44115c7bc6.template_lib.c5e8fe00-cgu.2.rcgu.o" "/home/runner/work/template-repo/template-repo/target/debug/deps/template_lib-cf65eb44115c7bc6.template_lib.c5e8fe00-cgu.3.rcgu.o" "/home/runner/work/template-repo/template-repo/target/debug/deps/template_lib-cf65eb44115c7bc6.template_lib.c5e8fe00-cgu.4.rcgu.o" "/home/runner/work/template-repo/template-repo/target/debug/deps/template_lib-cf65eb44115c7bc6.template_lib.c5e8fe00-cgu.5.rcgu.o" "/home/runner/work/template-repo/template-repo/target/debug/deps/template_lib-cf65eb44115c7bc6.template_lib.c5e8fe00-cgu.6.rcgu.o" "/home/runner/work/template-repo/template-repo/target/debug/deps/template_lib-cf65eb44115c7bc6.template_lib.c5e8fe00-cgu.7.rcgu.o" "-Wl,--as-needed" "-L" "/home/runner/work/template-repo/template-repo/target/debug/deps" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/home/runner/work/template-repo/template-repo/target/debug/build/minimp3-sys-e9563d0e745a2864/out" "-L" "/lib/x86_64-linux-gnu" "-L" "/home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy-glsl-to-spirv-0.2.1/build/linux" "-L" "/home/runner/work/template-repo/template-repo/target/debug/build/spirv-reflect-5262ea047d980836/out" "-L" "/home/runner/work/template-repo/template-repo/target/debug/build/spirv_cross-8a336d33c45b2d83/out" "-L" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lvulkan" "-L" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-ltest-39a7739a1809dcca" "-Wl,-Bstatic" "/home/runner/work/template-repo/template-repo/target/debug/deps/libbevy-8d755209f3153d33.rlib" "-L" "/home/runner/work/template-repo/template-repo/target/debug/deps" "-Wl,-Bdynamic" "-lbevy_dylib-9472488ebf61e46e" "-Wl,--start-group" "-L" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lstd-c46e4336da0ba77b" "-Wl,--end-group" "-Wl,-Bstatic" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-f98cce041f593917.rlib" "-Wl,-Bdynamic" "-ldl" "-lstdc++" "-ldl" "-lglslang.glsltospirv" "-lHLSL.glsltospirv" "-lOGLCompiler.glsltospirv" "-lOSDependent.glsltospirv" "-lSPIRV.glsltospirv" "-lSPVRemapper.glsltospirv" "-lSPIRV-Tools-opt.glsltospirv" "-lSPIRV-Tools.glsltospirv" "-lstdc++" "-ludev" "-lasound" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/runner/work/template-repo/template-repo/target/debug/deps/template_lib-cf65eb44115c7bc6" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs" = note: /usr/bin/ld: cannot find -lvulkan clang: error: linker command failed with exit code 1 (use -v to see invocation)

alice-i-cecile commented 2 years ago

Fixed. Had to disable default features, as we did not have a GPU set up on CI.