[MacPorts] #64016: tesseract: error: use of undeclared identifier '__cpuid_count'

MacPorts noreply at macports.org
Sat Nov 20 09:14:45 UTC 2021


#64016: tesseract: error: use of undeclared identifier '__cpuid_count'
------------------------+-----------------------
 Reporter:  ryandesign  |      Owner:  markemer
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.7.1
 Keywords:  lion        |       Port:  tesseract
------------------------+-----------------------
 tesseract fails to build on Mac OS X 10.7:

 https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/75797/steps
 /install-port/logs/stdio
 {{{
   CXXLD    libtesseract_native.la
 simddetect.cpp:110:7: error: use of undeclared identifier '__cpuid_count'
       __cpuid_count(7, 0, eax, ebx, ecx, edx);
       ^
 1 error generated.
 }}}

 However it succeeds on 10.8 and newer and on 10.6 with newer MacPorts
 clang, suggesting that this `__cpuid_count` is simply missing from the
 default compiler on 10.7 and that the port could build if you blacklisted
 that compiler so that MacPorts will pick another. Use the
 compiler_blacklist_versions portgroup and specify an appropriate clang
 version specification in `compiler.blacklist`.

-- 
Ticket URL: <https://trac.macports.org/ticket/64016>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list