Christopher Collins created MYNEWT-500:

             Summary: newt - Ambiguity when package contains two source files 
with the same filename
                 Key: MYNEWT-500
             Project: Mynewt
          Issue Type: Bug
          Components: Newt
            Reporter: Christopher Collins
            Assignee: Christopher Collins
             Fix For: v1_0_0_rel

For example, the arduino repo (until very recently) contained the following two 

* {{hw/mcu/atmel/samd21xx/src/startup_samd21.c}}

Both of these files are in the same package (hw/mcu/atmel/samd21) and they both 
have the same filename (startup_samd21c).

During a build, newt compiles both, but only links in one object file.

The problem is that the bin directory structure does not mirror that of the 
source tree.  Specifically, all of a package's object files get put in the same 
directory; subtrees are not preserved.  Consequently, the second .o file 
overwrites the first.

The fix is to preserve the source directory structure in the bin directory.

This message was sent by Atlassian JIRA

Reply via email to