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

Corey Farrell (JIRA) noreply at issues.asterisk.org
Thu Nov 6 04:08:29 CST 2014


Corey Farrell created ASTERISK-24502:
----------------------------------------

             Summary: 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: 13.0.0, 12.6.1, 11.13.1, SVN
            Reporter: 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