Skip to content

Undefined symbols ___cpuid_count ___get_cpuid_max building on Mac OS X 10.7 #115

Description

@ryandesign

htslib 1.20 fails to build on Mac OS X 10.7.5 with the version of Apple's fork of the clang compiler (Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)) that comes with Xcode 4.6.3 (the last version compatible with Mac OS X 10.7) due to:

Undefined symbols for architecture x86_64:
  "___cpuid_count", referenced from:
      _htscodecs_tls_cpu_init in rANS_static4x16pr.o
  "___get_cpuid_max", referenced from:
      _htscodecs_tls_cpu_init in rANS_static4x16pr.o
ld: symbol(s) not found for architecture x86_64

As far as I know, versions of Apple clang less than 503 have this deficiency. Using a newer version of clang is a workaround—either a newer version of Apple clang on newer versions of macOS, or a newer version of llvm.org clang installed manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions