Skip to content

impellerc sometimes fails with "Invalid flags specified" in CI on Windows hosts #116761

@Hixie

Description

@Hixie

I often get this failure mode on Windows Host Engine builds in CI:

[6086/6936] ACTION //flutter/impeller/entity:genlib_gles_modern_entity_shaders(//build/toolchain/win:clang_x64)
[6087/6936] COPY gen/flutter/lib/ui/fixtures/shaders/supported_glsl_op_shaders/iplr/4_abs.frag.iplr gen/flutter/lib/ui/assets/4_abs.frag.iplr
[6088/6936] COPY gen/flutter/lib/ui/fixtures/shaders/supported_glsl_op_shaders/iplr/68_cross.frag.iplr gen/flutter/lib/ui/assets/68_cross.frag.iplr
[6089/6936] STAMP obj/third_party/harfbuzz/harfbuzz_sources.stamp
[6090/6936] COPY gen/flutter/lib/ui/fixtures/shaders/supported_glsl_op_shaders/iplr/71_reflect.frag.iplr gen/flutter/lib/ui/assets/71_reflect.frag.iplr
[6091/6936] ACTION //flutter/lib/ui/fixtures/shaders/general_shaders:compile_general_shaders(//build/toolchain/win:clang_x64)
FAILED: gen/flutter/lib/ui/fixtures/shaders/general_shaders/iplr/uniforms_sorted.frag.iplr 
C:/b/s/w/ir/cipd_bin_packages/vpython3.exe ../../build/gn_run_binary.py impellerc.exe --input=../../flutter/lib/ui/fixtures/shaders/general_shaders/uniforms_sorted.frag --include=../../flutter/lib/ui/fixtures/shaders/general_shaders --include=C:/b/s/w/ir/cache/builder/src/flutter/impeller/compiler/shader_lib --depfile=gen/flutter/lib/ui/fixtures/shaders/general_shaders/iplr/uniforms_sorted.frag.d --sksl --sl=gen/flutter/lib/ui/fixtures/shaders/general_shaders/iplr/uniforms_sorted.frag.iplr --spirv=gen/flutter/lib/ui/fixtures/shaders/general_shaders/iplr/uniforms_sorted.frag.spirv --iplr
Could not open the working directory: "C:\b\s\w\ir\cache\builder\src\out\host_debug"
Invalid flags specified.

ImpellerC is an offline shader processor and reflection engine.
---------------------------------------------------------------
Valid Argument are:
One of [ --metal-desktop --metal-ios --opengl-desktop --opengl-es --runtime-stage-gles --runtime-stage-metal --sksl --vulkan ]
--input=<source_file>
[optional] --input-kind={comp, frag, tesc, tese, vert, }
--sl=<sl_output_file>
--spirv=<spirv_output_file>
[optional] --source-language=glsl|hlsl (default: glsl)
[optional] --entry-point=<entry_point_name> (default: main; ignored for glsl)
[optional] --iplr (causes --sl file to be emitted in iplr format)
[optional] --reflection-json=<reflection_json_file>
[optional] --reflection-header=<reflection_header_file>
[optional] --reflection-cc=<reflection_cc_file>
[optional,multiple] --include=<include_directory>
[optional,multiple] --define=<define>
[optional] --depfile=<depfile_path>
[optional] --gles-language-verision=<number>
[optional] --json
[optional] --remap-samplers (force metal sampler index to match declared order)

[6092/6936] ACTION //flutter/impeller/scene/shaders:genlib_gles_shaders(//build/toolchain/win:clang_x64)
[6093/6936] COPY gen/flutter/lib/ui/fixtures/shaders/supported_glsl_op_shaders/iplr/69_normalize.frag.iplr gen/flutter/lib/ui/assets/69_normalize.frag.iplr
[6094/6936] COPY gen/flutter/lib/ui/fixtures/shaders/supported_glsl_op_shaders/iplr/18_atan.frag.iplr gen/flutter/lib/ui/assets/18_atan.frag.iplr
[6095/6936] COPY gen/flutter/lib/ui/fixtures/shaders/supported_glsl_op_shaders/iplr/12_degrees.frag.iplr gen/flutter/lib/ui/assets/12_degrees.frag.iplr
[6096/6936] COPY gen/flutter/lib/ui/fixtures/shaders/supported_glsl_op_shaders/iplr/32_inversesqrt.frag.iplr gen/flutter/lib/ui/assets/32_inversesqrt.frag.iplr
[6097/6936] COPY gen/flutter/lib/ui/fixtures/shaders/supported_glsl_op_shaders/iplr/49_smoothstep.frag.iplr gen/flutter/lib/ui/assets/49_smoothstep.frag.iplr

For example, https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8795296525841355601/+/u/build_host_debug/stdout

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressiona: tests"flutter test", flutter_test, or one of our testsc: flakeTests that sometimes, but not always, incorrectly passe: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions