[asterisk-bugs] [JIRA] (ASTERISK-24502) Build fails when dev-mode, dont optimize and coverage are enabled

Corey Farrell (JIRA) noreply at issues.asterisk.org
Wed Nov 12 07:50:29 CST 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Corey Farrell closed ASTERISK-24502.
------------------------------------


> Build fails when dev-mode, dont optimize and coverage are enabled
> -----------------------------------------------------------------
>
>                 Key: ASTERISK-24502
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24502
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem
>    Affects Versions: SVN, 11.13.1, 12.6.1, 13.0.0
>            Reporter: Corey Farrell
>            Assignee: Corey Farrell
>            Severity: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list