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

Cannot find value HOST_TAG in this scope #263

Open
justinmoon opened this issue Apr 24, 2020 · 0 comments
Open

Cannot find value HOST_TAG in this scope #263

justinmoon opened this issue Apr 24, 2020 · 0 comments

Comments

@justinmoon
Copy link

I'm on Arch Linux.

$ docker run -e PKG_CONFIG_ALLOW_CROSS=1 --rm -v "$(pwd):/root/src" \
   -w /root/src philipalldredge/cargo-apk cargo apk build

...

error[E0425]: cannot find value `HOST_TAG` in this scope
  --> src/ops/build/util.rs:37:43
   |
37 |     config.ndk_path.join("prebuild").join(HOST_TAG).join("make")
   |                                           ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `HOST_TAG` in this scope
  --> src/ops/build/util.rs:47:15
   |
47 |         .join(HOST_TAG)
   |               ^^^^^^^^ not found in this scope

error: aborting due to 2 previous errors

Without PKG_CONFIG_ALLOW_CROSS I was getting openssl errors.

Seems like the cfg statements aren't getting hit properly?

What's weird is that when I run this program inside the same docker container it outputs "You are running linux".

sudo docker run --rm -v "$(pwd):/root/src"    -w /root/src philipalldredge/cargo-apk cargo run
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

1 participant