Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Build is broken on Mac #117

Description

@gafter

The build is now broken on the Mac. Here is a shell session that demonstrates the failure:

fter-mbp kotlin % cd ..
nmgafter@nmgafter-mbp diffkt %  git clean -fdx -e local.properties -e github.env
Skipping repository cpp/ops/build/googletest-src
Removing cpp/ops/build/Predicate
Removing cpp/ops/build/test
Removing cpp/ops/build/bin
Removing cpp/ops/build/CMakeFiles
Removing cpp/ops/build/Makefile
Removing cpp/ops/build/Dnnl
Removing cpp/ops/build/cmake_install.cmake
Removing cpp/ops/build/CTestTestfile.cmake
Removing cpp/ops/build/Math
Removing cpp/ops/build/googletest-build
Removing cpp/ops/build/lib
Removing cpp/ops/build/CMakeCache.txt
Removing cpp/ops/build/Sparse
Removing cpp/ops/build/googletest-download
Removing kotlin/.gradle/
Removing kotlin/api/build/
Removing kotlin/api/src/main/resources/libdnnlops_jni.dylib
Removing kotlin/api/src/main/resources/libops_jni.dylib
Removing kotlin/api/src/main/resources/libsparseops_jni.dylib
Removing kotlin/build/
Removing kotlin/data/build/
Removing kotlin/distributions/
Removing kotlin/examples/build/
Removing kotlin/testutils/build/
nmgafter@nmgafter-mbp diffkt % cd kotlin
nmgafter@nmgafter-mbp kotlin % ./gradlew Test                                   

> Task :api:buildExternalJni
-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found JNI: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/libjawt.dylib  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Could NOT find BLAS (missing: BLAS_LIBRARIES) 
-- Using Eigen for sparse computation
-- Found OpenMP_C: -Xclang -fopenmp (found version "5.0") 
-- Found OpenMP_CXX: -Xclang -fopenmp (found version "5.0") 
-- Found OpenMP: TRUE (found version "5.0")  
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done
-- Generating done
-- Build files have been written to: /Users/nmgafter/Repos/diffkt/cpp/ops/build/googletest-download
[ 11%] Creating directories for 'googletest'
[ 22%] Performing download step (git clone) for 'googletest'
Cloning into 'googletest-src'...
HEAD is now at e7e59176 Googletest export
[ 33%] Performing update step for 'googletest'
[ 44%] No patch step for 'googletest'
[ 55%] No configure step for 'googletest'
[ 66%] No build step for 'googletest'
[ 77%] No install step for 'googletest'
[ 88%] No test step for 'googletest'
[100%] Completed 'googletest'
[100%] Built target googletest
-- Found Python: /Users/nmgafter/miniconda3/bin/python3.9 (found version "3.9.11") found components: Interpreter 
-- Found OpenMP_C: -Xclang -fopenmp (found version "5.0") 
-- Found OpenMP_CXX: -Xclang -fopenmp (found version "5.0") 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/nmgafter/Repos/diffkt/cpp/ops/build

> Task :api:compileKotlin
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/main/kotlin/org/diffkt/IntTensor.kt: (55, 5): 'open' has no effect in a final class
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/main/kotlin/org/diffkt/external/LibraryUtils.kt: (11, 22): Parameter 'name' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/main/kotlin/org/diffkt/external/LibraryUtils.kt: (39, 20): 'createTempFile(String = ..., String? = ..., File? = ...): File' is deprecated. Avoid creating temporary files in the default temp location with this function due to too wide permissions on the newly created file. Use kotlin.io.path.createTempFile instead or resort to java.io.File.createTempFile.
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/main/kotlin/org/diffkt/tracing/TracingJit.kt: (169, 29): Name shadowed: f

> Task :data:compileKotlin
w: /Users/nmgafter/Repos/diffkt/kotlin/data/src/main/kotlin/org/diffkt/data/loaders/french/French2EnglishDataLoader.kt: (77, 61): 'toLowerCase(): String' is deprecated. Use lowercase() instead.

> Task :examples:compileKotlin
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/french/French2English.kt: (119, 9): Parameter 'trainUntil' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/french/French2English.kt: (127, 63): Parameter 'model' is never used, could be renamed to _
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/french/Main.kt: (27, 9): Variable 'trainedFrench2English' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/hookeanSpring/softbody/oo/SoftBody.kt: (44, 9): Variable 'N' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/neohookean/simple/oo/dynamic/GradientDescentWithLineSearch.kt: (46, 22): Variable 'stepSize' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/neohookean/simple/oo/dynamic/SystemState.kt: (73, 17): Name shadowed: state
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/neohookean/simple/oo/quasistatic/Vertex.kt: (35, 31): Name shadowed: vertices
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/neohookean/simple/tensor/dynamic/GradientDescentWithLineSearch.kt: (35, 18): Variable 'stepSize' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/poissonBlending/DTensorVectorSpace.kt: (23, 31): The corresponding parameter in the supertype 'DifferentiableVectorSpace' is named 'tangent'. This may cause problems when calling this function with named arguments.
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/poissonBlending/Main.kt: (75, 21): Parameter 'iter' is never used, could be renamed to _
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/symbolicDiff/logProb/Main.kt: (47, 39): Name shadowed: input
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/symbolicDiff/reverse/Main.kt: (20, 9): Variable 'left' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/examples/src/main/kotlin/examples/symbolicDiff/reverse/Main.kt: (21, 9): Variable 'right' is never used

> Task :examples:test FAILED

> Task :api:compileTestKotlin
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/ops/ConvolveTest.kt: (42, 13): Variable 'values' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/ops/ConvolveTest.kt: (51, 13): Variable 'values' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/ops/ConvolveTest.kt: (66, 13): Variable 'values' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/random/DiffktRandomTest.kt: (22, 13): Variable 'gaussian' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/random/DiffktRandomTest.kt: (26, 13): Variable 'cauchy' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/random/DiffktRandomTest.kt: (140, 13): Variable 'k3' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/reverse/ReverseTensorTest.kt: (273, 14): Variable 'b' is never used
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/tracing/TracingTests.kt: (778, 38): Check for instance is always 'true'
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/tracing/TracingTests.kt: (778, 60): Check for instance is always 'true'
w: /Users/nmgafter/Repos/diffkt/kotlin/api/src/test/kotlin/org/diffkt/tracing/TracingTests.kt: (820, 13): Variable 'x' is never used
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ testutils:test results: SUCCESS (0 tests, 0 passed, 0 failed, 0 skipped)                       │
│ Report file: /Users/nmgafter/Repos/diffkt/kotlin/testutils/build/reports/tests/test/index.html │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ examples:test results: FAILURE (0 tests, 0 passed, 0 failed, 0 skipped)                        │
│ Report file: /Users/nmgafter/Repos/diffkt/kotlin/examples/build/reports/tests/test/index.html  │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':examples:test'.
> There were failing tests. See the report at: file:///Users/nmgafter/Repos/diffkt/kotlin/examples/build/reports/tests/test/index.html

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 8s
21 actionable tasks: 21 executed
nmgafter@nmgafter-mbp kotlin % 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions