Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Building on debian (sid)

Building on debian (sid)

My apt.sources.list.d/openmodelica.list:

Code:

deb http://build.openmodelica.org/apt release contrib

deb http://build.openmodelica.org/apt stable contrib
deb http://build.openmodelica.org/apt nightly contrib
deb http://build.openmodelica.org/apt nightly-ubuntu contrib
deb-src http://build.openmodelica.org/apt nightly contrib

this is what happens when I try to obtain the build dependancies:

Code:

$ sudo apt-get build-dep openmodelica

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have unmet dependencies:
libssl-dev : Depends: zlib1g-dev but it is not going to be installed
rml-mmc : Depends: smlnj (>= 110.67-4) but it is not installable
           Depends: smlnj-runtime (>= 110.67-4) but it is not installable
           Depends: libsmlnj-smlnj (>= 110.67-4) but it is not installable
           Depends: ml-lex (>= 110.67-4) but it is not installable
           Depends: ml-yacc (>= 110.67-4) but it is not installable
E: Build-dependencies for openmodelica could not be satisfied.

What do I need to do to fix this?

Re: Building on debian (sid)

First of all, only keep one of the binary repositories in your config to make update faster.

As for the dependencies, try to install the failed ones one by one and see where the error comes from. Or simply apt-get install the packages listed below and go straight for the building step current/smile

libsqlite3-dev,
libssl-dev (>= 0.9.8g),
libreadline-dev,
libqt4-dev (>= 4.4.3),
libqwt5-qt4-dev (>= 5.1.1),
liblpsolve55-dev (>= 5.5.0.10),
rml-mmc (>= 204),
openjdk-6-jdk | sun-java6-jdk,
libomniorb4-dev,
omniidl4,
gnuplot,
xsltproc,
flex,
paradiseo,
bison,
libf2c2-dev,
liblapack-dev,
autoconf,
zip,
libexpat1-dev,
libsoqt4-dev,
libcoin60-dev (>= 3.1.3)

Re: Building on debian (sid)

sjoelund.se wrote:

First of all, only keep one of the binary repositories in your config to make update faster.

Thanks, will do...

sjoelund.se wrote:


As for the dependencies, try to install the failed ones one by one and see where the error comes from. Or simply apt-get install the packages listed below and go straight for the building step current/smile

Unfortunately this won't work:

Code:

$ sudo aptitude install rml-mmc

The following NEW packages will be installed:
  rml-mmc{b}
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,552 kB of archives. After unpacking 9,277 kB will be used.
The following packages have unmet dependencies:
  rml-mmc: Depends: smlnj (>= 110.67-4) which is a virtual package.
           Depends: smlnj-runtime (>= 110.67-4) which is a virtual package.
           Depends: libsmlnj-smlnj (>= 110.67-4) which is a virtual package.
           Depends: ml-lex (>= 110.67-4) which is a virtual package.
           Depends: ml-yacc (>= 110.67-4) which is a virtual package.

Apparently, debian doesn'r provide these packages for real. There is no ml-lex., ml-yacc etc. in the repository.

There is also a probelm with zlib1g-dev but this can be solved by downgrading zlib1g to 1.2.3.4.dfsg-3

Re: Building on debian (sid)

I'll see if it's possible to remove this dependency then. We build rml-mmc using MLton (ml-lex and ml-yacc are build-time dependencies that also pull in smlnj). Debian lenny had smlnj, and the package was kept on the upgrade to squeeze. Since then it seems Debian has removed support for Standard ML compilers...

I'll see what I can do - especially since the 32-bit build server is now broken current/smile

Re: Building on debian (sid)

I installed the old lenny packages again and built the new rml-mmc. Newer versions should not require SML compilers to be installed for omc compilation. Hope this helps.

Re: Building on debian (sid)

sjoelund.se wrote:

I installed the old lenny packages again and built the new rml-mmc. Newer versions should not require SML compilers to be installed for omc compilation. Hope this helps.

Hi, I have no problems with the dependancies any more. However the build does not complete, it fails at:

Code:

......

