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

openroad/orfs:v3.0-1140-g64b0fca4 #82

Closed
wants to merge 1 commit into from
Closed

Conversation

oharboe
Copy link
Collaborator

@oharboe oharboe commented Aug 14, 2024

@jeffng-or FYI

  1. modify MODULE.bazel
  2. ran bazel mod tidy to update MODULE.bazel.lock

Fails with the error message below, ChatGPT told me to run sudo systemctl start docker and it worked :-)

I think the problem is that ORFS sudo ./setup.sh is stopping docker...?

$ bazel build data_2048x8_generate_abstract
INFO: Invocation ID: d543c433-4374-474e-bacc-f90a9b1b228f
INFO: Repository bazel-orfs~~orfs_repositories~docker_orfs instantiated at:
  <builtin>: in <toplevel>
Repository rule docker_pkg defined at:
  /home/oyvind/.cache/bazel/_bazel_oyvind/7e6ad621f3f951c3ee6f5b179289b54e/external/bazel-orfs~/docker.bzl:55:29: in <toplevel>
ERROR: An error occurred during the fetch of repository 'bazel-orfs~~orfs_repositories~docker_orfs':
   Traceback (most recent call last):
	File "/home/oyvind/.cache/bazel/_bazel_oyvind/7e6ad621f3f951c3ee6f5b179289b54e/external/bazel-orfs~/docker.bzl", line 24, column 13, in _impl
		fail("Failed to build {}:".format(repository_ctx.attr.image), build_result.stderr)
Error in fail: Failed to build openroad/orfs:v3.0-1140-g64b0fca4: ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERROR: no such package '@@bazel-orfs~~orfs_repositories~docker_orfs//': Failed to build openroad/orfs:v3.0-1140-g64b0fca4: ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERROR: /home/oyvind/megaboom/BUILD.bazel:135:14: //:data_2048x8_generate_abstract depends on @@bazel-orfs~~orfs_repositories~docker_orfs//:gio_modules in repository @@bazel-orfs~~orfs_repositories~docker_orfs which failed to fetch. no such package '@@bazel-orfs~~orfs_repositories~docker_orfs//': Failed to build openroad/orfs:v3.0-1140-g64b0fca4: ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERROR: Analysis of target '//:data_2048x8_generate_abstract' failed; build aborted: Analysis failed
INFO: Elapsed time: 1.419s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully

@oharboe
Copy link
Collaborator Author

oharboe commented Aug 14, 2024

bazel run data_2048x8_floorplan

Fails with:

