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

Matt Jordan (JIRA) noreply at issues.asterisk.org
Mon Dec 8 11:26:38 CST 2014


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

Matt Jordan updated ASTERISK-24502:
-----------------------------------

    Target Release Version/s: 12.8.0

> 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
>      Target Release: 11.15.0, 12.8.0
>
>
> 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