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

CodeCoverage with Xcode (Clang): Undefined symbols for architecture x86_64 #84

Open
carlocorradini opened this issue Nov 14, 2023 · 1 comment

Comments

@carlocorradini
Copy link

During the linking phase of my GitHub action, I encounter the following errors while using Xcode 14.2 (Clang) (not on Linux/Ubuntu):

[100%] Linking CXX executable [NAME]
Undefined symbols for architecture x86_[64]
  "_llvm_gcda_emit_arcs", referenced from:
      ___llvm_gcov_writeout in [FILE.o]
      ...
  "_llvm_gcda_emit_function", referenced from:
      ___llvm_gcov_writeout in test.[FILE.o]
      ...
  "_llvm_gcda_end_file", referenced from:
      ___llvm_gcov_writeout in in test.[FILE.o]
      ...
  "_llvm_gcda_start_file", referenced from:
      ___llvm_gcov_writeout in in test.[FILE.o]
      ...
  "_llvm_gcda_summary_info", referenced from:
      ___llvm_gcov_writeout in in test.[FILE.o]
      ...
  "_llvm_gcov_init", referenced from:
      ___llvm_gcov_init in in test.[FILE.o]
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It looks like that something is missing during the linking phase (maybe a flag ?).
Any thoughts?
Thanks 🥳

carlocorradini added a commit to carlocorradini/erkir that referenced this issue Nov 14, 2023
@KrukDallan
Copy link

Same issue here😥

How can I solve this in my CI?

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

No branches or pull requests

2 participants