You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "raulcd (via GitHub)" <gi...@apache.org> on 2023/08/16 14:08:34 UTC

[GitHub] [arrow] raulcd opened a new issue, #37201: [CI][Packaging][Java] java-jars job fail on `CXX_LINKER_SUPPORTS_VERSION_SCRIPT` check on macOS aarch_64

raulcd opened a new issue, #37201:
URL: https://github.com/apache/arrow/issues/37201

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   The java-jars job is currently failing on [Build C++ libraries macOS aarch_64](https://github.com/ursacomputing/crossbow/actions/runs/5865193153/job/15901640364#logs)
   
   This error is also happening on the maintenance branch for 13.0.0:
   https://github.com/apache/arrow/pull/36616#issuecomment-1680342110
   https://github.com/ursacomputing/crossbow/actions/runs/5877563237/job/15937924010
   
   The error is the following:
   
   ```
    -- Performing Test CXX_LINKER_SUPPORTS_VERSION_SCRIPT
    -- Performing Test CXX_LINKER_SUPPORTS_VERSION_SCRIPT - Failed
   ```
   There's a bunch of Warnings but I am pretty sure they are not related:
   ```
   CMake Warning at /Users/voltrondata/github-actions-runner/_work/crossbow/crossbow/arrow/cpp-build/cpp-install/lib/cmake/Arrow/FindThriftAlt.cmake:56 (find_package):
     By not providing "FindThrift.cmake" in CMAKE_MODULE_PATH this project has
     asked CMake to find a package configuration file provided by "Thrift", but
     CMake did not find one.
   
     Could not find a package configuration file provided by "Thrift" with any
     of the following names:
   
       ThriftConfig.cmake
       thrift-config.cmake
   
     Add the installation prefix of "Thrift" to CMAKE_PREFIX_PATH or set
     "Thrift_DIR" to a directory containing one of the above files.  If "Thrift"
     provides a separate development package or SDK, be sure it has been
     installed.
   Call Stack (most recent call first):
     /opt/homebrew/Cellar/cmake/3.27.2/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
     /Users/voltrondata/github-actions-runner/_work/crossbow/crossbow/arrow/cpp-build/cpp-install/lib/cmake/Arrow/ArrowConfig.cmake:105 (find_dependency)
     adapter/orc/CMakeLists.txt:18 (find_package)
   
   
   CMake Warning at /Users/voltrondata/github-actions-runner/_work/crossbow/crossbow/arrow/cpp-build/cpp-install/lib/cmake/Arrow/Findlz4Alt.cmake:29 (find_package):
     By not providing "Findlz4.cmake" in CMAKE_MODULE_PATH this project has
     asked CMake to find a package configuration file provided by "lz4", but
     CMake did not find one.
   
     Could not find a package configuration file provided by "lz4" with any of
     the following names:
   
       lz4Config.cmake
       lz4-config.cmake
   
     Add the installation prefix of "lz4" to CMAKE_PREFIX_PATH or set "lz4_DIR"
     to a directory containing one of the above files.  If "lz4" provides a
     separate development package or SDK, be sure it has been installed.
   Call Stack (most recent call first):
     /opt/homebrew/Cellar/cmake/3.27.2/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
     /Users/voltrondata/github-actions-runner/_work/crossbow/crossbow/arrow/cpp-build/cpp-install/lib/cmake/Arrow/ArrowConfig.cmake:105 (find_dependency)
     adapter/orc/CMakeLists.txt:18 (find_package)
   
   
   -- Arrow version: 13.0.0
   -- Found the Arrow shared library: 
   -- Found the Arrow import library: 
   -- Found the Arrow static library: /Users/voltrondata/github-actions-runner/_work/crossbow/crossbow/arrow/cpp-build/cpp-install/lib/libarrow.a
   -- Configuring incomplete, errors occurred!
   ```
   
   ### Component(s)
   
   Continuous Integration, Java, Packaging


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] raulcd commented on issue #37201: [CI][Packaging][Java] java-jars job fail on `CXX_LINKER_SUPPORTS_VERSION_SCRIPT` check on macOS aarch_64

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1680732098

   I am investigating with @amaldonadomat it might be related to an update on the M1 OS


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] raulcd commented on issue #37201: [CI][Packaging][Java] java-jars job fail on `CXX_LINKER_SUPPORTS_VERSION_SCRIPT` check on macOS aarch_64

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1680757739

   @kou @lidavidm any idea of what might be going on here?
   The last successful job on main for the macOS aarch_64 is this one:
   https://github.com/ursacomputing/crossbow/actions/runs/5818829907/job/15776016372
   from 6 days ago.
   * CMake was 3.27.1 instead of 3.27.2 
   
   but on the release notes there doesn't seem to be nothing relevant around the issue above:
   https://cmake.org/cmake/help/latest/release/3.27.html#id2


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kou commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1681422983

   https://gitlab.kitware.com/cmake/cmake/-/issues/25181#note_1401407
   
   > I managed to wrap up that work quickly. I've released 3.27.3. It should be announced later today.
   
   https://github.com/Homebrew/homebrew-core/pull/139719
   
   We may not need a workaround.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] raulcd commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1681812827

   > Duplicated of #37159.
   
   Thanks @kou , I missed the original issue. I am closing as duplicate but as suggested this is already fixed upstream.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] raulcd commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1680826402

   it does seem the fix is not included on a new CMake release


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] raulcd commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1680851031

   There doesn't seem to be any alias for prior CMake versions on Homebrew that we could reuse.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] assignUser commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "assignUser (via GitHub)" <gi...@apache.org>.
