Opened 14 years ago

Last modified 14 years ago

#1384 closed defect (fixed)

MacPorts build failure

Reported by: PDM Owned by: PDM
Priority: high Milestone:
Component: Version:
Keywords: Cc: PDM,

Description

I'm trying to install OpenModelica on an Intel iMac running Mac OS 10.5.8, using MacPorts. I've followed the instructions on the [Downloads page|http://www.openmodelica.org/index.php/download/download-mac] but {{port install openmodelica-devel}} fails while building; I've also tried {{port install openmodelica-release}} and {{port install openmodelica}}, and their builds fail in exactly the same way.

I'm attaching the full log file produced by {{port install openmodelica-devel}}. It appears that the build goes OK until g++ is called with a superfluous (empty) {{-arch}} switch:

:info:build /usr/bin/g++-4.0 -headerpad_max_install_names -arch i386 -arch -o OM
Notebook.app/Contents/MacOS/OMNotebook cellapplication.o cellparserfactory.o omc
_communicator.o omc_communication.o stylesheet.o cellcommandcenter.o chaptercoun
tervisitor.o omcinteractiveenvironment.o textcell.o cellcommands.o commandcomple
tion.o openmodelicahighlighter.o textcursorcommands.o cell.o printervisitor.o tr
eeview.o cellcursor.o highlighterthread.o puretextvisitor.o updategroupcellvisit
or.o celldocument.o inputcell.o qcombobox_search.o updatelinkvisitor.o cellfacto
ry.o notebook.o qtapp.o xmlparser.o searchform.o cellgroup.o notebooksocket.o se
rializingvisitor.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 Visualizat
ionWidget.o moc_omc_communicator.o moc_cellapplication.o moc_notebooksocket.o mo
c_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_ce
ll.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_graphW
idget.o moc_preferenceWindow.o moc_variablewindow.o moc_VisualizationWidget.o qr
c_res_qt.o     -lomniORB4 -lomnithread -lpthread -L/opt/local/lib -lQtXml -lQtOp
enGL -lQtGui -lQtNetwork -lQtCore -framework OpenGL -framework AGL 
:info:build g++-4.0: Invalid arch name : -o

As I'm not running Snow Leopard, I can't use the Mac installer provided on the Downloads page. I've managed to install many other packages using MacPorts, but I haven't previously experienced a build failure.

Attachments (2)

main.log (268.3 KB) - added by PDM 14 years ago.
main2.log (268.6 KB) - added by PDM 14 years ago.
Shows the build failure in r7499.

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by PDM

comment:1 Changed 14 years ago by sjoelund.se

I believe this is actually a qmake bug. Our configure script patched some similar crap for 64-bit, but it apparently needs a bit more work ;)

Should be fixed in openmodelica-devel r7499
{{{- QMAKE="$QMAKE && sed -i.bak 's/-arch -Xarch/-Xarch/' Makefile"
+ QMAKE="$QMAKE && sed -i.bak 's/-arch -/-/' Makefile"}}}

(Yes, we patch any Makefile generated by qmake using sed to remove the superfluous -arch switch. Crazy.)

As I don't have access to any 32-bit Mac, please re-open the bug if this doesn't fix your issues.

comment:2 Changed 14 years ago by PDM

I've reopened the bug, since r7499 didn't fix it. I'll attach the new log file - the superfluous {{-arch}} appears to be at the same place.

Changed 14 years ago by PDM

Shows the build failure in r7499.

comment:3 Changed 14 years ago by sjoelund.se

Try r7507. If it fails, attach /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/work/openmodelica_7499/OMNotebook/OMNotebookGUI/Makefile so I can see exactly what I need to patch up :) But I hope this time it's pretty solid and it works...

comment:4 Changed 14 years ago by PDM

Yes, it works: MacPorts now builds and installs r7522 on an Intel iMac running 10.5.8 (with XCode 3.1.4). Many thanks!

-- Peter

Note: See TracTickets for help on using tickets.