Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zlib-1.2.11.tar.gz is not found on official #14374

Closed
use-epoll opened this issue Mar 29, 2022 · 15 comments
Closed

zlib-1.2.11.tar.gz is not found on official #14374

use-epoll opened this issue Mar 29, 2022 · 15 comments
Assignees
Labels
Module: Build Indicates build related issues Type: Bug Indicates an unexpected problem or unintended behavior

Comments

@use-epoll
Copy link

use-epoll commented Mar 29, 2022

when i build the apollo-v7.00 the zlib-1.2.11.tar.gz is not found on official ,because the zlib-1.2.12 is updated

@use-epoll
Copy link
Author

(06:44:35) WARNING: Download from https://zlib.net/zlib-1.2.11.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
(06:44:35) ERROR: An error occurred during the fetch of repository 'zlib':
Traceback (most recent call last):
File "/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/zlib/temp12804174087090804178/zlib-1.2.11.tar.gz: GET returned 404 Not Found
(06:44:35) INFO: Repository remotejdk11_linux instantiated at:
/DEFAULT.WORKSPACE.SUFFIX:131:6: in
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule http_archive defined at:
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
(06:44:35) INFO: Repository boringssl instantiated at:
/apollo/WORKSPACE:64:10: in
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/com_github_grpc_grpc/bazel/grpc_deps.bzl:130:21: in grpc_deps
Repository rule http_archive defined at:
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
(06:44:35) INFO: Repository remote_java_tools_linux instantiated at:
/DEFAULT.WORKSPACE.SUFFIX:237:6: in
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule http_archive defined at:
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
(06:44:35) ERROR: /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/com_google_protobuf/BUILD:210:11: @com_google_protobuf//:protobuf depends on @zlib//:zlib in repository @zlib which failed to fetch. no such package '@zlib//': java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/zlib/temp12804174087090804178/zlib-1.2.11.tar.gz: GET returned 404 Not Found
(06:44:35) ERROR: Analysis of target '//modules/v2x/v2x_proxy/proto_adapter:proto_adapter' failed; build aborted: Analysis failed
(06:44:35) INFO: Elapsed time: 0.849s
(06:44:35) INFO: 0 processes.
(06:44:35) FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)

@senjary
Copy link

senjary commented Mar 29, 2022

I have the same problem, then edit two files:
apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/io_bazel_rules_go/go/private/repositories.bzl
line 95 - 101
http_archive( name = "net_zlib", build_file = "@com_google_protobuf//:third_party/zlib.BUILD", sha256 = "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9", strip_prefix = "zlib-1.2.12", urls = ["https://zlib.net/zlib-1.2.12.tar.gz"], )

apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/rules_proto/proto/private/dependencies.bzl
line 31-38
"zlib": { "sha256": "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9", "build_file": "@com_google_protobuf//:third_party/zlib.BUILD", "strip_prefix": "zlib-1.2.12", "urls": [ "https://zlib.net/zlib-1.2.12.tar.gz", ], },

then build again

@w23215
Copy link

w23215 commented Mar 29, 2022

It works. thanks!

@use-epoll
Copy link
Author

nice!thankyou!!

@POPCharlyn
Copy link

Under the error reporting path prompted,change link https://zlib.net/zlib-1.2.11.tar.gz to https://zlib.net/fossils/zlib-1.2.11.tar.gz.

@anhtu96
Copy link

anhtu96 commented Mar 31, 2022

I have the same problem, then edit two files: apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/io_bazel_rules_go/go/private/repositories.bzl line 95 - 101 http_archive( name = "net_zlib", build_file = "@com_google_protobuf//:third_party/zlib.BUILD", sha256 = "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9", strip_prefix = "zlib-1.2.12", urls = ["https://zlib.net/zlib-1.2.12.tar.gz"], )

apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/rules_proto/proto/private/dependencies.bzl line 31-38 "zlib": { "sha256": "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9", "build_file": "@com_google_protobuf//:third_party/zlib.BUILD", "strip_prefix": "zlib-1.2.12", "urls": [ "https://zlib.net/zlib-1.2.12.tar.gz", ], },

