denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
96.56k stars 5.33k forks source link

Build failure: no such package #1399

Closed kination closed 5 years ago

kination commented 5 years ago

I success build before, but when I try again in other laptop, it failed in setup.py. This is the log:

$ ./tools/setup.py
python /Users/kwangin/workspace/deno/third_party/depot_tools/download_from_google_storage.py --platform=darwin --no_auth --bucket=chromium-gn --sha1_file /Users/kwangin/workspace/deno/third_party/v8/buildtools/mac/gn.sha1
0> Failed to fetch file gs://chromium-gn/4c8c1f32cd7c08d3e217291bf35c4c97eb5b2c2c for /Users/kwangin/workspace/deno/third_party/v8/buildtools/mac/gn, skipping. [Err: [E2018-12-23T15:42:03.342724+09:00 1827 0 annotate.go:242] original error: no such package
[E2018-12-23T15:42:03.342782+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.342810+09:00 1827 0 annotate.go:242] goroutine 1:
[E2018-12-23T15:42:03.342834+09:00 1827 0 annotate.go:242] #0 go.chromium.org/luci/vpython/cipd/cipd.go:123 - cipd.(*PackageLoader).resolveWithOpts.func1()
[E2018-12-23T15:42:03.342858+09:00 1827 0 annotate.go:242]   reason: failed to resolve package "infra/python/wheels/cffi/mac-amd64_cp27_cp27mu" at version "version:1.10.0"
[E2018-12-23T15:42:03.342886+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.342907+09:00 1827 0 annotate.go:242] #1 go.chromium.org/luci/cipd/client/cipd/ensure/package_def.go:65 - ensure.(*PackageDef).Resolve()
[E2018-12-23T15:42:03.342928+09:00 1827 0 annotate.go:242]   reason: failed to resolve package version (line 0)
[E2018-12-23T15:42:03.342950+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.342970+09:00 1827 0 annotate.go:242] #2 go.chromium.org/luci/cipd/client/cipd/ensure/file.go:195 - ensure.(*File).ResolveWith()
[E2018-12-23T15:42:03.342990+09:00 1827 0 annotate.go:242]   reason: resolving package
[E2018-12-23T15:42:03.343010+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.343028+09:00 1827 0 annotate.go:242] #3 go.chromium.org/luci/vpython/cipd/cipd.go:120 - cipd.(*PackageLoader).resolveWithOpts()
[E2018-12-23T15:42:03.343056+09:00 1827 0 annotate.go:242] #4 go.chromium.org/luci/vpython/cipd/cipd.go:88 - cipd.(*PackageLoader).Resolve.func2()
[E2018-12-23T15:42:03.343075+09:00 1827 0 annotate.go:242] #5 go.chromium.org/luci/common/system/filesystem/tempdir.go:55 - filesystem.(*TempDir).With()
[E2018-12-23T15:42:03.343096+09:00 1827 0 annotate.go:242] #6 go.chromium.org/luci/vpython/cipd/cipd.go:84 - cipd.(*PackageLoader).Resolve()
[E2018-12-23T15:42:03.343116+09:00 1827 0 annotate.go:242] #7 go.chromium.org/luci/vpython/venv/config.go:183 - venv.(*Config).makeEnv()
[E2018-12-23T15:42:03.343138+09:00 1827 0 annotate.go:242]   reason: failed to resolve packages
[E2018-12-23T15:42:03.343158+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.343179+09:00 1827 0 annotate.go:242] #8 go.chromium.org/luci/vpython/venv/venv.go:163 - venv.With()
[E2018-12-23T15:42:03.343198+09:00 1827 0 annotate.go:242] #9 go.chromium.org/luci/vpython/run.go:63 - vpython.Run()
[E2018-12-23T15:42:03.343219+09:00 1827 0 annotate.go:242] #10 go.chromium.org/luci/vpython/application/application.go:318 - application.(*application).mainImpl()
[E2018-12-23T15:42:03.343239+09:00 1827 0 annotate.go:242] #11 go.chromium.org/luci/vpython/application/application.go:402 - application.(*Config).Main.func1()
[E2018-12-23T15:42:03.343260+09:00 1827 0 annotate.go:242] #12 go.chromium.org/luci/vpython/application/support.go:47 - application.run()
[E2018-12-23T15:42:03.343280+09:00 1827 0 annotate.go:242] #13 go.chromium.org/luci/vpython/application/application.go:401 - application.(*Config).Main()
[E2018-12-23T15:42:03.343302+09:00 1827 0 annotate.go:242] #14 vpython/main.go:93 - main.mainImpl()
[E2018-12-23T15:42:03.343321+09:00 1827 0 annotate.go:242] #15 vpython/main.go:99 - main.main()
[E2018-12-23T15:42:03.343341+09:00 1827 0 annotate.go:242] #16 runtime/proc.go:198 - runtime.main()
[E2018-12-23T15:42:03.343361+09:00 1827 0 annotate.go:242] #17 runtime/asm_amd64.s:2361 - runtime.goexit()
]
Failed to fetch file gs://chromium-gn/4c8c1f32cd7c08d3e217291bf35c4c97eb5b2c2c for /Users/kwangin/workspace/deno/third_party/v8/buildtools/mac/gn. [Err: [E2018-12-23T15:42:03.342724+09:00 1827 0 annotate.go:242] original error: no such package
[E2018-12-23T15:42:03.342782+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.342810+09:00 1827 0 annotate.go:242] goroutine 1:
[E2018-12-23T15:42:03.342834+09:00 1827 0 annotate.go:242] #0 go.chromium.org/luci/vpython/cipd/cipd.go:123 - cipd.(*PackageLoader).resolveWithOpts.func1()
[E2018-12-23T15:42:03.342858+09:00 1827 0 annotate.go:242]   reason: failed to resolve package "infra/python/wheels/cffi/mac-amd64_cp27_cp27mu" at version "version:1.10.0"
[E2018-12-23T15:42:03.342886+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.342907+09:00 1827 0 annotate.go:242] #1 go.chromium.org/luci/cipd/client/cipd/ensure/package_def.go:65 - ensure.(*PackageDef).Resolve()
[E2018-12-23T15:42:03.342928+09:00 1827 0 annotate.go:242]   reason: failed to resolve package version (line 0)
[E2018-12-23T15:42:03.342950+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.342970+09:00 1827 0 annotate.go:242] #2 go.chromium.org/luci/cipd/client/cipd/ensure/file.go:195 - ensure.(*File).ResolveWith()
[E2018-12-23T15:42:03.342990+09:00 1827 0 annotate.go:242]   reason: resolving package
[E2018-12-23T15:42:03.343010+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.343028+09:00 1827 0 annotate.go:242] #3 go.chromium.org/luci/vpython/cipd/cipd.go:120 - cipd.(*PackageLoader).resolveWithOpts()
[E2018-12-23T15:42:03.343056+09:00 1827 0 annotate.go:242] #4 go.chromium.org/luci/vpython/cipd/cipd.go:88 - cipd.(*PackageLoader).Resolve.func2()
[E2018-12-23T15:42:03.343075+09:00 1827 0 annotate.go:242] #5 go.chromium.org/luci/common/system/filesystem/tempdir.go:55 - filesystem.(*TempDir).With()
[E2018-12-23T15:42:03.343096+09:00 1827 0 annotate.go:242] #6 go.chromium.org/luci/vpython/cipd/cipd.go:84 - cipd.(*PackageLoader).Resolve()
[E2018-12-23T15:42:03.343116+09:00 1827 0 annotate.go:242] #7 go.chromium.org/luci/vpython/venv/config.go:183 - venv.(*Config).makeEnv()
[E2018-12-23T15:42:03.343138+09:00 1827 0 annotate.go:242]   reason: failed to resolve packages
[E2018-12-23T15:42:03.343158+09:00 1827 0 annotate.go:242]
[E2018-12-23T15:42:03.343179+09:00 1827 0 annotate.go:242] #8 go.chromium.org/luci/vpython/venv/venv.go:163 - venv.With()
[E2018-12-23T15:42:03.343198+09:00 1827 0 annotate.go:242] #9 go.chromium.org/luci/vpython/run.go:63 - vpython.Run()
[E2018-12-23T15:42:03.343219+09:00 1827 0 annotate.go:242] #10 go.chromium.org/luci/vpython/application/application.go:318 - application.(*application).mainImpl()
[E2018-12-23T15:42:03.343239+09:00 1827 0 annotate.go:242] #11 go.chromium.org/luci/vpython/application/application.go:402 - application.(*Config).Main.func1()
[E2018-12-23T15:42:03.343260+09:00 1827 0 annotate.go:242] #12 go.chromium.org/luci/vpython/application/support.go:47 - application.run()
[E2018-12-23T15:42:03.343280+09:00 1827 0 annotate.go:242] #13 go.chromium.org/luci/vpython/application/application.go:401 - application.(*Config).Main()
[E2018-12-23T15:42:03.343302+09:00 1827 0 annotate.go:242] #14 vpython/main.go:93 - main.mainImpl()
[E2018-12-23T15:42:03.343321+09:00 1827 0 annotate.go:242] #15 vpython/main.go:99 - main.main()
[E2018-12-23T15:42:03.343341+09:00 1827 0 annotate.go:242] #16 runtime/proc.go:198 - runtime.main()
[E2018-12-23T15:42:03.343361+09:00 1827 0 annotate.go:242] #17 runtime/asm_amd64.s:2361 - runtime.goexit()
]
Downloading 1 files took 33.690224 second(s)

