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

[BUG] Compilation error on defining CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID outside test value range #25388

Closed
sharadb-amazon opened this issue Mar 1, 2023 · 1 comment

Comments

@sharadb-amazon
Copy link
Contributor

sharadb-amazon commented Mar 1, 2023

Reproduction steps

  1. Add #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x7FFF (or any value outside [0x8000, 0x801F]) for an example app (say in tv-casting-app's CHIPProjectAppConfig.h)
  2. Try building the example app.

Expected: able to compile the app
Actual: Compilation failure with the following errors:

Undefined symbols for architecture arm64:
  "chip::DevelopmentCerts::kDacPublicKey", referenced from:
      chip::Credentials::Examples::(anonymous namespace)::ExampleDACProvider::SignWithDeviceAttestationKey(chip::Span<unsigned char const> const&, chip::Span<unsigned char>&) in libTvCastingCommon.a(libCredentials.DeviceAttestationCredsExample.cpp.o)
  "chip::DevelopmentCerts::kDacPrivateKey", referenced from:
      chip::Credentials::Examples::(anonymous namespace)::ExampleDACProvider::SignWithDeviceAttestationKey(chip::Span<unsigned char const> const&, chip::Span<unsigned char>&) in libTvCastingCommon.a(libCredentials.DeviceAttestationCredsExample.cpp.o)
  "chip::DevelopmentCerts::kDacCert", referenced from:
      chip::Credentials::Examples::(anonymous namespace)::ExampleDACProvider::GetDeviceAttestationCert(chip::Span<unsigned char>&) in libTvCastingCommon.a(libCredentials.DeviceAttestationCredsExample.cpp.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Bug prevalence

Everytime

GitHub hash of the SDK that was being used

eff5773

Platform

core

Platform Version(s)

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants