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#53089 - [cppcheck] Build without assertions

Attached to Project: Community Packages
Opened by Markus Härer (neo1973) - Sunday, 26 February 2017, 15:30 GMT
Last edited by Jelle van der Waa (jelly) - Thursday, 06 April 2017, 14:44 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

The current binary is compiled with enabled assertions. This slows things down significantly. For comparison checking the lib directory in the Cppcheck sources:

Used command: time cppcheck --enable=warning cppcheck-1.77/lib/

With assertions:

real 1m7,191s
user 1m6,830s
sys 0m0,150s

Without assertions:

real 0m52,804s
user 0m52,547s
sys 0m0,123s

To disable assertions I added this to the PKGBUILD: export CXXFLAGS="$CXXFLAGS -DNDEBUG"

Additional info:
* package version: 1.77-1

   PKGBUILD (1.6 KiB)
This task depends upon

Closed by  Jelle van der Waa (jelly)
Thursday, 06 April 2017, 14:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in cppcheck-1.78-2-x86_64.pkg.tar.xz
Comment by Alexander Koch (lynix) - Thursday, 06 April 2017, 14:05 GMT
So 1.78-1 released without any comment on this. Still building with assertions enabled.
Sad...
Comment by Jelle van der Waa (jelly) - Thursday, 06 April 2017, 14:07 GMT
Well the bug was never assigned to me, so I wasn't aware of it. I'll fix it in a -2

Loading...