Search Unity

Bug Burst linker fails when path contains quotes (linker command not properly escaped)

Discussion in 'Burst' started by aazzolini, Oct 23, 2021.

  1. aazzolini

    aazzolini

    Joined:
    Sep 7, 2019
    Posts:
    8
    Seems like the way the compilation path is being created doens't play well with folder names containing quotes.

    Looking at the command below it seems that the single quote in the path name "Necromancers' Arena" not being properly escaped:



    Error while executing command: sh -c '[ ! -x "/Users/azzolini/Pandemy/Necromancers' Arena (1)/Library/PackageCache/com.unity.burst@1.5.4/.Runtime/hostmac/lld" ] && chmod 755 "/Users/azzolini/Pandemy/Necromancers' Arena (1)/Library/PackageCache/com.unity.burst@1.5.4/.Runtime/hostmac/lld"; "/Users/azzolini/Pandemy/Necromancers' Arena (1)/Library/PackageCache/com.unity.burst@1.5.4/.Runtime/hostmac/lld" -flavor darwin -arch x86_64 -macosx_version_min 10.8 -sdk_version 10.9 -r -dylib -o "/Users/azzolini/Pandemy/Necromancers' Arena (1)/Temp/Burst/burst-aot1de303do.zvp/5a5292be0e2b56dc8dacb3b7b1d6c1d1.bundle" "/Users/azzolini/Pandemy/Necromancers' Arena (1)/Library/PackageCache/com.unity.burst@1.5.4/.Runtime/libs/burstRTL_m64.a" "/Users/azzolini/Pandemy/Necromancers' Arena (1)/Temp/Burst/burst-aot1de303do.zvp/lib_burst_generated_part_0.o" "/Users/azzolini/Pandemy/Necromancers' Arena (1)/Temp/Burst/burst-aot1de303do.zvp/lib_burst_generated_part_0_merged.o"'


    While compiling job: System.Int32 Unity.Burst.Intrinsics.X86::DoGetCSRTrampoline()
    at <empty>:line 0
     
  2. Lee_Hammerton

    Lee_Hammerton

    Unity Technologies

    Joined:
    Jul 26, 2018
    Posts:
    118
    Thanks for reporting this, a fix has been implemented, Burst 1.5.7 will contain a fix for this, alternatively you can upgrade to 1.6.1 which already contains the fix.
     
    aazzolini likes this.