locked
Wrong build warning issued RRS feed

  • Question

  • When I have multiple files with the same name, but mutually exclusive (by a "Excluded from Build" setting to YES or NO depending on target), I get a warning:

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(935,5): warning MSB8027: Two or more files with the name of truncate.c will produce outputs to the same location. This can lead to an incorrect build result.  The files involved are ext\apfloat\32\truncate.c, ext\apfloat\64\truncate.c.

    This warning is caused by two bugs:

    a) The build checker should check the "Excluded from Build" settings, these might depend on the output format (as you see above, 32 or 64 bit target).

    b) The statement "will produce outputs to the same location" is plain wrong as the output location is target dependent, so the output will never be to the same location. Possibly the global settings (like $(Platform)) are not evaluated prior to checking?

    Christian

    (This message appears only in VS 2013, the previous ones did not complain)

    PS: Point (a) has already been issued in http://connect.microsoft.com/VisualStudio/feedback/details/797460/incorrect-warning-msb8027-reported-for-files-excluded-from-build, but is not solved (Update 1 still has that problem), and you could possibly check (b) also?)

    • Edited by chksr Monday, March 10, 2014 8:21 AM
    Monday, March 10, 2014 8:10 AM

Answers

  • Hi,

    Thank you for pointing out this!

    Please reopen this issue in connect and provide your detailed information there.

    Thank you for your understanding!

    Best regards,

    Sunny

    • Marked as answer by Anna Cc Tuesday, March 18, 2014 2:39 AM
    Tuesday, March 11, 2014 2:51 AM