Skip to content

Building release JARs fails locally on macOS #3261

@hsiang-c

Description

@hsiang-c

Describe the bug

When I tried to build Comet JAR with arm64/amd64 native libraries, I got the following error from the Docker container.

error: failed to run custom build command for `hdfs-sys v0.3.0`

Caused by:
  process didn't exit successfully: `/opt/comet-rm/comet/native/target/release/build/hdfs-sys-28614ad89a41cf9d/build-script-build` (exit status: 1)
  --- stderr
  Error: JavaLocatorError { description: "Java is not installed or not in the system PATH" }
warning: build failed, waiting for other jobs to finish...
make: *** [Makefile:54: core-amd64-libs] Error 101

According to hdfs-sys doc, this crate will link to libjvm.

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions