﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6361	Compilation in path with special character failing (Windows + OMEdit)	Andreas Heuermann	Adrian Pop	"When compiling a model

{{{
model helloWorld
  Real x(start=1);
equation
  der(x) = 10*x;
end helloWorld;
}}}

on Windows, saved in a path with a special character, e.g. `D:\workspace\Testitesttest\pathWithö`, the compilation from OMEdit will fail:
{{{
C:/Program Files/OpenModelica1.18.0-dev-64bit/share/omc/scripts/Compile.bat helloWorld gcc mingw64 parallel 16 0
PATH = ""C:\PROGRA~1\OPENMO~2.0-D\tools\msys\mingw64\bin;C:\PROGRA~1\OPENMO~2.0-D\tools\msys\mingw64\bin\..\..\usr\bin;""
mingw32-make: Entering directory 'C:/OMDev/tools/msys/tmp/OPENMO~1/OMEdit/HELLOW~1'
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld.o helloWorld.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_functions.o helloWorld_functions.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_records.o helloWorld_records.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_01exo.o helloWorld_01exo.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_02nls.o helloWorld_02nls.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_03lsy.o helloWorld_03lsy.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_04set.o helloWorld_04set.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_05evt.o helloWorld_05evt.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_06inz.o helloWorld_06inz.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_07dly.o helloWorld_07dly.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_08bnd.o helloWorld_08bnd.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_09alg.o helloWorld_09alg.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_10asr.o helloWorld_10asr.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_11mix.o helloWorld_11mix.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_12jac.o helloWorld_12jac.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_13opt.o helloWorld_13opt.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_14lnz.o helloWorld_14lnz.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_15syn.o helloWorld_15syn.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_16dae.o helloWorld_16dae.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o helloWorld_17inl.o helloWorld_17inl.c
clang -I. -o helloWorld.exe helloWorld.o helloWorld_functions.o helloWorld_records.o helloWorld_01exo.o helloWorld_02nls.o helloWorld_03lsy.o helloWorld_04set.o helloWorld_05evt.o helloWorld_06inz.o helloWorld_07dly.o helloWorld_08bnd.o helloWorld_09alg.o helloWorld_10asr.o helloWorld_11mix.o helloWorld_12jac.o helloWorld_13opt.o helloWorld_14lnz.o helloWorld_15syn.o helloWorld_16dae.o helloWorld_17inl.o -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L""D:/workspace/Testitesttest/pathWithö""    -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L""C:/Program Files/OpenModelica1.18.0-dev-64bit/lib//omc"" -L""C:/Program Files/OpenModelica1.18.0-dev-64bit/lib"" -Wl,--stack,16777216,-rpath,""C:/Program Files/OpenModelica1.18.0-dev-64bit/lib//omc"" -Wl,-rpath,""C:/Program Files/OpenModelica1.18.0-dev-64bit/lib""  -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic  -Wl,-Bstatic -lSimulationRuntimeC -Wl,-Bdynamic -Wl,-Bstatic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lsundials_nvecserial -lsundials_sunmatrixdense -lsundials_sunmatrixsparse -lsundials_sunlinsoldense -lsundials_sunlinsolklu -lsundials_sunlinsollapackdense -lsundials_sunlinsolspbcgs -lsundials_sunlinsolspfgmr -lsundials_sunlinsolspgmr -lsundials_sunlinsolsptfqmr -lsundials_sunnonlinsolnewton -lsundials_cvode -lsundials_cvodes -lsundials_idas -lsundials_kinsol -lumfpack -lklu -lcolamd -lbtf -lamd -lipopt -lcoinmumps -lpthread -lm  -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex  -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lwsock32 -lstdc++ 
/usr/bin/sh: clang -I. -o helloWorld.exe helloWorld.o helloWorld_functions.o helloWorld_records.o helloWorld_01exo.o helloWorld_02nls.o helloWorld_03lsy.o helloWorld_04set.o helloWorld_05evt.o helloWorld_06inz.o helloWorld_07dly.o helloWorld_08bnd.o helloWorld_09alg.o helloWorld_10asr.o helloWorld_11mix.o helloWorld_12jac.o helloWorld_13opt.o helloWorld_14lnz.o helloWorld_15syn.o helloWorld_16dae.o helloWorld_17inl.o -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L""D:/workspace/Testitesttest/pathWithö""    -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I""C:/Program Files/OpenModelica1.18.0-dev-64bit/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=helloWorld -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L""C:/Program Files/OpenModelica1.18.0-dev-64bit/lib//omc"" -L""C:/Program Files/OpenModelica1.18.0-dev-64bit/lib"" -Wl,--stack,16777216,-rpath,""C:/Program Files/OpenModelica1.18.0-dev-64bit/lib//omc"" -Wl,-rpath,""C:/Program Files/OpenModelica1.18.0-dev-64bit/lib""  -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic  -Wl,-Bstatic -lSimulationRuntimeC -Wl,-Bdynamic -Wl,-Bstatic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lsundials_nvecserial -lsundials_sunmatrixdense -lsundials_sunmatrixsparse -lsundials_sunlinsoldense -lsundials_sunlinsolklu -lsundials_sunlinsollapackdense -lsundials_sunlinsolspbcgs -lsundials_sunlinsolspfgmr -lsundials_sunlinsolspgmr -lsundials_sunlinsolsptfqmr -lsundials_sunnonlinsolnewton -lsundials_cvode -lsundials_cvodes -lsundials_idas -lsundials_kinsol -lumfpack -lklu -lcolamd -lbtf -lamd -lipopt -lcoinmumps -lpthread -lm  -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex  -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lwsock32 -lstdc++ : No such file or directory
mingw32-make: *** [helloWorld.makefile:32: omc_main_target] Error 127
mingw32-make: Leaving directory 'C:/OMDev/tools/msys/tmp/OPENMO~1/OMEdit/HELLOW~1'
Compilation process failed. Exited with code 2.
}}}

I guess the problem is `-L""D:/workspace/Testitesttest/pathWithö""`, but running the makefile from mingw shell works fine. I can't reproduce the problem without running it from OMEdit."	defect	assigned	high		Run-time	v1.17.0-dev		special character	
