Skip to content

Windows build fails if there is a whitespace in path #138

@Atulin

Description

@Atulin

Building the project with Octobuild 1.7.1 installed throws

0>#19 15/92: SharedPCH.UnrealEd.Project.ValApi.Cpp20.cpp @ 2s
0>ERROR: Task failed with exit code: 2
0>SharedPCH.UnrealEd.Project.ValApi.Cpp20.cpp"
0>c1xx: Error C1083 : Can't open file intermediate compiler: '"F:\Unreal Projects\Metroidvania\Intermediate\Build\Win64\x64\MetroidvaniaEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.h.pch"': Invalid argument
0>Cache statistic: hit 0 of 0 (0 %), remote 0, read 0, write 0, total 0
0>ERROR: Error  : Build failed
0>Total time in XGE executor: 2.83 seconds
0>Total execution time: 7.55 seconds

error. And, true to that, the given file does not exist indeed:

MetroidvaniaEditor\Development\UnrealEd on  HEAD (311f2d9) via C 
❯ ls -name       
SharedDefinitions.UnrealEd.Cpp20.h
SharedDefinitions.UnrealEd.Project.ValApi.Cpp20.h
SharedDefinitions.UnrealEd.RTTI.Cpp20.h
SharedPCH.UnrealEd.Cpp20.cpp
SharedPCH.UnrealEd.Cpp20.h
SharedPCH.UnrealEd.Cpp20.h.obj.rsp
SharedPCH.UnrealEd.Project.ValApi.Cpp20.cpp
SharedPCH.UnrealEd.Project.ValApi.Cpp20.h
SharedPCH.UnrealEd.Project.ValApi.Cpp20.h.dep.json
SharedPCH.UnrealEd.Project.ValApi.Cpp20.h.obj.rsp
SharedPCH.UnrealEd.Project.ValApi.Cpp20.h.sarif
SharedPCH.UnrealEd.RTTI.Cpp20.cpp
SharedPCH.UnrealEd.RTTI.Cpp20.h
SharedPCH.UnrealEd.RTTI.Cpp20.h.obj.rsp

Uninstalling Octobuild (winget uninstall octobuild) fixes the issue immediately. Project builds and the file is there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions