subversion-perlbindings update failure

Paulo Moura pmoura at di.ubi.pt
Mon Mar 12 07:36:39 PDT 2012


On 12/03/2012, at 13:48, Daniel Ericsson wrote:

> On 12 mar 2012, at 13:59, Paulo Moura wrote:
> 
>> I'm running MacOS X 10.7.3 + Xcode 4.3. I applied the changes advised when upgrading to Xcode 4.3. In particular, xcode-select gives:
>> 
>> $ xcode-select -version
>> xcode-select version 2307.
>> $ which xcode-select
>> /usr/bin/xcode-select
>> $ xcode-select -print-path
>> /Applications/Xcode.app/Contents/Developer
>> 
>> I upgraded other software successfully, including subversion 1.7.4. But trying to upgrade  subversion-perlbindings fails with the following information on the log file:
>> 
>> :info:build /Developer/usr/bin/clang -c  -I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include  -I../../../../../subversion/bindings/swig/perl/libsvn_swig_perl  -I../../../../../subversion/include  -I../../../../../subversion  -I../../../../../subversion/bindings/swig -g -pipe -O2 -arch x86_64    -Werror=implicit-function-declaration -pipe -O2  -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include    -DVERSION=\"\" -DXS_VERSION=\"\"  "-I/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE"  -I/opt/local/include   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp core.c
>> :info:build /bin/sh: /Developer/usr/bin/clang: No such file or directory
>> :info:build make[1]: *** [core.o] Error 127
>> :info:build make[1]: Leaving directory 
>> 
>> Maybe some left over of previous Xcode versions? After installing Xcode 4.3 I simply deleted the old /Developer folder. Your help is appreciated.
> 
> I've seen this for ports that uses glibtool. It looked like glibtool had static paths to compilers, forcing an upgrade of libtool fixed this for me: `port -n upgrade --force libtool`. I didn't save any of the old output unfortunately.
> 
> Before you upgrade could you do a `port contents libtool | grep -v contains | xargs grep clang`. If upgrading libtool fixes the error could you post the output before and after the libtool upgrade?


Thanks :-) You and Jeremy nailed it. Follows the output your requested for the libtool port:

$ port contents libtool | grep -v contains | xargs grep clang
/opt/local/bin/glibtool:LTCC="/Developer/usr/bin/clang"
/opt/local/bin/glibtool:CC="/Developer/usr/bin/clang"
/opt/local/bin/glibtool:CC="/Developer/usr/bin/clang++"

$ sudo port -n upgrade --force libtool
Password:
--->  Cleaning libtool
--->  Unable to uninstall libtool @2.4.2_0, the following ports depend on it:
--->  	guile @1.8.7_2
--->  	libgda4 @4.2.12_0
--->  	GraphicsMagick @1.3.14_0+q8
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating libtool @2.4.2_0
--->  Unable to deactivate libtool @2.4.2_0, the following ports depend on it:
--->  	guile @1.8.7_2
--->  	libgda4 @4.2.12_0
--->  	GraphicsMagick @1.3.14_0+q8
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning libtool
--->  Uninstalling libtool @2.4.2_0
--->  Cleaning libtool
--->  Computing dependencies for libtool
--->  Fetching archive for libtool
--->  Attempting to fetch libtool-2.4.2_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/libtool
--->  Fetching libtool
--->  Verifying checksum(s) for libtool
--->  Extracting libtool
--->  Configuring libtool
--->  Building libtool
--->  Staging libtool into destroot
--->  Installing libtool @2.4.2_0
--->  Activating libtool @2.4.2_0
--->  Cleaning libtool

$ port contents libtool | grep -v contains | xargs grep clang
/opt/local/bin/glibtool:LTCC="/usr/bin/clang"
/opt/local/bin/glibtool:sys_lib_search_path_spec="/usr/lib/clang/3.1  /usr/local/lib"
/opt/local/bin/glibtool:CC="/usr/bin/clang"
/opt/local/bin/glibtool:CC="/usr/bin/clang++"

The same problem, and the same solution with the perl port. After these upgrades, the subversion-perlbindings port upgraded without issues. Maybe had the workaround to the FAQ section of Xcode 4.3?

Cheers,

Paulo


-----------------------------------------------------------------
Paulo Jorge Lopes de Moura, PhD
Assistant Professor
Dep. of Computer Science, University of Beira Interior
6201-001 Covilhã, Portugal

Office 3.18  Ext. 3276
Phone: +351 275 242081 Fax: +351 275 319899
Email: <mailto:pmoura at di.ubi.pt>

Home page: <http://www.di.ubi.pt/~pmoura>
Research:  <http://logtalk.org/> Blog: <http://blog.logtalk.org/>
-----------------------------------------------------------------



More information about the macports-users mailing list