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

MacPorts noreply at macports.org
Mon Nov 22 06:48:46 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
Resolution:              |   Keywords:  lion
      Port:  tesseract   |
-------------------------+----------------------

Comment (by ryandesign):

 Since I'm in charge of the buildbot, I look at its waterfall view several
 times a day and sometimes I file bug reports for build failures I happen
 to see; that's how this ticket arose.

 If you want to see if there have been build failures for your ports, use
 the ports web site's Details tab. For example,
 https://ports.macports.org/port/tesseract/details/ shows an overview of
 build status on different OS versions, showing the failure on Lion. You
 can click that to see more details, including the build log if the build
 was recent enough and has not already been cleaned up. The Builds tab at
 https://ports.macports.org/port/tesseract/builds/ is also useful. The
 ports web site's build overview is not always current (build status on the
 Details page shows the most recent build it knows about, which is not
 necessarily the most recent build that happened) but it is a good place to
 start investigations.

 The build log for tesseract doesn't show the version of clang that was
 used, but you can find that information from the buildbot web site:

 Here's the stats for the 10.7 machine at
 https://build.macports.org/buildslaves/ports-10.7_x86_64:

 > {{{
 > Mac OS X Lion v10.7.5 (11G63)
 > Xcode v4.6.3 (4H1503)
 > Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
 > Architecture: x86_64
 > C++ library: libc++
 > CPU: 4 ⨉ 2.53 GHz
 > RAM: 4 GB
 > Boot date: 2021-11-14T20:52:00Z
 > }}}

 And for the 10.8 machine at
 https://build.macports.org/buildslaves/ports-10.8_x86_64:

 > {{{
 > OS X Mountain Lion v10.8.5 (12F2560)
 > Xcode v5.1.1 (5B1008)
 > Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
 > Architecture: x86_64
 > C++ library: libc++
 > CPU: 4 ⨉ 2.53 GHz
 > RAM: 4 GB
 > Boot date: 2021-11-15T00:26:00Z
 > }}}

 flac also had this problem and was fixed awhile ago. According to
 comment:ticket:46038:32, clang 500 still had the problem, but clang 503
 didn't, so flac blacklisted clang < 503, and also the equivalent versions
 of MacPorts clang in case those got used, so I would suggest doing the
 same in tesseract. Adding a comment explaining why a compiler is being
 excluded is a good idea too.

 Add to the top of the portfile:

 {{{
 PortGroup compiler_blacklist_versions 1.0
 }}}

 And nearer the configure section:

 {{{
 # error: use of undeclared identifier '__cpuid_count'
 compiler.blacklist-append macports-clang-3.3 {clang < 503}
 }}}

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


More information about the macports-tickets mailing list