Elapsed time: 0:00.99[h:]min:sec. CPU time: user 0.95 sys 0.03 (100%). Peak memory: 215452KB.
cp bazel-out/k8-fastbuild/bin//results/asap7/data_2048x8/base/2_6_floorplan_pdn.odb bazel-out/k8-fastbuild/bin//results/asap7/data_2048x8/base/2_floorplan.odb
ERROR: /home/oyvind/megaboom/BUILD.bazel:135:14: Action results/asap7/data_2048x8/base/3_place.odb failed: (Exit 2): bash failed: error executing Action command (from target //:data_2048x8_place) /bin/bash -c 'make $@' '' --file external/bazel-orfs~~orfs_repositories~docker_orfs/OpenROAD-flow-scripts/flow/Makefile do-place

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
mv: cannot stat 'bazel-out/k8-fastbuild/bin//logs/asap7/data_2048x8/base/3_1_place_gp_skip_io.tmp.log': No such file or directory
make[1]: *** [external/bazel-orfs~~orfs_repositories~docker_orfs/OpenROAD-flow-scripts/flow/Makefile:713: do-3_1_place_gp_skip_io] Error 1
make: *** [external/bazel-orfs~~orfs_repositories~docker_orfs/OpenROAD-flow-scripts/flow/Makefile:744: do-place] Error 2
OpenROAD HEAD-HASH-NOTFOUND 
Features included (+) or not (-): +Charts +GPU +GUI +Python
This program is licensed under the BSD-3 license. See the LICENSE file for details.
Components of this program may be licensed under more restrictive licenses which must be honored.
[INFO ORD-0030] Using 20 thread(s).
mkdir -p bazel-out/k8-fastbuild/bin//objects/asap7/data_2048x8/base
Running global_place_skip_io.tcl, stage 3_1_place_gp_skip_io
bash: line 1: bazel-out/k8-fastbuild/bin//logs/asap7/data_2048x8/base/3_1_place_gp_skip_io.tmp.log: No such file or directory
Target //:data_2048x8_generate_abstract failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /home/oyvind/megaboom/BUILD.bazel:135:14 Action results/asap7/data_2048x8/base/data_2048x8.lef failed: (Exit 2): bash failed: error executing Action command (from target //:data_2048x8_place) /bin/bash -c 'make $@' '' --file external/bazel-orfs~~orfs_repositories~docker_orfs/OpenROAD-flow-scripts/flow/Makefile do-place

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
INFO: Elapsed time: 102.988s, Critical Path: 14.94s
INFO: 9 processes: 7 internal, 2 linux-sandbox.
ERROR: Build did NOT complete successfully

@oharboe
Copy link
Collaborator Author

oharboe commented Aug 14, 2024

To debug, run:

bazel run data_2048x8_floorplan_deps `pwd`/build && build/make do-floorplan
$ bazel run data_2048x8_floorplan_deps `pwd`/build && build/make do-floorplan
INFO: Invocation ID: 8705029b-8b80-4ba1-ac53-e1ce428dfc3b
INFO: Analyzed target //:data_2048x8_floorplan_deps (0 packages loaded, 1 target configured).
INFO: Found 1 target...
Target //:data_2048x8_floorplan_deps up-to-date:
  bazel-bin/results/asap7/data_2048x8/base/2_floorplan.short.mk
  bazel-bin/results/asap7/data_2048x8/base/1_synth.v
  bazel-bin/results/asap7/data_2048x8/base/1_synth.sdc
INFO: Elapsed time: 0.141s, Critical Path: 0.02s
INFO: 7 processes: 7 internal.
INFO: Build completed successfully, 7 total actions
INFO: Running command line: bazel-bin/data_2048x8_floorplan_deps.sh /home/oyvind/megaboom/build
OpenROAD v2.0-15173-g665743f06 
Features included (+) or not (-): +Charts +GPU +GUI +Python
This program is licensed under the BSD-3 license. See the LICENSE file for details.
Components of this program may be licensed under more restrictive licenses which must be honored.
[INFO ORD-0030] Using 20 thread(s).
mkdir -p .//objects/asap7/data_2048x8/base
Running floorplan.tcl, stage 2_1_floorplan
bash: line 1: .//logs/asap7/data_2048x8/base/2_1_floorplan.tmp.log: No such file or directory
mv: cannot stat './/logs/asap7/data_2048x8/base/2_1_floorplan.tmp.log': No such file or directory
make[1]: *** [/home/oyvind/OpenROAD-flow-scripts/flow/Makefile:676: do-2_1_floorplan] Error 1
make: *** [/home/oyvind/OpenROAD-flow-scripts/flow/Makefile:717: do-floorplan] Error 2

Ahh... I think I broke it:

$ . ~/OpenROAD-flow-scripts/env.sh 
OPENROAD: /home/oyvind/OpenROAD-flow-scripts/tools/OpenROAD
oyvind@small-cigar:~/megaboom$ build/make do-floorplan
Running floorplan.tcl, stage 2_1_floorplan
bash: line 1: .//logs/asap7/data_2048x8/base/2_1_floorplan.tmp.log: No such file or directory
mv: cannot stat './/logs/asap7/data_2048x8/base/2_1_floorplan.tmp.log': No such file or directory
make[1]: *** [/home/oyvind/OpenROAD-flow-scripts/flow/Makefile:676: do-2_1_floorplan] Error 1
make: *** [/home/oyvind/OpenROAD-flow-scripts/flow/Makefile:717: do-floorplan] Error 2

@oharboe
Copy link
Collaborator Author

oharboe commented Aug 14, 2024

@maliberty @jeffng-or It would be good to have some fast smoke testing of bazel-orfs in ORFS, though from a project point of view, it might be better to accept occasional breakage and fix after master merge...

Fix: The-OpenROAD-Project/OpenROAD-flow-scripts#2247

@oharboe oharboe closed this Aug 14, 2024
@oharboe oharboe deleted the orfs-v3.0-1140-g64b0fca4 branch August 20, 2024 05:09
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

Successfully merging this pull request may close these issues.

1 participant