Bug #76825 [Csd->Fbk]: Undefined symbols ___cpuid_count

From: Date: Fri, 05 Oct 2018 09:54:27 +0000
Subject: Bug #76825 [Csd->Fbk]: Undefined symbols ___cpuid_count
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217432@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76825&edit=1

 ID:                 76825
 Updated by:         cmb@php.net
 Reported by:        php-bugs-2018 at ryandesign dot com
 Summary:            Undefined symbols ___cpuid_count
-Status:             Closed
+Status:             Feedback
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Mac OS X 10.7.5
 PHP Version:        7.3.0beta3
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Does it work for you if you remove the HAVE_CPUID_H part[1] (plus
the respective #endif[2])?

[1] <https://github.com/php/php-src/blob/php-7.3.0RC2/Zend/zend_cpuinfo.c#L32-L37>
[2] <https://github.com/php/php-src/blob/php-7.3.0RC2/Zend/zend_cpuinfo.c#L45>


Previous Comments:
------------------------------------------------------------------------
[2018-10-05 02:35:46] php-bugs-2018 at ryandesign dot com

Related To: Bug #76826

------------------------------------------------------------------------
[2018-10-05 02:33:55] php-bugs-2018 at ryandesign dot com

The problem is still there in 7.3.0RC2.

The system does have cpuid.h, but this cpuid.h does not have __cpuid_count.

Here is a fresh build log from PHP 7.3.0RC2:

https://build.macports.org/builders/ports-10.7_x86_64_legacy-builder/builds/78703/steps/install-port/logs/stdio

------------------------------------------------------------------------
[2018-09-04 09:28:03] laruence@php.net

Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3497b75b732723b2f8d0745336d9fcaccb2e3dd7
Log: Fixed bug #76825 (Undefined symbols ___cpuid_count)

------------------------------------------------------------------------
[2018-08-31 10:58:43] php-bugs-2018 at ryandesign dot com

clang defines __GNUC__. clang identifies itself as gcc 4.2.1. If you want to check if it's
actually clang, you could check for __clang__.

------------------------------------------------------------------------
[2018-08-31 10:55:40] cmb@php.net

I don't understand the compile failure under Clang, since the
respective code is guarded by defined(__GNUC__)[1].

Anyhow, we should use feature detection (AC_TRY_LINK) instead of
inferring by compiler, in my opinion.

[1] <https://github.com/php/php-src/blob/php-7.3.0beta3/Zend/zend_cpuinfo.c#L31-L35>

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=76825


--
Edit this bug report at https://bugs.php.net/bug.php?id=76825&edit=1


Thread (13 messages)

« previous php.bugs (#217432) next »