It seems to be a macports or Qt bug. I have fixed it the same way some
other macports did it: By adding a sed-script that just removes the
offending line. Feels rather bad, but it seems to work. I have also
added +qt to the nightly builds so we can spot these issues sooner.
--
Martin Sjölund
On 2010-12-16 22:42, Martin Sjölund wrote:
Thanks. I'll look into this. Macports generates the line:
-arch x86_64 -arch -Xarch_x86_64
while running qmake/make manually generates the working command:
-arch x86_64 -Xarch_x86_64
On 2010-12-16 21:38 , Lewis Jeffery wrote:
Dear OpenModelica interested,
I attempted to build OM 1.6 on mac OSX 10.6. Below is an extract from
the log;
:info:build /usr/bin/g++-4.2 -headerpad_max_install_names -arch x86_64
-arch -Xarch_x86_64 -mmacosx-version-min=10.6 -o
OMNotebook.app/Contents/MacOS/OMNotebook cellapplication.o
cellparserfactory.o omc_communicator.o omc_communication.o stylesheet.o
cellcommandcenter.o chaptercountervisitor.o omcinteractiveenvironment.o
textcell.o cellcommands.o commandcompletion.o openmodelicahighlighter.o
textcursorcommands.o cell.o printervisitor.o treeview.o cellcursor.o
highlighterthread.o puretextvisitor.o updategroupcellvisitor.o
celldocument.o inputcell.o qcombobox_search.o updatelinkvisitor.o
cellfactory.o notebook.o qtapp.o xmlparser.o searchform.o cellgroup.o
notebooksocket.o serializingvisitor.o graphcell.o evalthread.o indent.o
compoundWidget.o dataSelect.o graphWindow.o curve.o point.o
legendLabel.o graphWidget.o line2D.o lineGroup.o preferenceWindow.o
variableData.o variablewindow.o SimulationData.o VisualizationWidget.o
moc_omc_communicator.o moc_cellapplication.o moc_notebooksocket.o
moc_stylesheet.o moc_cellcursor.o moc_document.o moc_textcell.o
moc_celldocument.o moc_documentview.o moc_treeview.o moc_cellgroup.o
moc_qcombobox_search.o moc_cell.o moc_inputcell.o
moc_commandcompletion.o moc_notebook.o moc_searchform.o moc_graphcell.o
moc_legendLabel.o moc_compoundWidget.o moc_graphWindow.o
moc_graphWidget.o moc_preferenceWindow.o moc_variablewindow.o
moc_VisualizationWidget.o qrc_res_qt.o -L/opt/local/lib -lmico2.3.13
-arch x86_64 -lssl -lcrypto -ldl -lm -lpthread -lQtXml -lQtOpenGL
-lQtGui -lQtNetwork -lQtCore -framework OpenGL -framework AGL
:info:build g++-4.2: Invalid arch name : -Xarch_x86_64
:info:build make[2]: *** [OMNotebook.app/Contents/MacOS/OMNotebook]
Error 1
:info:build make[1]: *** [OMNotebook.app] Error 2
:info:build make: *** [omnotebook] Error 2
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/work/openmodelica_7290"
&& /usr/bin/make all omlibrary " returned error 2
:error:build Target org.macports.build returned: shell command failed
(see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for
openmodelica): org.macports.activate org.macports.build
org.macports.destroot org.macports.install
:notice:build Log for openmodelica is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/main.log
Any advice appreciated.
Lewis