php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71809 not compiling from ports
Submitted: 2016-03-12 21:29 UTC Modified: 2016-03-16 08:31 UTC
From: 16xmax at rambler dot ru Assigned: ab (profile)
Status: Closed Package: *General Issues
PHP Version: 7.0.4 OS: FreeBSD 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: 16xmax at rambler dot ru
New email:
PHP Version: OS:

 

 [2016-03-12 21:29 UTC] 16xmax at rambler dot ru
Description:
------------
cd /usr/local/ports/lang/php70
make PREFIX=/usr/local/php70 PHPBASE=/usr/local/php70
.....
......
.......
and.....
In file included from /usr/ports/lang/php70/work/php-7.0.4/Zend/zend.h:36:
/usr/ports/lang/php70/work/php-7.0.4/Zend/zend_hash.h:134:15: error: variadic function cannot use fastcall calling convention
ZEND_API void ZEND_FASTCALL zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int, ...);
              ^
/usr/ports/lang/php70/work/php-7.0.4/Zend/zend_portability.h:231:39: note: expanded from macro 'ZEND_FASTCALL'
# define ZEND_FASTCALL __attribute__((fastcall))
                                      ^
1 error generated.
*** [ext/reflection/php_reflection.lo] Error code 1

make[1]: stopped in /usr/ports/lang/php70/work/php-7.0.4
1 error

make[1]: stopped in /usr/ports/lang/php70/work/php-7.0.4
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/php70


how to correct this error and install the interpreter?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-13 08:42 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2016-03-13 08:42 UTC] rasmus@php.net
Which version of gcc are you using?

I just built the port on FreeBSD 9.3 yesterday without any problems
 [2016-03-13 17:22 UTC] 16xmax at rambler dot ru
-Status: Feedback +Status: Open
 [2016-03-13 17:22 UTC] 16xmax at rambler dot ru
Do not install or required at the beginning of the compilation

P.S. ports are updated before each installation or upgrade software!
 [2016-03-14 06:20 UTC] rasmus@php.net
Sorry, I don't understand what you are trying to say here
 [2016-03-14 09:06 UTC] 16xmax at rambler dot ru
you asked what version of GCC?
I said that the GCC is not installed!

with "make install" from /usr/ports/lang/php7.0 not required to install more GCC

P.S. I'm sorry, I'm using Google translator, so not everything can be understood
 [2016-03-14 16:20 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2016-03-14 16:20 UTC] ab@php.net
@16xmax you for sure use some compiler to install from ports, so it's quasi always available on your system. The question is only which compiler and which version of it is used. If it's gcc (usual case), please try something above 4.6 or even better above 4.8.

Thanks.
 [2016-03-16 04:53 UTC] 16xmax at rambler dot ru
-Status: Feedback +Status: Open
 [2016-03-16 04:53 UTC] 16xmax at rambler dot ru
fine, everything turned out!

I replaced the previous compiler to the latest version and the installation was successful

the question is closed!

Thank you!
 [2016-03-16 08:31 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2016-03-16 08:31 UTC] ab@php.net
Closing then. Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 15:01:33 2024 UTC