[MacPorts] #29590: cppcheck does not respect build_arch or have universal variant
MacPorts
noreply at macports.org
Wed May 25 17:10:09 PDT 2011
#29590: cppcheck does not respect build_arch or have universal variant
-------------------------------------+--------------------------------------
Reporter: ryandesign@… | Owner: paj-macports@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port: cppcheck
-------------------------------------+--------------------------------------
cppcheck does not respect the user's build_arch setting in macports.conf;
here the result of trying to build for i386 on a 64-bit Snow Leopard
machine (where the default would be x86_64):
{{{
ld: warning: in /i386-10.6-mp/lib/libpcre.dylib, file was built for i386
which is not the architecture being linked (x86_64)
Undefined symbols:
"_pcre_free", referenced from:
CppCheck::checkFile(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, char const*)in cppcheck.o
"_pcre_exec", referenced from:
CppCheck::checkFile(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, char const*)in cppcheck.o
"_pcre_compile", referenced from:
CppCheck::checkFile(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, char const*)in cppcheck.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [cppcheck] Error 1
}}}
At the same time that this is fixed, a universal variant should be added,
if possible.
--
Ticket URL: <https://trac.macports.org/ticket/29590>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list