then build again

Thanks a lot! Works like a charm.

@lx18233184051
Copy link
Contributor

lx18233184051 commented Mar 31, 2022

Thanks for solutions, editting .cache file is a temp method, I have commit this bug fix. detail: #14387

@lx18233184051 lx18233184051 self-assigned this Mar 31, 2022
@IDovgopolik
Copy link

Hi to all! I'm using the apollo 6.0 and I have the same problem. Editing .cache file is not good solution for me and the fix by @lx18233184051 doesn't work for me. Are there any ideas how to fix it in apollo 6.0?

@fei4xu
Copy link

fei4xu commented May 11, 2022

Thanks for solutions, editting .cache file is a temp method, I have commit this bug fix. detail: #14387

please backport it to r7.0.0

@daohu527
Copy link
Contributor

I think we should fix the previous version by the way

@daohu527 daohu527 added Type: Bug Indicates an unexpected problem or unintended behavior Module: Build Indicates build related issues labels Jul 13, 2022
@felixf4xu
Copy link

Thanks for solutions, editting .cache file is a temp method, I have commit this bug fix. detail: #14387

#14387 does not work anymore, the link is changed again.

@daohu527
Copy link
Contributor

daohu527 commented Sep 11, 2022

In apollo 6.0, We should move the configuration to the front

load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()

http_archive(
    name = "zlib",
    build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
    sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
    strip_prefix = "zlib-1.2.11",
    urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"],
)

GowthamKudupudi pushed a commit to amd/apollo that referenced this issue Nov 17, 2022
…ng error

[Synopsis] The new version of `zlib` - zlib-1.2.12 is released (https://zlib.net/zlib-1.2.12.tar.gz), the previous version of `zlib` became unavailable (https://zlib.net/zlib-1.2.11.tar.gz)

[Solution]
Get the previous `zlib` version from `zlib/archive`

[IMP] It would definitely be better to cherry-pick the fix (ApolloAuto#14387) from the vanilla Apollo

[Error log] `./apollo.sh build`
```
...
(10:53:17) ERROR: /apollo/modules/localization/msf/local_pyramid_map/base_map/BUILD:22:11: //modules/localization/msf/local_pyramid_map/base_map:base_map_matrix depends on @zlib//:zlib in repository @zlib which failed to fetch. no such package '@zlib//': java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/zlib/temp165233950568194062/zlib-1.2.11.tar.gz: GET returned 404 Not Found
(10:53:17) ERROR: Analysis of target '//modules/localization/msf/local_pyramid_map/base_map:base_map_matrix' failed; build aborted: Analysis failed
(10:53:17) INFO: Elapsed time: 20.380s
(10:53:17) INFO: 0 processes.
(10:53:17) FAILED: Build did NOT complete successfully (672 packages loaded, 1\
1323 targets configured)
```
GowthamKudupudi pushed a commit to amd/apollo that referenced this issue Nov 17, 2022
@hwh666
Copy link

hwh666 commented Mar 28, 2023

In apollo 6.0, We should move the configuration to the front

load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()

http_archive(
    name = "zlib",
    build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
    sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
    strip_prefix = "zlib-1.2.11",
    urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"],
)

good job , it work for me in apollo 6.0, thanks

@Sirius-1110
Copy link

move the configuration to the front

apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/io_bazel_rules_go/go/private/repositories.bzl
apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/rules_proto/proto/private/dependencies.bzl
Does "move the configuration to the front" mean to add this code to the front of the two files above?

@Sirius-1110
Copy link

Sirius-1110 commented Dec 25, 2023

Under the error reporting path prompted

I had the same problem when trying to build apollo 6.0, but I can't find 'zlib' related fields under the error reporting path prompted(File "/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/bazel_tools/tools/build_defs/repo/http.bzl")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Build Indicates build related issues Type: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests