[Bug 2071] New: The object-file suffixes for default-bsp-post-link in leaf.cfg don't work with make-exe...

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Jun 21 17:26:35 UTC 2012


             Bug #: 2071
           Summary: The object-file suffixes for default-bsp-post-link in
                    leaf.cfg don't work with make-exe...
    Classification: Unclassified
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: build
        AssignedTo: ralf.corsepius at rtems.org
        ReportedBy: cynt6007 at vandals.uidaho.edu

Would it be proper to change the suffix of the input in default-bsp-post-link
in rtems/make/leaf.cfg ?

Namely changing:

define default-bsp-post-link 
-        $(NM) -g -n $@ > $(basename $@).num 
-        $(SIZE) $@

define default-bsp-post-link 
+        $(NM) -g -n $@.o > $(basename $@).num 
+        $(SIZE) $@.o 

I'm working on the application side of RTEMS (as opposed to the source), but
here are the errors I encountered, what I did to find the problem, and the

I kept getting errors when I ran the BuildTests.sh... 

i386-rtems4.11-nm o-optimize/slapd-addel 
i386-rtems4.11-nm: 'o-optimize/slapd-addel': No such file
i386-rtems4.11-size o-optimize/slapd-addel 
i386-rtems4.11-size: 'o-optimize/slapd-addel': No such file

After looking at the Makefile it looks like they were called by: “make-exe”.

    grep -r “make-exe” /opt
revealed “make-exe” is defined in /opt/rtems-4.11/make/leaf.cfg, which calls
bsp-post-link, (which is exactly the stage of the build process giving errors).

According to man, nm and size work on object files.  So, I changed the suffixes
in /opt/rtems-4.11/make/leaf.cfg and the errors went away.  After making the
change, the following additional objects appeared in o-optimize:

*.bin and *.ralf, with an approximate size of 570,000.  The sizes vary

If changing the suffixes in /opt/rtems-4.11/make/leaf.cfg makes sense, would it
make sense to change them for rtems/make/leaf.cfg ?  Also, there are other
target.cfg's in the different bsp s that may have similar problems.

Cynthia Rempel

Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the bugs mailing list