Opened 11 years ago

Closed 11 years ago

#2461 closed defect (worksforme)

Mac OMEdit and OMShell don't update

Reported by: Adam Dershowitz <dersh@…> Owned by: probably noone
Priority: high Milestone: 1.9.1
Component: Build Environment Version: trunk
Keywords: Cc:

Description

I tried to upgrade from 17948 to 18002 and the build fails on my Mac. My guess is that it relates to the changes in bootstrap. Below is the last part of the log file:

:info:build "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/testsuite/openmodelica/bootstrapping"
:info:build ""
:info:build true
:info:build 2
:info:build true
:info:build 
:info:build false
:info:build {true,true,true,true,true,true,true,true}
:info:build ""
:info:build {true,true,true,true,true,true,true,true}
:info:build ""
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/Print.mo:60:8-63:18:writable] Error: Class OpenModelica.threadData not found in scope Print.clearErrorBuf (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Script/CevalScript.mo:911:9-911:51:writable] Error: Class Print.clearErrorBuf not found in scope CevalScript.cevalInteractiveFunctions2.$match scope$ (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Script/CevalScript.mo:32:1-7208:16:writable] Error: Failed to compile all functions in package CevalScript.
:info:build Job 1 failed[/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/ErrorExt.mo:111:8-115:18:writable] Error: Class OpenModelica.threadData not found in scope ErrorExt.setCheckpoint (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/ExpressionSimplify.mo:541:9-541:53:writable] Error: Class ErrorExt.setCheckpoint not found in scope ExpressionSimplify.simplify1FixP.$match scope$ (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/ExpressionSimplify.mo:32:1-5144:23:writable] Error: Failed to compile all functions in package ExpressionSimplify.
:info:build Job 2 failed[/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/Print.mo:71:8-75:13:writable] Error: Class OpenModelica.threadData not found in scope Print.printBuf (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/ClassInf.mo:238:9-238:35:writable] Error: Class Print.printBuf not found in scope ClassInf.printState.$match scope$ (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/ClassInf.mo:32:1-767:13:writable] Error: Failed to compile all functions in package ClassInf.
:info:build Job 3 failed[/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/Print.mo:54:8-58:18:writable] Error: Class OpenModelica.threadData not found in scope Print.printErrorBuf (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/Debug.mo:57:3-57:25:writable] Error: Class Print.printErrorBuf not found in scope Debug.trace (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/Debug.mo:32:1-866:10:writable] Error: Failed to compile all functions in package Debug.
:info:build Job 4 failed[/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/ErrorExt.mo:46:8-55:27:writable] Error: Class OpenModelica.threadData not found in scope ErrorExt.updateCurrentComponent (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/ErrorExt.mo:32:1-153:13:writable] Error: Failed to compile all functions in package ErrorExt.
:info:build Job 5 failed[/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/ErrorExt.mo:111:8-115:18:writable] Error: Class OpenModelica.threadData not found in scope ErrorExt.setCheckpoint (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/Inst.mo:1243:9-1243:49:writable] Error: Class ErrorExt.setCheckpoint not found in scope Inst.instClassIn_dispatch.$match scope$ (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/Inst.mo:32:1-5988:9:writable] Error: Failed to compile all functions in package Inst.
:info:build Job 6 failed[/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/Print.mo:54:8-58:18:writable] Error: Class OpenModelica.threadData not found in scope Print.printErrorBuf (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/Ceval.mo:1581:9-1581:67:writable] Error: Class Print.printErrorBuf not found in scope Ceval.cevalBuiltinSize.$match scope$ (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/Ceval.mo:32:1-6248:10:writable] Error: Failed to compile all functions in package Ceval.
:info:build Job 7 failed[/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/Util/Print.mo:71:8-75:13:writable] Error: Class OpenModelica.threadData not found in scope Print.printBuf (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/ComponentReference.mo:2188:9-2188:28:writable] Error: Class Print.printBuf not found in scope ComponentReference.printComponentRef.$match scope$ (looking for a function or record).
:info:build [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/Compiler/FrontEnd/ComponentReference.mo:32:1-2956:23:writable] Error: Failed to compile all functions in package ComponentReference.
:info:build Job 8 failedCompilation failed! (parallel threads)
:info:build make[2]: *** [generate-files] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002/testsuite/openmodelica/bootstrapping'
:info:build make[1]: *** [bootstrap-from-compiled] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002'
:info:build make: *** [omc-bootstrapped] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18002" && /usr/bin/make -j4 -w all omlibrary 
:info:build Exit code: 2
:error:build org.macports.build for port openmodelica-devel returned: command execution failed
:debug:build Error code: CHILDSTATUS 50623 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for openmodelica-devel: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log

Attachments (1)

main.log (685.3 KB ) - added by Adam Dershowitz <dersh@…> 11 years ago.
Build fail log file

Download all attachments as: .zip

Change History (5)

by Adam Dershowitz <dersh@…>, 11 years ago

Attachment: main.log added

Build fail log file

comment:1 by Martin Sjölund, 11 years ago

It should work if you deactivate openmodelica-devel before build or if you use port +rml. I do think I have fixed it in the Portfile too though.

comment:2 by Adam Dershowitz <dersh@…>, 11 years ago

Summary: Mac OMEdit and OMShell don't buildMac OMEdit and OMShell don't update

I first tried to just update (to 18010), but the fix didn't seem to work, because the same problem cropped up.
So, I then deactivated and then installed, and it worked fine. In fact, the install at that point was very quick, so it must have used most of what had built in the prior attempt (which might be a clue about where the problem is)
So, there seems to be a simple work around of deactivating before installing.

Thanks,

comment:3 by Adam Dershowitz <dersh@…>, 11 years ago

I just tried to upgrade from 18010 to 18028, as a test. Again, it failed. Out of curiosity I tried to just repeat the upgrade without changing anything else, and the second time it worked. So, I didn't have to deactivate the existing version. Something must have changed from the first to second attempt.
Just an FYI to help understand what might be causing this.

comment:4 by Martin Sjölund, 11 years ago

Component: BackendBuild Environment
Resolution: worksforme
Status: newclosed

I think this works now. We do nightly builds using macports now so it probably shouldn't fail either.

Note: See TracTickets for help on using tickets.