We’ll be putting the practicals from Boulder onto the website in the next week or two, once we can pull out the IBG-specific jargon/references. We’re also going to start posting precompiled Hail binaries very soon – lots of people have had issues compiling, for lots of reasons!
I’m having the same issue as above, cmake is installed and in the path
jpriest@blalock:~/priest_apps/hail$ ./gradlew shadowJar
:compileJava UP-TO-DATE
:generateBuildInfo
:nativeLib
(cd libsimdpp-2.0-rc2 && cmake .)
CMake Error: Could not open file for write in copy operation /home/jpriest/priest_apps/hail/src/main/c/libsimdpp-2.0-rc2/.pc.tmp
CMake Error: : System Error: Permission denied
CMake Error at CMakeLists.txt:39 (configure_file):
configure_file Problem configuring file
– Configuring incomplete, errors occurred!
CMake Error: Unable to open cache file for save. /home/jpriest/priest_apps/hail/src/main/c/libsimdpp-2.0-rc2/CMakeCache.txt
CMake Error: : System Error: Permission denied
make: *** [libsimdpp] Error 1
:nativeLib FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ‘:nativeLib’.
Process ‘command ‘make’’ finished with non-zero exit value 2
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 6.558 secs
09:00:34.553 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process ‘command ‘make’’
09:00:34.557 [QUIET] [system.out] (cd libsimdpp-2.0-rc2 && cmake .)
09:00:34.579 [ERROR] [system.err] CMake Error: Could not open file for write in copy operation /home/jpriest/priest_apps/hail/src/main/c/libsimdpp-2.0-rc2/.pc.tmp
09:00:34.579 [ERROR] [system.err] CMake Error: : System Error: Permission denied
09:00:34.579 [ERROR] [system.err] CMake Error at CMakeLists.txt:39 (configure_file):
09:00:34.579 [ERROR] [system.err] configure_file Problem configuring file
09:00:34.580 [ERROR] [system.err]
09:00:34.580 [ERROR] [system.err]
09:00:35.623 [QUIET] [system.out] – Configuring incomplete, errors occurred!
09:00:35.624 [ERROR] [system.err] CMake Error: Unable to open cache file for save. /home/jpriest/priest_apps/hail/src/main/c/libsimdpp-2.0-rc2/CMakeCache.txt
09:00:35.624 [ERROR] [system.err] CMake Error: : System Error: Permission denied
09:00:35.632 [ERROR] [system.err] make: *** [libsimdpp] Error 1
09:00:35.634 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
09:00:35.634 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process ‘command ‘make’’ finished with exit value 2 (state: FAILED)
09:00:35.636 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ‘:nativeLib’
09:00:35.636 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :nativeLib FAILED
09:00:35.636 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :nativeLib (Thread[main,5,main]) completed. Took 1.086 secs.
09:00:35.636 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 1.128 secs, idle: 0.011 secs
09:00:35.643 [ERROR] [org.gradle.BuildExceptionReporter]
09:00:35.643 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
09:00:35.643 [ERROR] [org.gradle.BuildExceptionReporter]
09:00:35.643 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
09:00:35.643 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ‘:nativeLib’.
09:00:35.643 [ERROR] [org.gradle.BuildExceptionReporter] > Process ‘command ‘make’’ finished with non-zero exit value 2
09:00:35.643 [ERROR] [org.gradle.BuildExceptionReporter]
09:00:35.643 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
09:00:35.643 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
09:00:35.644 [LIFECYCLE] [org.gradle.BuildResultLogger]
09:00:35.644 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
09:00:35.644 [LIFECYCLE] [org.gradle.BuildResultLogger]
09:00:35.644 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 7.472 secs
09:00:35.645 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileSnapshotsToTreeSnapshotsIndex.bin (/home/jpriest/priest_apps/hail/.gradle/2.14.1/taskArtifacts/fileSnapshotsToTreeSnapshotsIndex.bin)
09:00:35.646 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileSnapshots.bin (/home/jpriest/priest_apps/hail/.gradle/2.14.1/taskArtifacts/fileSnapshots.bin)
09:00:35.646 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache taskArtifacts.bin (/home/jpriest/priest_apps/hail/.gradle/2.14.1/taskArtifacts/taskArtifacts.bin)
09:00:35.646 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on task history cache (/home/jpriest/priest_apps/hail/.gradle/2.14.1/taskArtifacts).
09:00:35.647 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 1 (avg: 0.032 secs, total: 0.032 secs)
09:00:35.648 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
09:00:35.648 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 2 resolution results binary files in 0.002 secs
09:00:35.648 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Generated Gradle JARs cache (/home/jpriest/.gradle/caches/2.14.1/generated-gradle-jars) was closed 0 times.
09:00:35.649 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-artifacts.bin (/home/jpriest/.gradle/caches/modules-2/metadata-2.16/module-artifacts.bin)
09:00:35.649 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-repository.bin (/home/jpriest/.gradle/caches/modules-2/metadata-2.16/artifact-at-repository.bin)
09:00:35.649 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (/home/jpriest/.gradle/caches/modules-2/metadata-2.16/module-metadata.bin)
09:00:35.649 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-versions.bin (/home/jpriest/.gradle/caches/modules-2/metadata-2.16/module-versions.bin)
09:00:35.649 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/home/jpriest/.gradle/caches/modules-2).
09:00:35.649 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] In-memory dependency metadata cache closed. Repos cached: 7, cache instances: 5, modules served from cache: 0, artifacts: 0
09:00:35.649 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache plugin-use-metadata.bin (/home/jpriest/.gradle/caches/2.14.1/plugin-resolution/plugin-use-metadata.bin)
09:00:35.649 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Plugin Resolution Cache (/home/jpriest/.gradle/caches/2.14.1/plugin-resolution).
09:00:35.650 [DEBUG] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager] Stopping 0 compiler daemon(s).
09:00:35.650 [INFO] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager] Stopped 0 compiler daemon(s).
Hi James,
Sorry to leave this hanging for a few days!
I’m happy to report that we’re now compiling prebuilt distributions of Hail. These are publicly available in our Google bucket (gs://hail-common/distributions).
There are now links to the latest versions of Hail 0.1 for Spark 2.0.2 and 2.1.0 in our getting started page. Downloading one of these (corresponding to the version of Spark that you have) will let you run Hail without needing to worry about the compile dependencies yourself. Please let us know if there are parts of the updated page that aren’t clear!
I second tim’s approach of using a pre-compiled binary. However, if you really must compile from source, it seems that whichever user is executing ./gradlew shadowJar does not own the quoted directory. I would check that
whoami
returns the same user as
ls -l /home/jpriest/priest_apps/hail/src/main/c/libsimdpp-2.0-rc2/ | awk '{print $3}'