Am I missing something?

I'm working with:

OS: MacOS Mojave
Rust: 1.31.1
Python: 2.7.11
kevinkassimo commented 5 years ago

Weird. I'm also on Mac but could not reproduce this...

monkingxue commented 5 years ago

I run the ./tools/setup.py yesterday but could not reproduce too. Consider re-clone the whole project and set up again?

kination commented 5 years ago

@kevinkassimo @monkingxue yeah...actually I have 2 laptop, and it works well in one but error is caused in other one. They are both mac, so I'm also wondering why.

I'll try again. Thanks.

axetroy commented 5 years ago

same issue in ./tools/setup.py step

bartlomieju commented 5 years ago

@djKooks @axetroy does this issue still occur on latest release?

kination commented 5 years ago

@bartlomieju I just tested with master branch in MacOS 10.14.

There were some problem in ./tools/build.py:

...
dyld: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
  Referenced from: /Users/jung/workspace/etc/deno/prebuilt/mac/sccache
  Reason: image not found

I already installed openssl, but it is trying to find openssl@1.1. I tried again after brew install openssl@1.1, build works fine.

I think there should be a guide about installing openssl v1.1 if deno must use this version.

Thanks.

hayd commented 5 years ago

I also came across this in brew, that 1.1 seems to be required now (did brew bump their version of openssl?) https://github.com/denoland/deno/issues/1486#issuecomment-452623289

@djKooks I think that is worthy of a new issue (that sccache is openssl 1.1 only).

kitsonk commented 5 years ago

I think V8 bumped their version of openSSL... I had to do brew install openssl@1.1, I am not actually sure it is the default, but it isn't included in the prebuilt sccache either. I got caught by that a few days ago, but thought it was just my machine.

bartlomieju commented 5 years ago

Pinging @djKooks, did you resolve the issue?

ry commented 5 years ago

stale