g++ -m64 -L//usr/lib/paradiseo/ -Wl,-O1 -o OMOptim main.o MOItem.o MOOptVector.o MOSettings.o MOTableView.o MOThreads.o OptObjective.o ParetoDominance.o Project.o Variable.o VariablesManip.o MainWindow.o Dymola.o ModPlusDymolaCtrl.o CSV.o Load.o Save.o Info.o InfoSender.o ModClass.o ModClassTree.o ModComponent.o ModelicaConnection.o ModelicaConnections.o ModelicaModifier.o ModExecution.o ModModel.o MOParameter.o ModModelPlus.o ModPackage.o ModPlusCtrl.o ModReader.o MOomc.o omc_communication.o omc_communicator.o omcinteractiveenvironment.o ModPlusOMCtrl.o OpenModelica.o OneSimResult.o OneSimulation.o Optimization.o OptimResult.o Problem.o ProblemConfig.o OMCases.o Result.o HighTools.o LowTools.o reportingHook.o vqtconvert.o XMLTools.o MEDimValue.o MEQflow.o METemperature.o AboutOMOptim.o BlockSubstituteConnDlg.o DlgSelectVars.o DlgSettings.o HelpDlg.o MOParametersDlg.o newprojectform.o MOPlot.o MyQwtPlotPicker.o arrow.o BlockDrawItem.o BlockSubsScene.o diagramitem.o diagramscene.o diagramtextitem.o MO2ColTab.o MOMainTab.o MOTab.o MOTabBase.o TabGeneric.o TabModelComponents.o TabModelVariables.o TabOMC.o TabOneSim.o TabOptimization.o TabProject.o TabResOneSim.o TabResOptimization.o Tabresoptimization_config.o GuiTools.o MOGuiTools.o MOSplitter.o MOStyleSheet.o MyDelegates.o MyTextLog.o WidgetBlocks.o WidgetCalculateMooPoints.o WidgetList.o WidgetMOItem.o WidgetMooPlot.o WidgetOneSimVars.o WidgetOptParameters.o WidgetOptTable.o WidgetProgress.o WidgetSelectComponents.o WidgetSelectModModel.o WidgetSelectOptVars.o WidgetSelectVars.o WidgetSelPointScan.o WidgetTableRecVar.o WidgetTableVar.o WidgetToolBar.o AlgoParameter.o EABase.o OptimAlgo.o BlockSubstitution.o BlockSubstitutions.o MyEoGnuplot.o MyEoGnuplot1DMonitor.o NSGA2.o SPEA2.o SPEA2Adapt.o OMCHelper.o StringHandler.o XML.o WidgetMooPointsList.o WidgetProjectInfos.o WidgetFilesList.o WidgetOptimActions.o OMCase.o Problems.o Results.o OMProcess.o MEMassFlow.o MESurface.o Variables.o OptObjectives.o moc_MOItem.o moc_MOOptVector.o moc_MOTableView.o moc_MOThreads.o moc_Project.o moc_Variable.o moc_MainWindow.o moc_Load.o moc_Info.o moc_InfoSender.o moc_ModClass.o moc_ModClassTree.o moc_ModExecution.o moc_ModModelPlus.o moc_ModReader.o moc_inputcelldelegate.o moc_MOomc.o moc_omc_communicator.o moc_omcinteractiveenvironment.o moc_OneSimResult.o moc_Optimization.o moc_OptimResult.o moc_Problem.o moc_Result.o moc_AboutOMOptim.o moc_BlockSubstituteConnDlg.o moc_DlgSelectVars.o moc_DlgSettings.o moc_HelpDlg.o moc_MOParametersDlg.o moc_newprojectform.o moc_MOOptPlot.o moc_MOPlot.o moc_arrow.o moc_BlockSubsScene.o moc_diagramscene.o moc_diagramtextitem.o moc_MO2ColTab.o moc_MOMainTab.o moc_MOTab.o moc_TabGeneric.o moc_GuiTools.o moc_MOGuiTools.o moc_MOSplitter.o moc_MyDelegates.o moc_MyTextLog.o moc_WidgetBlocks.o moc_WidgetList.o moc_WidgetCalculateMooPoints.o moc_WidgetMOItem.o moc_WidgetMooPlot.o moc_WidgetOneSimVars.o moc_WidgetOptParameters.o moc_WidgetOptTable.o moc_WidgetProgress.o moc_WidgetSelectComponents.o moc_WidgetSelectModModel.o moc_WidgetSelectOptVars.o moc_WidgetSelectVars.o moc_WidgetSelPointScan.o moc_WidgetTableRecVar.o moc_WidgetTableVar.o moc_WidgetToolBar.o moc_AlgoConfig.o moc_EABase.o moc_OptimAlgo.o moc_OMEAProgress.o moc_BlockSubstitutions.o moc_WidgetMooPointsList.o moc_MyTreeView.o moc_WidgetProjectInfos.o moc_WidgetFilesList.o moc_WidgetOptimActions.o moc_OMCase.o moc_OMProcess.o moc_TabModelComponents.o moc_TabModelVariables.o moc_TabOMC.o moc_TabOneSim.o moc_TabOptimization.o moc_TabProject.o moc_TabResOneSim.o moc_TabResOptimization.o moc_TabResOptimization_Config.o qrc_OMOptim.o    -L/usr/lib -L/usr/lib -lomniORB4 -lomnithread -lqwt-qt4 -L../../OMPlot/bin/ -lOMPlot -lmoeo -leo -leoutils -lQtSvg -lQtXml -lQtGui -lQtCore -lpthread
make[3]: Leaving directory `/home/gjbaarda/openmodelica-deb/openmodelica-10077/OMOptim/build'
if [ "" = ".app" ]; then cp -rp ./OMOptim.app ../..//build/Applications/ ; else cp -p ./OMOptim ../..//build/bin/OMOptim; fi
make[2]: Leaving directory `/home/gjbaarda/openmodelica-deb/openmodelica-10077/OMOptim/build'
make[1]: Leaving directory `/home/gjbaarda/openmodelica-deb/openmodelica-10077'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Re: Building on debian (sid)

I think I would need the complete log in case it's built using -j2 or higher (the tail of the log looks suspiciously perfect)

There are 0 guests and 0 other users also viewing this topic
You are here: