﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3509	OMC cannot compile libraries on OSX	grant@…	Martin Sjölund	"So I've been trying to compile OM on OS X for a while and finally got past the usual error 2 point. Now make gets stuck while trying to compile the libraries, or that is what I think is happening as 4 omc processes start running and ran for more than 12 hours without any changes in the command line. The commands I used to get to this point are as follows:
First install all brew dependencies as per readme.
{{{
brew install gnu-sed xz
PATH=$PATH:/usr/local/Cellar/gettext/0.19.6/bin/
autoconf
./configure LDFLAGS=""-L/usr/local/opt/gettext/lib -L/usr/local/Cellar/lp_solve/5.5.2.0/lib"" CFLAGS=""-I/usr/local/opt/gettext/include -I/usr/local/Cellar/lp_solve/5.5.2.0/include"" CC=clang CXX=clang++
make -j6 omc
}}}
The last block of text in the command line looks like this:

{{{
OPENMODELICA_BACKEND_STUBS=1 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile generate-files-in-steps OMC=/Users/grantstephens/Repos/OpenModelica/build/bin/omc
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile templates scripting
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile --no-print-directory -C /Users/grantstephens/Repos/OpenModelica/OMCompiler/Compiler/Template
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile --no-print-directory -C /Users/grantstephens/Repos/OpenModelica/OMCompiler/Compiler/Script
/Users/grantstephens/Repos/OpenModelica/build/bin/omc OpenModelicaScriptingAPI.mos
 ** AbsynDumpTpl template compilation ** 
 ** CodegenUtil template compilation ** 
/Users/grantstephens/Repos/OpenModelica/build/bin/omc CodegenUtil.tpl > CodegenUtil.mo.log || (cat CodegenUtil.mo.log && false)
/Users/grantstephens/Repos/OpenModelica/build/bin/omc AbsynDumpTpl.tpl > AbsynDumpTpl.mo.log || (cat AbsynDumpTpl.mo.log && false)
 ** CodegenC template compilation ** 
 ** CodegenC template compilation ** 
 ** CodegenFMUCommon template compilation ** 
/Users/grantstephens/Repos/OpenModelica/build/bin/omc CodegenCFunctions.tpl > CodegenCFunctions.mo.log || (cat CodegenCFunctions.mo.log && false)
/Users/grantstephens/Repos/OpenModelica/build/bin/omc CodegenFMUCommon.tpl > CodegenFMUCommon.mo.log || (cat CodegenFMUCommon.mo.log && false)
/Users/grantstephens/Repos/OpenModelica/build/bin/omc CodegenC.tpl > CodegenC.mo.log || (cat CodegenC.mo.log && false)
/bin/sh: line 1: 99712 Illegal instruction: 4  /Users/grantstephens/Repos/OpenModelica/build/bin/omc CodegenUtil.tpl > CodegenUtil.mo.log
make[6]: *** [CodegenUtil.mo] Error 1
make[6]: *** Waiting for unfinished jobs....
/bin/sh: line 1: 99719 Illegal instruction: 4  /Users/grantstephens/Repos/OpenModelica/build/bin/omc CodegenC.tpl > CodegenC.mo.log
make[6]: *** [CodegenC.mo] Error 1

}}}
The CodegenC.mo.log is empty...
If any more info is needed please let me know."	defect	closed	high	Future	Build Environment		wontfix	OSX, libraries,	
