[MacPorts] #45685: cmake fails because of XML linking error (expat issue?)
MacPorts
noreply at macports.org
Thu Oct 30 09:57:10 PDT 2014
#45685: cmake fails because of XML linking error (expat issue?)
--------------------------+----------------------
Reporter: jpsdotcom@… | Owner: css@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords: yosemite
Port: cmake |
--------------------------+----------------------
Changes (by cal@…):
* owner: macports-tickets@… => css@…
* keywords: cmake yosemite => yosemite
* port: => cmake
Old description:
> Am using OS X Yosemite & XCode 6.1
>
> from main.log after "port install cmake" fails:
> :info:build Linking CXX executable ../bin/ccmake
> :info:build [ 88%] ld: warning: ignoring file
> /Library/Frameworks/expat.framework/expat, file was built for i386 which
> is not the architecture being linked (x86_64):
> /Library/Frameworks/expat.framework/expat
> :info:build Building CXX object
> Source/CMakeFiles/CTestLib.dir/CTest/cmParseGTMCoverage.cxx.o
> :info:build Undefined symbols for architecture x86_64:
> :info:build "_XML_ErrorString", referenced from:
> :info:build cmXMLParser::ReportXmlParseError() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build "_XML_GetCurrentColumnNumber", referenced from:
> :info:build cmXMLParser::ReportXmlParseError() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build "_XML_GetCurrentLineNumber", referenced from:
> :info:build cmXMLParser::ReportXmlParseError() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build "_XML_GetErrorCode", referenced from:
> :info:build cmXMLParser::ReportXmlParseError() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build "_XML_Parse", referenced from:
> :info:build cmXMLParser::CleanupParser() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build cmXMLParser::ParseBuffer(char const*, unsigned long) in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build "_XML_ParserCreate", referenced from:
> :info:build cmXMLParser::InitializeParser() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build "_XML_ParserFree", referenced from:
> :info:build cmXMLParser::CleanupParser() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build "_XML_SetCharacterDataHandler", referenced from:
> :info:build cmXMLParser::InitializeParser() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build "_XML_SetElementHandler", referenced from:
> :info:build cmXMLParser::InitializeParser() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build "_XML_SetUserData", referenced from:
> :info:build cmXMLParser::InitializeParser() in
> libCMakeLib.a(cmXMLParser.cxx.o)
> :info:build ld: symbol(s) not found for architecture x86_64
> :info:build clang: error: linker command failed with exit code 1 (use -v
> to see invocation)
> :info:build make[2]: *** [bin/ccmake] Error 1
> :info:build make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.2'
> :info:build make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
New description:
Am using OS X Yosemite & XCode 6.1
{{{
from main.log after "port install cmake" fails:
:info:build Linking CXX executable ../bin/ccmake
:info:build [ 88%] ld: warning: ignoring file
/Library/Frameworks/expat.framework/expat, file was built for i386 which
is not the architecture being linked (x86_64):
/Library/Frameworks/expat.framework/expat
:info:build Building CXX object
Source/CMakeFiles/CTestLib.dir/CTest/cmParseGTMCoverage.cxx.o
:info:build Undefined symbols for architecture x86_64:
:info:build "_XML_ErrorString", referenced from:
:info:build cmXMLParser::ReportXmlParseError() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build "_XML_GetCurrentColumnNumber", referenced from:
:info:build cmXMLParser::ReportXmlParseError() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build "_XML_GetCurrentLineNumber", referenced from:
:info:build cmXMLParser::ReportXmlParseError() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build "_XML_GetErrorCode", referenced from:
:info:build cmXMLParser::ReportXmlParseError() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build "_XML_Parse", referenced from:
:info:build cmXMLParser::CleanupParser() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build cmXMLParser::ParseBuffer(char const*, unsigned long) in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build "_XML_ParserCreate", referenced from:
:info:build cmXMLParser::InitializeParser() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build "_XML_ParserFree", referenced from:
:info:build cmXMLParser::CleanupParser() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build "_XML_SetCharacterDataHandler", referenced from:
:info:build cmXMLParser::InitializeParser() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build "_XML_SetElementHandler", referenced from:
:info:build cmXMLParser::InitializeParser() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build "_XML_SetUserData", referenced from:
:info:build cmXMLParser::InitializeParser() in
libCMakeLib.a(cmXMLParser.cxx.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v
to see invocation)
:info:build make[2]: *** [bin/ccmake] Error 1
:info:build make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.2'
:info:build make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
}}}
--
Comment:
Please use WikiFormatting when posting in trac, and fill in the port field
when reporting bugs against ports. Please also Cc the maintainer, if any.
As per the wiki:FAQ#buildfails, please also try `sudo port clean cmake`
followed by `sudo port -t install cmake` (which will hide your bogus copy
of expat in `/Library/Frameworks` from cmake's build system.
--
Ticket URL: <https://trac.macports.org/ticket/45685#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list