Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#38417 - [cppcheck] Fatal error on startup: "Failed to load std.cfg"

Attached to Project: Community Packages
Opened by Mika Attila (SneakySnake) - Wednesday, 08 January 2014, 11:36 GMT
Last edited by Jelle van der Waa (jelly) - Monday, 03 March 2014, 12:06 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
When I invoke cppcheck on any file or directory, I get the following error: "(information) Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled without CFGDIR set. Either the std.cfg should be available in cfg or the CFGDIR should be configured."
Then cppcheck terminates, the file/directory is not checked, rendering cppcheck unusable.

Additional info:
* package version: 1.63.1-1

Steps to reproduce:
Invoke cppcheck on any file or directory.
This task depends upon

Closed by  Jelle van der Waa (jelly)
Monday, 03 March 2014, 12:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in 1.64
Comment by zozi56 (zozi56) - Wednesday, 08 January 2014, 14:12 GMT Comment by Mika Attila (SneakySnake) - Wednesday, 08 January 2014, 14:43 GMT
I checked out the links provided by zozi56, and created a patch that makes the PKGBUILD install the cfg files to /usr/share/cppcheck and tells cppcheck where to find them.

I tested the patch, Cppcheck works with it.
EDIT: Oops, didn't prefix local variable with _, uploaded a second version.
Comment by Jelle van der Waa (jelly) - Wednesday, 08 January 2014, 15:21 GMT
Thanks for the patch, I'm applying it and releasing a -2!
Comment by zozi56 (zozi56) - Thursday, 09 January 2014, 16:41 GMT
I tested the new release, it works now.
Comment by Mika Attila (SneakySnake) - Thursday, 09 January 2014, 19:05 GMT
As a note:
The gui still complains, so I did a little research and it seems that it's an upstream problem.
See here: https://github.com/danmar/cppcheck/commit/803182bf45e943ab3dba1fd2efa45ba2cc8cf5bc
Comment by Jelle van der Waa (jelly) - Tuesday, 14 January 2014, 19:36 GMT
Gui complains, but it seems to work though btw.
Comment by Mika Attila (SneakySnake) - Wednesday, 15 January 2014, 17:51 GMT
The gui problem has been resolved upstream, the next release will embed both the cfg files and the language files in the binary.
Comment by Jelle van der Waa (jelly) - Monday, 03 March 2014, 09:41 GMT
Updated cppcheck yesterday? Is the problem fixed?
Comment by Mika Attila (SneakySnake) - Monday, 03 March 2014, 12:01 GMT
Yes, the new release resolves this issue.

Loading...