https://bugs.winehq.org/show_bug.cgi?id=55528
Bug ID: 55528 Summary: Vitis 2020.1 can't find its libraries (cmd.exe bug with nested one-line if statement that sets PATH) Product: Wine Version: 8.15 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: alexhenrie24@gmail.com Distribution: ---
Created attachment 75087 --> https://bugs.winehq.org/attachment.cgi?id=75087 Terminal output
Steps to reproduce:
1. Run `tar -xvf Xilinx_Unified_2020.1_0602_1208.tar.gz`
2. Run `wine Xilinx_Unified_2020.1_0602_1208/xsetup.exe`
3. When the installer complains that it can't connect to the internet, click Ignore
4. Run `XIL_PA_NO_REDIST_CHECK=1 wine 'C:\Xilinx\Vitis\2020.1\bin\vitis.bat'`
The following errors are printed to the terminal:
Syntax error Can't recognize ')' as an internal or external command, or batch script. 0138:err:module:import_dll Library libboost_filesystem.dll (which is needed by L"C:\Xilinx\Vitis\2020.1\bin\unwrapped\win64.o\rdi_vitis.exe") not found 0138:err:module:import_dll Library libboost_program_options.dll (which is needed by L"C:\Xilinx\Vitis\2020.1\bin\unwrapped\win64.o\rdi_vitis.exe") not found 0138:err:module:import_dll Library librdi_common.dll (which is needed by L"C:\Xilinx\Vitis\2020.1\bin\unwrapped\win64.o\rdi_vitis.exe") not found 0138:err:module:LdrInitializeThunk Importing dlls for L"C:\Xilinx\Vitis\2020.1\bin\unwrapped\win64.o\rdi_vitis.exe" failed, status c0000135
I was able to narrow down the problem to code in loader.bat that looks similar to this (this is a minimal example, these aren't the real variable names):
set FOO=1 if %FOO% == 1 ( if %FOO% == 1 set PATH=C:\Xilinx\Vitis\2020.1\lib\win64.o;%PATH% if %FOO% == 1 ( echo %PATH% ) )
I don't know why Wine thinks that there is a syntax error in this code. There must be a bug in the command parser that is triggered by a nested one-line if statement that sets a variable.
Registration is required to download Vitis.
$ sha256sum Xilinx_Unified_2020.1_0602_1208.tar.gz a9e0f81a61eca260c4453ab93a8d17eac31956dd54d0d5fd74dc8b4f2727e3eb