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

error running make ott after refreshing amendments #365

Open
kcranston opened this issue Sep 11, 2019 · 4 comments
Open

error running make ott after refreshing amendments #365

kcranston opened this issue Sep 11, 2019 · 4 comments

Comments

@kcranston
Copy link
Member

kcranston commented Sep 11, 2019

**Update - I think this has to do with pointing foo-HEAD too foo-NEW too early in the pipeline (or alternately, looking in foo-HEAD rather than creating foo-PREVIOUS and looking there) **

Following the instructions for building ott3.1 and having problems with a subsequent invocation of make ott after refresh. Pinging @jar398 in case he has some insight. Steps to reproduce (all taken directly from docs, linked above):

From fresh clone, build ott3.1 (works great):

    bin/configure ott3.1 ott3.0
    bin/unpack-archive ott-HEAD   #get previous OTT
    bin/set-previous idlist idlist-2.10
    make refresh/idlist    #make 3.0 idlist from idlist-2.10 and ott3.0
    bin/use-version genbank-20161216
    bin/use-version irmng-20140131
    bin/use-version worms-20170604
    bin/fetch-archive amendments bcafdea7f2e9231274cae2df2beed7d732ca46c5
    bin/use-version amendments-bcafdea7f2e9231274cae2df2beed7d732ca46c5
    make r/amendments-HEAD/resource/.made
    make ott

(Running make ott again immediately runs fine, but does rebuild the whole thing, with the only difference in output being a bump in the draft number)

Then run:

   make refresh/amendments
   make refresh/ncbi
   make ott

which fails with error:

SET THE VERSION.
bin/put ott-NEW draft $((1 + `bin/get ott-NEW draft 0`))
Writing transcript to r/ott-NEW/source/debug/transcript.out
rm -f /tmp/make-ott-completed
(time bin/jython make-ott.py ott-NEW 2>&1 \
  && touch /tmp/make-ott-completed) \
  | tee r/ott-NEW/source/transcript.out.new
# cannot find r/amendments-HEAD/resource/amendments-1

real	0m2.297s
user	0m6.925s
sys	0m0.213s
[ -e /tmp/make-ott-completed ]
make: *** [Makefile:87: r/ott-NEW/source/debug/transcript.out] Error 1
@kcranston kcranston changed the title error running make ott after running make ott error running make ott after refreshing some sources Sep 11, 2019
@kcranston
Copy link
Member Author

So, after any refresh/foo action, e.g. make refresh/amendments, the foo-HEAD and foo-NEW links both point to the dir containing the new version of the resource (which does not contain a resource link). The previously-used amendments-version dir does still contain a resource link. Some confusion about whether foo-HEAD should point to foo-NEW or to the last version used at this point, or maybe we should be creating foo-PREVIOUS and looking there instead?

@jar398
Copy link
Member

jar398 commented Sep 11, 2019 via email

@kcranston
Copy link
Member Author

I think this issue might be that make refresh/amendments does not run the r/amendments-HEAD/resource/.made target. If I run that manually after refreshing, I get past the 'cannot find' error.

@kcranston
Copy link
Member Author

I suppose my only question left at this point is whether we should add make r/amendments-HEAD/resource/.made as an explicit step in the docs, or change the Makefile so that this gets built automatically as part of make refresh/amendments.

@kcranston kcranston changed the title error running make ott after refreshing some sources error running make ott after refreshing amendments Sep 16, 2019
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