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

From: Date: Tue, 20 Jan 2015 10:22:56 +0000
Subject: Bug #68860 [NEW]: configure fails with "Cannot locate libgcc. Make sure that gcc is in your path"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190070@lists.php.net to get a copy of this message
From:             sven+php at schliesing dot de
Operating system: OS X 10.10.1
PHP version:      5.5.20
Package:          Compile Failure
Bug Type:         Bug
Bug description:configure fails with "Cannot locate libgcc. Make sure that gcc is in your
path"

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 bug report at https://bugs.php.net/bug.php?id=68860&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=68860&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=68860&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=68860&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=68860&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=68860&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=68860&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=68860&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=68860&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=68860&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=68860&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=68860&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=68860&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=68860&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68860&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=68860&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=68860&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=68860&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68860&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=68860&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=68860&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#190070) next »