[Home]

Summary:ASTERISK-24502: Build fails when dev-mode, dont optimize and coverage are enabled
Reporter:Corey Farrell (coreyfarrell)Labels:
Date Opened:2014-11-06 04:06:29.000-0600Date Closed:2014-11-12 07:49:02.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:SVN 11.13.1 12.6.1 13.0.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When coverage and dev-mode are enabled with DONT_OPTIMIZE, it causes build failure.  The double compilation does a 'shadow' build of each file with output to /dev/null.  Unfortunately when coverage is enabled, GCC tries writing to /dev/null.gcno (at least some versions do).  This prevents the build from proceeding.

The simple fix is to simply prevent COMPILE_DOUBLE when coverage is enabled, that is what I'm proposing here.  The other option would be to use a real output location instead of /dev/null, delete the file immediately after building.  I'm not sure that is needed, so I've proposed the simpler fix.
Comments: