Update: deleting the entire src/ tree allowed this to proceed. I
remember running into this issue while building bigcouch, and I'm
not sure there is a good fix other than updating make dist-clean
to forcibly remove the entire src/ tree (today we just remove
src/docs).

What do you think of such a make target? There's no other way to
readily recover from a failed get-deps (due to e.g. poor network
connectivity during a git clone)

-Joan

----- Original Message -----
> From: "Joan Touzet" <[email protected]>
> To: [email protected]
> Sent: Tuesday, June 30, 2015 11:05:23 PM
> Subject: [master] rebar failing get-deps on win64
> 
> Hi there, I'm in the process of trying to get CouchDB 2.0 ported
> to Windows. I've reproduced the configure script in PowerShell
> script and am proceeding to work on the Makefiles, but I'm running
> into a get-deps issue where it fails to pull the couch_index deps.
> 
> As my time is limited on this project, might anyone have any ideas
> to help me out?
> 
> Here's the complete output of a clean followed by a get-deps:
> 
> PS C:\workspace\couchdb> rebar -r clean
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_index
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_mrview
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_replicator
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_plugins
> WARN:  Expected c:/workspace/couchdb/src/docs to be a raw dependency
> directory, but no directory found.
> WARN:  Expected c:/workspace/couchdb/src/fauxton to be a raw
> dependency directory, but no directory found.
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/ibrowse
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/mochiweb
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/snappy
> ==> b64url (clean)
> ==> cassim (clean)
> ==> lager (clean)
> ==> couch_log (clean)
> ==> config (clean)
> ==> chttpd (clean)
> ==> couch (clean)
> ==> couch_epi (clean)
> ==> rel (clean)
> ==> couchdb (clean)
> PS C:\workspace\couchdb>
> PS C:\workspace\couchdb>
> PS C:\workspace\couchdb> rebar get-deps
> 
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_index
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_mrview
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_replicator
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_plugins
> WARN:  Expected c:/workspace/couchdb/src/docs to be a raw dependency
> directory, but no directory found.
> WARN:  Expected c:/workspace/couchdb/src/fauxton to be a raw
> dependency directory, but no directory found.
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/ibrowse
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/mochiweb
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/snappy
> ==> b64url (get-deps)
> ==> cassim (get-deps)
> ==> lager (get-deps)
> ==> couch_log (get-deps)
> ==> config (get-deps)
> ==> chttpd (get-deps)
> ==> couch (get-deps)
> ==> couch_epi (get-deps)
> ==> rel (get-deps)
> ==> couchdb (get-deps)
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_index
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_mrview
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_replicator
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_plugins
> WARN:  Expected c:/workspace/couchdb/src/docs to be a raw dependency
> directory, but no directory found.
> WARN:  Expected c:/workspace/couchdb/src/fauxton to be a raw
> dependency directory, but no directory found.
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/ibrowse
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/mochiweb
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/snappy
> WARN:  Directory expected to be an app dir, but no app file found
> in ebin/ or src/:
> c:/workspace/couchdb/src/couch_index
> ERROR: Dependency dir c:/workspace/couchdb/src/couch_index failed
> application validation with reason:
> {missing_app_file,"c:/workspace/couchdb/src/couch_index"}.
> ERROR: 'get-deps' failed while processing C:/workspace/couchdb:
> rebar_abort
> 

Reply via email to