Bug #68860 [Asn->Csd]: configure fails with "Cannot locate libgcc. Make sure that gcc is in your path"

From: Date: Mon, 20 Sep 2021 08:03:58 +0000
Subject: Bug #68860 [Asn->Csd]: configure fails with "Cannot locate libgcc. Make sure that gcc is in your path"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236708@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68860&edit=1

 ID:                 68860
 Updated by:         cmb@php.net
 Reported by:        sven+php at schliesing dot de
 Summary:            configure fails with "Cannot locate libgcc. Make
                     sure that gcc is in your path"
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Compile Failure
 Operating System:   OS X 10.10.1
 PHP Version:        5.5.20
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Okay, closing then.


Previous Comments:
------------------------------------------------------------------------
[2021-09-16 13:13:54] sven+php at schliesing dot de

After 6,5 years, I don't care anymore.

------------------------------------------------------------------------
[2021-09-16 12:58:47] 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>

------------------------------------------------------------------------
[2015-01-26 10:41:44] 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.

------------------------------------------------------------------------
[2015-01-20 10:22:54] 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
---------



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



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


Thread (5 messages)

« previous php.bugs (#236708) next »