Opened 10 years ago

Closed 10 years ago

#45924 closed defect (invalid)

cppcheck "Failed to load std.cfg" error

Reported by: digitalriptide@… Owned by: xythobuz@…
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc:
Port: cppcheck

Description

When attempting to run cppcheck @1.67 (devel) I obtain the following error:

(information) Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled with CFGDIR set to "/opt/local/share/cppcheck" and will therefore search for std.cfg in that path.

/opt/local/share/cppcheck/std.cfg exists with permissions -rw-r--r-- and is readable by the user (verified by running cat /opt/local/share/cppcheck/std.cfg from the user account attempting to execute cppcheck). Reinstalling cppcheck does not resolve this issue. Currently running on OS X Mavericks 10.9.5.

Change History (5)

comment:1 Changed 10 years ago by digitalriptide@…

Cc: digitalriptide@… added

Cc Me!

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: digitalriptide@… removed
Owner: changed from macports-tickets@… to xythobuz@…
Port: cppcheck added

comment:3 Changed 10 years ago by xythobuz@…

Unfortunately I can not reproduce the problem.

But cppcheck will also print this error message if std.cfg has invalid content (eg. corruption while downloading?). You could try and replace your std.cfg with the most current one from GitHub (https://github.com/danmar/cppcheck/blob/master/cfg/std.cfg) to see if this fixes your problem...

comment:4 Changed 10 years ago by digitalriptide@…

That resolved the issue, thank you! I'm not sure why the file would have been invalid.

comment:5 Changed 10 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.