Building omc on Windows fails on some computers
On some computers cloning OpenModelica from github.com or openmodelica.org mirror and compiling using msys2 fails because make thinks that CR
is a target.
The file that has the issue is:
OpenModelica/OMCompiler/Compiler/boot/Makefile.sources
and is generated via OMC and then included in:
OpenModelica/OMCompiler/Compiler/boot/Makefile.common
which is included in:
OpenModelica/OMCompiler/Compiler/boot/Makefile.omdev.mingw
File Makefile.sources has different line endings, either CRLF
or CR
at the end of ALL_OBJECTS or ALL_SOURCES variable. The script that generates the file is MakeSources.mos which uses either
\n
or
{{{"
"}}}
and the problem seems to appear if the latter is used.
Change History
(4)
Owner: |
changed from Martin Sjölund to Adrian Pop
|
Status: |
new → accepted
|
Cc: |
Niklas Worschech added
|
Resolution: |
→ fixed
|
Status: |
accepted → closed
|
This is fixed in c1cac0/OMCompiler.
When git is installed the setup asks for some configuration options:
core.autocrlf
which by default is set to true on Windows so if you press next on that dialog you get issues with a new OpenModelica clone. This fix should take care of the problem.@ptaeuber, @niklwors: can you check that it works on your problematic computers with a new OM clone?