Problem with installing/uograding p5.12-xml-parser

Piet van Oostrum piet at vanoostrum.org
Wed Aug 22 12:50:50 PDT 2012


Jeremy Lavergne wrote:

 > > I have a problem with p5.12-xml-parser. It is the dreaded configure
 > > "Couldn't find your C compiler" error. I am on Mac OS 10.6.8, and have
 > > XCode 4.2. It lives in /Developer as it should be. And 
 > > 'xcode-select -print-path' give correctly the answer /Developer. In the
 > > log file I see that it wants to use clang ( CC='/usr/bin/clang' ), and
 > > /usr/bin/clang exists and runs.
 > > 
 > > I have seen that there are a bunch of bug reports about this but none of
 > > the solutions that I found work for me. I have reinstalled XCode,
 > > reinstalled perl5.12, both with 'sudo port -n upgrade --force perl5.12'
 > > and by uninstalling, cleaning and installing it. Uninstalling
 > > p5.12-xml-parser and then installing it, even with -s doesn't help. I
 > > have tried various configure.compiler options without success. So I am
 > > at my wits' end.
 > > 
 > > Because there are already so many bug reports I didn't find it useful to
 > > add something there.
 > 
 > Anything in the config.log when it tested clang?
 > 
 > I assume your xcode license was also marked as accepted.

This is the part of the log file:

:notice:configure --->  Configuring p5.12-xml-parser
:debug:configure Using compiler 'Mac OS X clang'
:debug:configure Executing org.macports.configure (p5.12-xml-parser)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64 -arch i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64 -arch i386' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-xml-parser/p5.12-xml-parser/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2' LDFLAGS='-L/opt/local/lib -arch x86_64 -arch i386' FCFLAGS='-pipe -O2' OBJC='/usr/bin/clang' INSTALL='/usr/bin/install -c' PERL_AUTOINSTALL='--skipdeps' OBJCFLAGS='-pipe -O2 -arch x86_64 -arch i386' FFLAGS='-pipe -O2' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-xml-parser/p5.12-xml-parser/work/XML-Parser-2.40" && /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang"'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-xml-parser/p5.12-xml-parser/work/XML-Parser-2.40" && /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
:info:configure Couldn't find your C compiler
:info:configure Compilation failed in require at Makefile.PL line 5.
:info:configure BEGIN failed--compilation aborted at Makefile.PL line 5.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-xml-parser/p5.12-xml-parser/work/XML-Parser-2.40" && /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
:info:configure Exit code: 2

I don't know why it wants to use /usr/bin/clang instead of /Developer/usr/bin/clang, but they are the same anyway. Apparently there are two copies installed, one in /usr/bin/ and one in /Developer/usr/bin/ (not linked, really two copies) but they are equal.

I used this XCode before and already had accepted the license manually.
-- 
Piet van Oostrum <piet at vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]


More information about the macports-users mailing list