[MacPorts] #47962: cppcheck @1.69 build failure
#47962: cppcheck @1.69 build failure ------------------------+------------------------ Reporter: dstrubbe@… | Owner: xythobuz@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: cppcheck ------------------------+------------------------ I had the previous version installed, but when upgrading it fails with errors like those below. XCode 5.1.1, OS 10.8.5. {{{ :info:build /usr/bin/clang++ -arch x86_64 -Ilib -Iexternals/tinyxml -DCFGDIR=\"/opt/local/share/cppcheck\" -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -DHAVE_RULES -DTIXML_USE_STL -I/opt/local/include -std=c++0x -c -o lib/checkclass.o lib/checkclass.cpp :info:build In file included from lib/check.cpp:23: :info:build In file included from lib/check.h:27: :info:build In file included from lib/settings.h:29: :info:build lib/library.h:110:56: error: no member named 'cend' in 'std::map<std::basic_string<char>, std::pair<bool, bool>, std::less<std::basic_string<char>>, std::allocator<std::pair<const std::basic_string<char>, std::pair<bool, bool>>>>' :info:build return _formatstr.find(funcname) != _formatstr.cend(); :info:build ~~~~~~~~~~ ^ }}} -- Ticket URL: <https://trac.macports.org/ticket/47962> MacPorts <https://www.macports.org/> Ports system for OS X
#47962: cppcheck @1.69 build failure -------------------------+------------------------ Reporter: dstrubbe@… | Owner: xythobuz@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cppcheck | -------------------------+------------------------ Comment (by xythobuz@…): Hmm, I'm not sure why this is happening. The clang and libc++ included with your XCode version should certainly support the C++11 feature `cend`. Are you sure you don't have any other compilers or standard libraries installed? Could you post the output of `/usr/bin/clang++ --version` -- Ticket URL: <https://trac.macports.org/ticket/47962#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47962: cppcheck @1.69 build failure -------------------------+------------------------ Reporter: dstrubbe@… | Owner: xythobuz@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cppcheck | -------------------------+------------------------ Comment (by dstrubbe@…): Yes I do have various other compilers (gcc, g95, dragonegg, llvm) installed, via macports, though I don't see how they would impact this issue. {{{ $ /usr/bin/clang++ --version Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.6.0 Thread model: posix }}} -- Ticket URL: <https://trac.macports.org/ticket/47962#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47962: cppcheck @1.69 build failure -------------------------+------------------------ Reporter: dstrubbe@… | Owner: xythobuz@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cppcheck | -------------------------+------------------------ Comment (by xythobuz@…): Aha, So you're using LLVM 3.1, which has no full C++11 support. That should be the reason for the error. As far as I know, XCode 5.1.1 should include LLVM 3.3 which has full C++11 support and should be able to compile cppcheck. I'm not sure why your system is not using the XCode compiler, to be honest. -- Ticket URL: <https://trac.macports.org/ticket/47962#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47962: cppcheck @1.69 build failure -------------------------+------------------------ Reporter: dstrubbe@… | Owner: xythobuz@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cppcheck | -------------------------+------------------------ Comment (by dstrubbe@…): I changed the blacklist temporarily to {clang < 600} to make it use macports-clang-3.4, and I got the same error. So, it doesn't seem to be an issue about the compiler per se or even the LLVM version, since this compiler uses LLVM-3.4 according to the dependencies. {{{ $ /opt/local/bin/clang++-mp-3.4 --version clang version 3.4.2 (tags/RELEASE_34/dot2-final) Target: x86_64-apple-darwin12.6.0 Thread model: posix }}} -- Ticket URL: <https://trac.macports.org/ticket/47962#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47962: cppcheck @1.69 build failure -------------------------+------------------------ Reporter: dstrubbe@… | Owner: xythobuz@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cppcheck | -------------------------+------------------------ Comment (by xythobuz@…): I think it's not the compiler that is at fault, but the standard library it is using. That's because the missing symbol is part of the stdlib. Do you think there could be something wrong in this regard? Unfortunately, I was still not able to replicate your error. -- Ticket URL: <https://trac.macports.org/ticket/47962#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47962: cppcheck @1.69 build failure -------------------------+------------------------ Reporter: dstrubbe@… | Owner: xythobuz@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cppcheck | -------------------------+------------------------ Comment (by dstrubbe@…): Yes, it may well be about the stdlib, I am not sure how that would work. I did find many hits on Google for this particular error message, although I didn't see any solution I understood or that seemed applicable here. -- Ticket URL: <https://trac.macports.org/ticket/47962#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47962: cppcheck @1.69 build failure -------------------------+------------------------ Reporter: dstrubbe@… | Owner: xythobuz@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: duplicate | Keywords: Port: cppcheck | -------------------------+------------------------ Changes (by dstrubbe@…): * status: new => closed * resolution: => duplicate Comment: The presence of this ticket seems not to have been noticed when opening and discussing the later ticket #48293. -- Ticket URL: <https://trac.macports.org/ticket/47962#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts