Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3973 closed defect (fixed)

Building omc on Windows fails on some computers

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone: Future
Component: Build Environment Version:
Keywords: Cc: Patrick Täuber, Niklas Worschech

Description

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)

comment:1 by Adrian Pop, 8 years ago

Owner: changed from Martin Sjölund to Adrian Pop
Status: newaccepted

comment:2 by Adrian Pop, 8 years ago

Cc: Niklas Worschech added

comment:3 by Adrian Pop, 8 years ago

Resolution: fixed
Status: acceptedclosed

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?

comment:4 by Patrick Täuber, 8 years ago

@adrpo The problematic configuration works fine for me now.

Note: See TracTickets for help on using tickets.