You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "helly25 (via GitHub)" <gi...@apache.org> on 2024/03/22 21:17:50 UTC

[I] [C++] Boost download still fails [arrow]

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

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   This is very much ongoing for 15.0.0, 15.0.1, 15.0.2, 16.0.0.dev... from which I derive that either the system that handles hashes is not working or that neither of the download targets is working. I get the same as [benz0li](https://github.com/benz0li) for sourceforge and strange behavior with ifrog where t reliably fails from a frankfurt datacenter but seems to work in zurich. I tried boost version 1.81.0 (from source), 1.84.0 (seems to be pretty late) and 1.75.0 (referenced in this bug). So my conclusion is that this is something systemic. Unfortunately the boost version for arrow is a stripped down version (which is awesome to save network bandwidth and download time), so we cannot simply point to a local version--even if that was simple. Any other hacks to try in the meantime?
   
   See [_Originally](https://github.com/apache/arrow/issues/34675) reference from @benz0li in https://github.com/apache/arrow/issues/34675#issuecomment-1479053800_
               
   
   ### Component(s)
   
   C++


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   IMO we need two calls to `externalproject_add` in CMake. One for the trimmed boost lib and one for the official boost lib to fallback to. Since they are different binaries, they each need their own `add` to configure the correct hash. e.g.
   
   ```
    ARROW_BOOST_BUILD_VERSION=1.81.0
   ARROW_BOOST_BUILD_TRIMMED_SHA256_CHECKSUM=9e0ffae35528c35f90468997bc8d99500bf179cbae355415a89a600c38e13574
   ARROW_BOOST_BUILD_SHA256_CHECKSUM=205666dea9f6a7cfed87c7a6dfbeb52a2c1b9de55712c9c1a87735d7181452b6
   ```


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   > @helly25 you are right. Our hash differs from the release hash of Boost due to being a trimmed version. We do provide fallback URLs in case the artifactory is down and a way to override the URL as well but lack the same functionality in regards to the hash (outside of patching versions.txt as you did).
   
   Being able to also override the hash would be a fast way for anyone to repack the boost library themselves.
   
   Further, I wonder if it would make sense to make the necessary libraries available in github as additional elements of the arrow version they were introduced with. Then you could point to github as an additional location to try.
   
   Last but not least, if it was possible to provide the version.txt file, then ppl could very easily provide their own locations and hashes. So that ability would actually be the most powerful solution.


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   The apache jfrog instance seems to be back online.


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   @helly25 you are right. Our hash differs from the release hash of Boost due to being a trimmed version. We do provide fallback URLs in case the artifactory is down and a way to override the URL as well but lack the same functionality in regards to the hash (outside of patching versions.txt as you did). 


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   > > provide the version.txt
   > 
   > So provide a path to an alternate versions.txt file via env or cmake var? I like it!
   
   Like that. 
   
   The versions file would probably better be split into 2. The top part that can then be controlled via env or cmake and the second part that contains the `DEPENDENCIES`. Only the file to be overloaded would have three vars per target ...`_BUILD_VERSION`, ...`_BUILD_SHA256` and ...`_BUILD_URL`.
   
   Currently the lower part looks like this:
   
   ```
   DEPENDENCIES=(
     "ARROW_ABSL_URL absl-${ARROW_ABSL_BUILD_VERSION}.tar.gz https://github.com/abseil/abseil-cpp/archive/${ARROW_ABSL_BUILD_VERSION}.tar.gz"
   ```
   
   So the configureable versions.txt would only have entry sets like the following:
   
   ```
   ARROW_ABSL_BUILD_VERSION=20211102.0
   ARROW_ABSL_BUILD_SHA256_CHECKSUM=dcf71b9cba8dc0ca9940c4b316a0c796be8fab42b070bb6b7cab62b48f0e66c4
   ARROW_ABSL_BUILD_URL=https://github.com/abseil/abseil-cpp/archive/${ARROW_ABSL_BUILD_VERSION}.tar.gz
   ```
   
   And the non configurable part would be something like:
   
   ```
   DEPENDENCIES=(
     "ARROW_ABSL_URL absl-${ARROW_ABSL_BUILD_VERSION}.tar.gz ${ARROW_ABSL_BUILD_URL}"
   ```
   
   Maybe the file also needs to configurable or be constructed from the url.


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   > provide the version.txt
   
   So provide a path to an alternate versions.txt file via env or cmake var? I like it!


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   I'll add two questions here:
   
   1. can we have a quick fix for the currently failing CI jobs? 
   2. why do we use bundled Boost on some CI jobs? usually a Boost install is provided by the CI vendor and, if using a Docker container, we can install Boost in the image build phase instead of downloading it on the fly everytime.
   
   @kou 
   


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   ASF Infra is in contact with jfrog, that's all I can say. I know this is very disruptive and I'm sorry we will be looking for alternatives/fallbacks to avoid this happening again, see #40760


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   Hits my builds, too:
   
   * https://gitlab.b-data.ch/jupyterlab/r/tidyverse/-/pipelines/27229
   * https://gitlab.b-data.ch/jupyterlab/cuda/r/tidyverse/-/pipelines/27230
   
   @assignUser There seems to be an issue with the apache jfrog instance. What is the expected timeframe for resolving this issue?


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   After patching in the reported hash I can build arrow again.
   
   ```
   diff --git a/cpp/thirdparty/versions.txt b/cpp/thirdparty/versions.txt
   index 18bb6c9b6..aebdf28e5 100644
   --- a/cpp/thirdparty/versions.txt
   +++ b/cpp/thirdparty/versions.txt
   @@ -57,7 +57,7 @@ ARROW_AWSSDK_BUILD_SHA256_CHECKSUM=2d552fb1a84bef4a9b65e34aa7031851ed2aef5319e02
    ARROW_AZURE_SDK_BUILD_VERSION=azure-core_1.10.3
    ARROW_AZURE_SDK_BUILD_SHA256_CHECKSUM=dd624c2f86adf474d2d0a23066be6e27af9cbd7e3f8d9d8fd7bf981e884b7b48
    ARROW_BOOST_BUILD_VERSION=1.81.0
   -ARROW_BOOST_BUILD_SHA256_CHECKSUM=9e0ffae35528c35f90468997bc8d99500bf179cbae355415a89a600c38e13574
   +ARROW_BOOST_BUILD_SHA256_CHECKSUM=205666dea9f6a7cfed87c7a6dfbeb52a2c1b9de55712c9c1a87735d7181452b6
    ARROW_BROTLI_BUILD_VERSION=v1.0.9
    ARROW_BROTLI_BUILD_SHA256_CHECKSUM=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46
    ARROW_BZIP2_BUILD_VERSION=1.0.8
   ```
   
   I think there are multiple issues here:
   * The hash is currently wrong. Though why would it ever change?
   * The hash cannot be controlled from the build environment but must rather be patched in.
   * The build system takes two separate boost versions (normal and trimmed) into account, but there is only one hash, so only one version can ever be working.
   * Source 'https://apache.jfrog.io/artifactory/arrow/thirdparty/7.0.0/boost_1_81_0.tar.gz' is currently broken (hence the different hash).


-- 
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


Re: [I] [C++] Boost download still fails [arrow]

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

   Confirmed for both 15.0.0 and 15.0.2, with this error message:
   
   ```
   -- stderr output is:
   CMake Error at boost_ep-stamp/download-boost_ep.cmake:170 (message):
     Each download failed!
   
       error: downloading 'https://apache.jfrog.io/artifactory/arrow/thirdparty/7.0.0/boost_1_81_0.tar.gz' failed
             status_code: 22
             status_string: "HTTP response code said error"
             log:
             --- LOG BEGIN ---
             timeout on name lookup is not supported
       Trying 18.232.172.199:443...
   
     Connected to apache.jfrog.io (18.232.172.199) port 443 (#0)
   ```


-- 
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