assignUser commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1680870063

   This is on our self-hosted runner right? I think the easiest fix would be to manually install an [older cmake version](https://github.com/Kitware/CMake/releases/download/v3.26.5/cmake-3.26.5-macos-universal.dmg) without the bug and remove the brew cmake after the bundle installation: https://github.com/ursacomputing/crossbow/actions/runs/5877563237/workflow#L197


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] raulcd commented on issue #37201: [CI][Packaging][Java] java-jars job fail on `CXX_LINKER_SUPPORTS_VERSION_SCRIPT` check on macOS aarch_64

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1680705581

   It seems the error is here:
   ```
    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
   CMake Error at /opt/homebrew/Cellar/cmake/3.27.2/share/cmake/Modules/FindJNI.cmake:394 (string):
     string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
     command.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] lidavidm commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1680851479

   Hmm, would vendoring FindJNI.cmake possibly work?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kou commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1681420045

   Duplicated of #37159.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] raulcd commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1680859349

   I am asking if they have a timeline for 3.27.3 on the fix: https://gitlab.kitware.com/cmake/cmake/-/issues/25181


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kou commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1681421554

   How about adding `-DXCODE_VERSION=` CMake option as a workaround?
   
   ```diff
   diff --git a/ci/scripts/java_jni_macos_build.sh b/ci/scripts/java_jni_macos_build.sh
   index d66c39a37..647a7dad8 100755
   --- a/ci/scripts/java_jni_macos_build.sh
   +++ b/ci/scripts/java_jni_macos_build.sh
   @@ -90,6 +90,7 @@ cmake \
      -DPARQUET_BUILD_EXECUTABLES=OFF \
      -DPARQUET_REQUIRE_ENCRYPTION=OFF \
      -Dre2_SOURCE=BUNDLED \
   +  -DXCODE_VERSION= \
      -GNinja \
      ${arrow_dir}/cpp
    cmake --build . --target install
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] raulcd commented on issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #37201:
URL: https://github.com/apache/arrow/issues/37201#issuecomment-1680815982

   It does seem to be related to the last two commits on `FindJNI.cmake`:
   https://github.com/Kitware/CMake/commit/efa0e2ddafe48ef0921b31aef37c3187a7bb6b97
   https://github.com/Kitware/CMake/commit/597139b853f2f14c71047e41a3244a397c6ee728
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] raulcd closed issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd closed issue #37201: [CI][Packaging][Java] java-jars job fail on macOS aarch_64
URL: https://github.com/apache/arrow/issues/37201


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org