Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

USER: Unbound variable #1

Open
vbisbest opened this issue Aug 24, 2017 · 5 comments
Open

USER: Unbound variable #1

vbisbest opened this issue Aug 24, 2017 · 5 comments

Comments

@vbisbest
Copy link

Seems the that USER needs to be set. Any way this can be added to the docker image?

if using Docker, define the USER environment variable (not set by default), e.g. export USER=$(whoami)

@sorccu
Copy link
Member

sorccu commented Aug 24, 2017 via email

@vbisbest
Copy link
Author

I am trying to build the SDK. No matter what I do, the build fails. And I cant seem to get any details as to why it fails. Here is my steps:

repo sync Android 7.1.2.

Run your docker image to bash.

source build/envsetup.sh
lunch sdk-eng
make sdk -j8

I keep getting failures. Have you tried building the SDK?

@shaqman
Copy link

shaqman commented Aug 13, 2018

What was the solution in the end?
I got this error as well when building inside docker.

@koral--
Copy link
Member

koral-- commented Aug 13, 2018

Here is a proposed solution: #2

@mamh2021
Copy link

$ docker run -it
--network host
-u buildfarm
-e USER=buildfarm
-w /home/buildfarm/jenkins/workspace/odvb
-h bf-01
-v /home/mamh/code/sdm845:/home/buildfarm/jenkins/workspace/odvb
-v /tmp:/tmp -v /home/mirror:/home/mirror
-v /home/qcom:/home/qcom
bs-ubuntu-14.04:1.2
/bin/bash
make_android.sh

add " -e USER=buildfarm" to 'docker run' command
or
add "export USER=buildfarm" to 'make_android.sh '

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

No branches or pull requests

5 participants