Closed davidsj2 closed 12 months ago
I don't have a corporate proxy environment, so I can't reproduce the problem. Is the following yocto wiki helpful?
Hey, unfortunately that isn't of any help. There are lots of other recipes that are being pulled in that those instructions do work for, but unfortunately something within this layer is blanking the environment.
I don't think you need a proxy to reproduce the "problem". If you set any arbitrary environment variable, you should see it getting cleared when this step is executed:
OverridableFetchContent_Declare(
abseil-cpp
GIT_REPOSITORY https://github.com/abseil/abseil-cpp
# Sync with tensorflow/third_party/absl/workspace.bzl
GIT_TAG 273292d1cfc0a94a65082ee350509af1d113344d
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
PREFIX "${CMAKE_BINARY_DIR}"
SOURCE_DIR "${CMAKE_BINARY_DIR}/abseil-cpp"
)
Need to make sure that those git clones get the current environment to ensure proxy settings in the link you provided are preserved.
Will an error occur if you build tensorflow lite with cmake without using yocto in your environment?
The tensorflow build git clones a bunch of repos during configure. For example, the file:
tensorflow/lite/tools/cmake/modules/abseil-cpp.cmake
includes a block:In turn, that gets converted into something like:
The problem is that when this gets run as part of the yocto compilation, the current environment isn't passed through. As I'm building behind a corporate proxy, I have proxy env variables and a
~/.gitconfig
with proxy configuration that needs to be used. All of these fetches are timing out when this layer is pulled in. I changed/disk01/user/qemu/dist/build/tmp/hosttools/git
from a symlink to/usr/bin/git
to a simple shell script that resembles:When the project is configured as part of the yocto build, the following shows up in
/tmp/git.txt
:So the
env
has been blanked (otherwise all of the proxy variables would have been added) and it's notnot using my ~/.gitconfig, but a generated one from kas. Note I am building from https://github.com/sifive/freedom-u-sdk via:kas build --update ./freedom-u-sdk/scripts/kas/qemuriscv64.yml