php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68860 configure fails with "Cannot locate libgcc. Make sure that gcc is in your path"
Submitted: 2015-01-20 10:22 UTC Modified: 2021-09-20 08:03 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: sven+php at schliesing dot de Assigned: cmb (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.5.20 OS: OS X 10.10.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sven+php at schliesing dot de
New email:
PHP Version: OS:

 

 [2015-01-20 10:22 UTC] sven+php at schliesing dot de
Description:
------------
configure fails with an error that it can't locate libgcc:

---------
General settings
checking whether to include gcov symbols... no
checking whether to include debugging symbols... no
checking layout of installed files... PHP
checking path to configuration file... DEFAULT
checking where to scan for configuration files... 
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to explicitly link against libgcc... yes
configure: error: Cannot locate libgcc. Make sure that gcc is in your path
---------

The path for libgcc is determined in this line in configure:
---------
libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'`
---------

Unfortunately "gcc --print-libgcc-file-name" does only return the file name and not the complete path:
---------
$ gcc --print-libgcc-file-name
libgcc.a
---------

Combined with the sed command it returns an empty string:
---------
$ gcc --print-libgcc-file-name|sed 's%/*[^/][^/]*$%%'

---------

I'm not sure if LLVM's behaviour is by design. So maybe it's a bug that has to be fixed there or PHP's configure script has to be fixed.
---------
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
---------


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-26 10:41 UTC] sven+php at schliesing dot de
It works when I use "--disable-libgcc" with configure. But I'm not sure if this is the right way to go.
 [2021-09-16 12:58 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-09-16 12:58 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-09-16 13:13 UTC] sven+php at schliesing dot de
-Status: Feedback +Status: Assigned
 [2021-09-16 13:13 UTC] sven+php at schliesing dot de
After 6,5 years, I don't care anymore.
 [2021-09-20 08:03 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2021-09-20 08:03 UTC] cmb@php.net
Okay, closing then.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 08:01:30 2024 UTC