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

build failed on ubuntu 20.04 #1040

Closed
TheWaveLab opened this issue Jul 8, 2022 · 3 comments
Closed

build failed on ubuntu 20.04 #1040

TheWaveLab opened this issue Jul 8, 2022 · 3 comments

Comments

@TheWaveLab
Copy link

I don't know what happened:

Traceback (most recent call last):
File "build/fbcode_builder/getdeps.py", line 1275, in

sys.exit(main())

File "build/fbcode_builder/getdeps.py", line 1258, in main
return args.func(args)
File "build/fbcode_builder/getdeps.py", line 109, in run
self.run_project_cmd(args, loader, manifest)
File "build/fbcode_builder/getdeps.py", line 627, in run_project_cmd
builder.build(install_dirs, reconfigure=reconfigure)
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/builder.py", line 137, in build
self._build(install_dirs=install_dirs, reconfigure=reconfigure)
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/builder.py", line 1085, in _build
"-j%s" % self.num_jobs,
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/builder.py", line 163, in num_jobs
return self.build_opts.get_num_jobs(
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/buildopts.py", line 184, in get_num_jobs
available_ram = get_available_ram()
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/platform.py", line 165, in get_available_ram
return _get_available_ram_linux()
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/platform.py", line 73, in _get_available_ram_linux
raise NotImplementedError("/proc/meminfo had no valid MemAvailable")
NotImplementedError: /proc/meminfo had no valid MemAvailable

@chadaustin
Copy link
Contributor

@TheWaveLab If you cat /proc/meminfo, what do you see? It's surprising the file would exist but have no MemAvailable field.

I can put up a patch to guess a reasonable value here.

facebook-github-bot pushed a commit to facebookincubator/velox that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebook/fbthrift that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebookincubator/fizz that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebook/fboss that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebookexperimental/edencommon that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebook/wangle that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebook/mvfst that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebook/folly that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] #1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebook/fb303 that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebook/proxygen that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebook/sapling that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebookincubator/katran that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebookincubator/hsthrift that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebook/openr that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
facebook-github-bot pushed a commit to facebookincubator/reindeer that referenced this issue Jul 25, 2022
Summary:
Occasionally we see reports [1] that /proc/meminfo is missing or has
unexpected values on Linux. Instead of failing the build, guess a
reasonable value, at the risk that this will unnecessarily limit the
build's concurrency.

[1] facebook/watchman#1040

Reviewed By: genevievehelsel

Differential Revision: D38126612

fbshipit-source-id: 9d9d9f6003703acf6dffcdd5b2022f0f7b3aa691
@36289108
Copy link

I don't know what happened:

Traceback (most recent call last):
File "build/fbcode_builder/getdeps.py", line 1275, in

sys.exit(main())

File "build/fbcode_builder/getdeps.py", line 1258, in main
return args.func(args)
File "build/fbcode_builder/getdeps.py", line 109, in run
self.run_project_cmd(args, loader, manifest)
File "build/fbcode_builder/getdeps.py", line 627, in run_project_cmd
builder.build(install_dirs, reconfigure=reconfigure)
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/builder.py", line 137, in build
self._build(install_dirs=install_dirs, reconfigure=reconfigure)
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/builder.py", line 1085, in _build
"-j%s" % self.num_jobs,
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/builder.py", line 163, in num_jobs
return self.build_opts.get_num_jobs(
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/buildopts.py", line 184, in get_num_jobs
available_ram = get_available_ram()
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/platform.py", line 165, in get_available_ram
return _get_available_ram_linux()
File "/mnt/f/codeforge/cpp/watchman-2022.07.04.00/build/fbcode_builder/getdeps/platform.py", line 73, in _get_available_ram_linux
raise NotImplementedError("/proc/meminfo had no valid MemAvailable")
NotImplementedError: /proc/meminfo had no valid MemAvailable

N

@chadaustin
Copy link
Contributor

This is fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants