Error when I run this command "fx set core.qemu-x64"

274 Views Asked by At
ERROR at //third_party/openssh-portable/fuchsia/developer-keys/BUILD.gn:10:24: Could not read file.
  manifest = read_file("//.fx-ssh-path", "list lines")
                       ^---------------
I resolved this to "/home/shivkumar/fuchsia_os/fuchsia/.fx-ssh-path".
See //products/core.gni:102:3: which caused the file to be included.
  "//third_party/openssh-portable/fuchsia/developer-keys:ssh_config",
  ^-----------------------------------------------------------------
ERROR: error running gn gen: exit status 1
1

There are 1 best solutions below

2
On

This error means that the //.fx-ssh-path file does not exist, or is otherwise unreadable. This file is typically generated on source checkout when the integration manifest runs //tools/ssh-keys/gen-ssh-keys.sh as a jiri hook.

To correct the problem, use gen-ssh-keys.sh again to re-generate the file(s) before setting your build configuration:

$ tools/ssh-keys/gen-ssh-keys.sh
$ fx set core.qemu-x64

Note: Hooks are also run anytime you run jiri update so you could also resync the source tree to correct the issue.