I expected that I will have a smooth ride after cracking how to run Julia in a full trust UWP envirnment, but another issue have just surfaced. When Julia does precompilation, for instance, when adding a Revise
package a following error is thrown:
julia> using Revise
[ Info: Precompiling Revise [295af30f-e4ad-537b-8983-00126c2a3abe]
ERROR: LoadError: failed process: Process(setenv(
`'C:\Program Files\WindowsApps\JanisErdmanis.Julia_1.0.0.0_neutral__s0by06ay2112j\libexec\julia\lld.exe'
-flavor gnu -m i386pep -Bdynamic --enable-auto-image-base
--allow-multiple-definition '' -shared -o 'C:\Users\jerdmanis\.julia\compiled\v1.9\OrderedCollections\jl_D1E8.tmp'
--whole-archive 'C:\Users\jerdmanis\.julia\compiled\v1.9\OrderedCollections\jl_D1E7.tmp'
--no-whole-archive '-LC:\Program Files\WindowsApps\JanisErdmanis.Julia_1.0.0.0_neutral__s0by06ay2112j\lib'
'-LC:\Program Files\WindowsApps\JanisErdmanis.Julia_1.0.0.0_neutral__s0by06ay2112j\lib\julia'
'-LC:\Program Files\WindowsApps\JanisErdmanis.Julia_1.0.0.0_neutral__s0by06ay2112j\bin'
-ljulia -ljulia-internal -lopenlibm -lssp -lgcc_s -lgcc -lmsvcrt`,
["WINDIR=C:\\Windows", "PATH=C:\\Program Files\\WindowsApps\\JanisErdmanis.Julia_1.0.0.0_neutral__s0by06ay2112j\\lib\\julia;
C:\\Program Files\\WindowsApps\\JanisErdmanis.Julia_1.0.0.0_neutral__s0by06ay2112j\\bin;C:\\Program Files\\Parallels\\Parallels Tools\\Applications;C:\\Windows\\system32;C:\\Windows;
C:\\Windows\\System32\\Wbem;
C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;
C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Users\\jerdmanis\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\jerdmanis\\.dotnet\\tools;C:\\Users\\jerdmanis\\AppData\\Local\\Programs\\Julia-1.9.3\\bin;
C:\\Users\\jerdmanis\\JuliaPack\\julia\\lib", "USERDOMAIN_ROAMINGPROFILE=JANISERDMAN0F68", "LOCALAPPDATA=C:\\Users\\jerdmanis\\AppData\\Local", "HOMEPATH=\\Users\\jerdmanis", "PROCESSOR_IDENTIFIER=ARMv8 (64-bit) Family 8 Model 0 Revision 0, ", "NUMBER_OF_PROCESSORS=4", "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC", "SYSTEMROOT=C:\\Windows", "APPDATA=C:\\Users\\jerdmanis\\AppData\\Roaming"
…
"COMMONPROGRAMFILES(ARM)=C:\\Program Files (Arm)\\Common Files", "PROCESSOR_LEVEL=0", "JULIA_LOAD_PATH=C:\\Users\\jerdmanis\\.julia\\environments\\v1.9\\Project.toml;C:\\Program Files\\WindowsApps\\JanisErdmanis.Julia_1.0.0.0_neutral__s0by06ay2112j\\share\\julia\\stdlib\\v1.9", "SYSTEMDRIVE=C:", "=C:=C:\\Program Files", "PROGRAMW6432=C:\\Program Files",
"TEMP=C:\\Users\\JERDMA~1\\AppData\\Local\\Temp", "HOMEDRIVE=C:", "OPENBLAS_MAIN_FREE=1", "PROCESSOR_ARCHITECTURE=AMD64"]),
ProcessExited(3221225781)) [3221225781]
I do have access to Julia REPL, what could I check to troubleshoot the issue?
One thing I noticed is that running lld.exe
with Julia shell from UWP container (still under full trust) does not give any output wheras running it from ordinary Julia shell gives output:
julia> run(`lld.exe`)
lld is a generic driver.
Invoke ld.lld (Unix), ld64.lld (macOS), lld-link (Windows), wasm-ld (WebAssembly) instead
I could also reproduce this strange behaviour by running Julia with adminstrateive rights from C:\Program Files\WindowsApps\JanisErdmanis.Julia_1.0.0.0_neutral__s0by06ay2112j
where no output for lld.exe
is shown. Afterwards I copied all files from the WindowsApp folder to a home directory and the output for lld.exe
command returned.