Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update BUILD_COMPLETE if build fails? #2152

Closed
mnlevy1981 opened this issue Dec 18, 2017 · 3 comments
Closed

Update BUILD_COMPLETE if build fails? #2152

mnlevy1981 opened this issue Dec 18, 2017 · 3 comments

Comments

@mnlevy1981
Copy link
Contributor

I've been bitten by this a couple times (using cime5.4.0-alpha.03, apologies if this has been addressed in a later tag). If

$ ./case.build

ran successfully, and then I change the code in a manner that doesn't build (never my intent, but it's been known to happen), I get the expected error message.

$ ./case.build
...
ERROR: BUILD FAIL: pop.buildlib failed, cat /scratch/cluster/mlevy/C1850ECO.T62_g37.ciso.marbl_dev_levy/bld/ocn.bldlog.171218-135455

However, this seems to break my ability to build. Trying again, I get

$ ./case.build
Building case in directory /home/mlevy/codes/CESM/cesm2_0_beta07+marbl_dev_levy/cases/C1850ECO.T62_g37.ciso.marbl_dev_levy
sharedlib_only is False
model_only is False
File /home/mlevy/codes/CESM/cesm2_0_beta07+marbl_dev_levy/cases/C1850ECO.T62_g37.ciso.marbl_dev_levy/LockedFiles/env_build.xml has been modified
  found difference in BUILD_COMPLETE : case False locked True
Setting build complete to False
ERROR:
ERROR env_build HAS CHANGED
  A manual clean of your obj directories is required
  You should execute the following:
    ./case.build --clean-all

Comparing env_build.xml to what's in LockedFiles is interesting:

$ diff env_build.xml LockedFiles/
264c264
<     <entry id="BUILD_COMPLETE" value="FALSE">
---
>     <entry id="BUILD_COMPLETE" value="TRUE">
289c289
<     <entry id="BUILD_STATUS" value="1">
---
>     <entry id="BUILD_STATUS" value="0">

I say interesting because simply copying env_build.xml into LockedFiles/ isn't sufficient; it turns out I need BUILD_COMPLETE=FALSE and BUILD_STATUS=0 (in both my case directory and LockedFiles/; even removing the version in LockedFiles/ causes the same env_build HAS CHANGED error).

@gold2718
Copy link

Duplicate of #1971? Hopefully fixed by #2051.

@gold2718
Copy link

Looking at the log, this would mean updating to cime5.4.0-alpha.10.

@mnlevy1981
Copy link
Contributor Author

Cool, thanks for pointing me to that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants