﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2987	Mac openmodelica-devel fails to install	Adam Dershowitz <dersh@…>	Adeel Asghar	"I have tried both upgrade, and installing 23415 and the build completes, but then Macports gets into the following loop:


{{{
--->  Building openmodelica-devel
--->  Staging openmodelica-devel into destroot
--->  Installing openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Cleaning openmodelica-devel
--->  Computing dependencies for openmodelica-devel
--->  Deactivating openmodelica-devel @23320_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Cleaning openmodelica-devel
--->  Activating openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Cleaning openmodelica-devel
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 2 broken file(s), matching files to ports    
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     openmodelica-devel @23415 +gfortran48+libraries+modelica3d+qt+sundials
--->  Computing dependencies for openmodelica-devel
--->  Cleaning openmodelica-devel
--->  Scanning binaries for linking errors
--->  Found 2 broken file(s), matching files to ports    
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     openmodelica-devel @23415 +gfortran48+libraries+modelica3d+qt+sundials
--->  Computing dependencies for openmodelica-devel
--->  Fetching distfiles for openmodelica-devel
--->  Verifying checksums for openmodelica-devel
--->  Extracting openmodelica-devel
--->  Configuring openmodelica-devel
--->  Building openmodelica-devel
--->  Staging openmodelica-devel into destroot
--->  Deactivating openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Cleaning openmodelica-devel
--->  Uninstalling openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Cleaning openmodelica-devel
--->  Computing dependencies for openmodelica-devel
--->  Installing openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Activating openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Cleaning openmodelica-devel
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 2 broken file(s), matching files to ports    
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     openmodelica-devel @23415 +gfortran48+libraries+modelica3d+qt+sundials
--->  Computing dependencies for openmodelica-devel
--->  Fetching distfiles for openmodelica-devel
--->  Verifying checksums for openmodelica-devel
--->  Extracting openmodelica-devel
--->  Configuring openmodelica-devel
--->  Building openmodelica-devel
--->  Staging openmodelica-devel into destroot
--->  Deactivating openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Cleaning openmodelica-devel
--->  Uninstalling openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Cleaning openmodelica-devel
--->  Computing dependencies for openmodelica-devel
--->  Installing openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Activating openmodelica-devel @23415_0+gfortran48+libraries+modelica3d+qt+sundials
--->  Cleaning openmodelica-devel
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 2 broken file(s), matching files to ports    
Error: Port openmodelica-devel is still broken after rebuilding it more than 3 times.
Error: Please run port -d -y rev-upgrade and use the output to report a bug.
Port openmodelica-devel still broken after rebuilding 3 time(s)
    while executing
""error ""Port $portname still broken after rebuilding [expr {$broken_port_counts($portname) - 1}] time(s)""""
    (procedure ""revupgrade_scanandrebuild"" line 280)
    invoked from within
""revupgrade_scanandrebuild broken_port_counts $opts""
    (procedure ""macports::revupgrade"" line 5)
    invoked from within
""macports::revupgrade $opts""
    (procedure ""action_revupgrade"" line 2)
    invoked from within
""action_revupgrade $action $portlist $opts""
    (procedure ""action_upgrade"" line 25)
    invoked from within
""$action_proc $action $portlist [array get global_options]""
    (procedure ""process_cmd"" line 103)
    invoked from within
""process_cmd $remaining_args""
    invoked from within
""if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining...""
    (file ""/opt/local/bin/port"" line 5268)
}}}


As, it does appear to install, it just doesn't complete, I tried to run it, and OMEdit crashes with this:


{{{
Dyld Error Message:
  Library not loaded: /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_23415/build/lib/omc/libOpenModelicaCompiler.dylib
  Referenced from: /Applications/MacPorts/OMEdit.app/Contents/MacOS/OMEdit
  Reason: image not found

}}}

Perhaps this failure relates to this change?
[https://trac.openmodelica.org/OpenModelica/changeset/23388]

It looks as though the compile is working, but some file is not being properly installed in the correct place for it to actually run?

As macports suggested, I did also run:

{{{
port -d -y rev-upgrade
}}}

and can attach the log file that generates, if it would be helpful.
"	defect	closed	high	1.9.4	Build Environment	trunk	fixed	Mac Macport OMEdit	
