Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Orc unable to find dependencies, even when they exist

Closed
#2,408 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake
Domain
build-system

Research direction

Reproduce the conda setup with the minimal CMakeLists.txt and compare the two find_package calls. Start with lib/cmake/orc/FindSnappy.cmake and lib/cmake/orc/orcConfig.cmake, using the reported CMake dependency call stack as the entry point. Done means find_package(orc REQUIRED) succeeds while resolving the existing Snappy installation.

Written by the indexing model from the issue text.

Description

bug

To reproduce the issue you can create a conda environment with orc and a third party dependency, like Snappy:

$ conda create -n foo orc snappy
$ conda activate foo

With the minimal CMake project below, no errors occur during setup:

cmake_minimum_required(VERSION 3.2)
project(foo)

find_package(Snappy REQUIRED)

However, if you add a call to find orc, you will then get an error that Snappy could not be found:

cmake_minimum_required(VERSION 3.2)
project(foo)

find_package(Snappy REQUIRED)
find_package(orc REQUIRED)
$ cmake -S . -B build
-- SNAPPY_HOME: 
CMake Error at /home/will/miniforge3/envs/foo/lib/cmake/orc/FindSnappy.cmake:80 (message):
  Could not find Snappy in system search paths.
Call Stack (most recent call first):
  /usr/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /home/will/miniforge3/envs/foo/lib/cmake/orc/orcConfig.cmake:72 (find_dependency)
  CMakeLists.txt:5 (find_package)

This issue was first discovered downstream in Apache Arrow (see https://github.com/apache/arrow/pull/46906#issuecomment-3286997441) and appears to have started with Orc 2.1.0

Dominant language
Java
Stars
769
Forks
515
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/orc

All issues in apache/orc

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.