Skip to content

[config/configtls] build-and-test failing on arm #12964

Closed
@jackgopack4

Description

@jackgopack4

Component(s)

[config/configtls]

What happened?

Describe the bug
recent PR #12801 to [config/configtls] introduced a dependency on OpenSSL/CGO. This is causing the unit tests to fail on MacOS, both locally or in pipeline

Steps to reproduce
run make gotest on MacOS ARM or click to see most recent pipeline CI status: https://github.com/open-telemetry/opentelemetry-collector/actions/runs/14841117409/job/41664078361

What did you expect to see?
tests passing or skipped

What did you see instead?
tests failing

# github.com/google/go-tpm-tools/simulator/internal
In file included from /Users/runner/go/pkg/mod/github.com/google/[email protected]/simulator/internal/internal_cgo.go:45:
In file included from /Users/runner/go/pkg/mod/github.com/google/[email protected]/simulator/ms-tpm-20-ref/TPMCmd/tpm/include/Tpm.h:47:
In file included from /Users/runner/go/pkg/mod/github.com/google/[email protected]/simulator/ms-tpm-20-ref/TPMCmd/tpm/include/LibSupport.h:65:
/Users/runner/go/pkg/mod/github.com/google/[email protected]/simulator/ms-tpm-20-ref/TPMCmd/tpm/include/Ossl/TpmToOsslSym.h:47:10: fatal error: 'openssl/aes.h' file not found
#include <openssl/aes.h>
         ^~~~~~~~~~~~~~~
1 error generated.
✖  .
make[2]: *** [test] Error 1

make[1]: *** [config/configtls] Error 2
=== Failed
=== FAIL: .  (0.00s)
make[1]: *** Waiting for unfinished jobs....
FAIL	go.opentelemetry.io/collector/config/configtls [build failed]

=== Errors
In file included from /Users/runner/go/pkg/mod/github.com/google/[email protected]/simulator/internal/internal_cgo.go:45:
In file included from /Users/runner/go/pkg/mod/github.com/google/[email protected]/simulator/ms-tpm-20-ref/TPMCmd/tpm/include/Tpm.h:47:
In file included from /Users/runner/go/pkg/mod/github.com/google/[email protected]/simulator/ms-tpm-20-ref/TPMCmd/tpm/include/LibSupport.h:65:
/Users/runner/go/pkg/mod/github.com/google/[email protected]/simulator/ms-tpm-20-ref/TPMCmd/tpm/include/Ossl/TpmToOsslSym.h:47:10: fatal error: 'openssl/aes.h' file not found
#include <openssl/aes.h>
         ^~~~~~~~~~~~~~~
1 error generated.

Collector version

v0.125.0

Environment

OS: macOS 14/15
Platform: ARM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions