Opened 13 years ago
Closed 12 years ago
#29590 closed defect (fixed)
cppcheck does not respect build_arch or have universal variant
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | paj-macports@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ||
Port: | cppcheck |
Description
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.
Attachments (1)
Change History (5)
Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
comment:1 Changed 13 years ago by paj-macports@…
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Have you come up with a fix for this yet?
comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Pete Johns replied by email:
I haven't. Can you point me at some documentation on how to do these?
Not sure we have any documentation actually, but search through other portfiles for "get_canonical_archflags" for some examples.
comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
r98922 (maintainer timeout)
Note: See
TracTickets for help on using
tickets.
Shall fix. Thanks.