objcopy on the sample "hello" program

Harris, Andrew Andrew.Harris at jhuapl.edu
Sat Aug 23 22:29:33 UTC 2003

Hi -

	I'm trying to build the mcp750 BSP and things seem to be going well
until I get to "Making all in samples".  It appears that the makefile is
giving a bad argument to powerpc-rtems-objcopy 
(?).  The help for objcopy says the arguments should come before the
options, but it looks like the makefile is putting the input file before the

When I did the "configure" step, I did:

configure --prefix=/project/autonomy/tools/rtems-powerpc --enable-rdbg
--enable-cxx -enable-tests --target=powerpc-rtems

I included output below:

Making install in samples
gmake[4]: Entering directory
Making install in hello
gmake[5]: Entering directory
powerpc-rtems-gcc --pipe -B../../../../../lib/
-B../../../../../mvme2307/lib/ -specs bsp_specs -qrtems -mcpu=604 -mmultiple
-mstring -mstrict-align -meabi -msdata=eabi  -O4 -g -Wall -ansi -fasm
-o o-optimize/hello.nxe o-optimize/init.o
../../../../../mvme2307/lib/no-msg.rel ../../../../../mvme2307/lib/no-mp.rel
powerpc-rtems-nm -g -n o-optimize/hello.nxe > o-optimize/hello.num
powerpc-rtems-size o-optimize/hello.nxe
   text    data     bss     dec     hex filename
 147280    9836   46201  203317   31a35 o-optimize/hello.nxe
powerpc-rtems-objcopy o-optimize/hello.nxe rtems -O binary -R .comment -S
Usage: powerpc-rtems-objcopy [option(s)] in-file [out-file]
 Copies a binary file, possibly transforming it in the process
 The options are:
  -I --input-target <bfdname>      Assume input file is in format <bfdname>
  -O --output-target <bfdname>     Create an output file in format <bfdname>
  -B --binary-architecture <arch>  Set arch of output file, when input is
  -V --version                     Display this program's version number
  -h --help                        Display this output
powerpc-rtems-objcopy: supported targets: elf32-powerpc aixcoff-rs6000
elf32-powerpcle ppcboot elf32-little elf32-big srec symbolsrec tekhex binary
gmake[5]: *** [o-optimize/hello.exe] Error 1
gmake[5]: Leaving directory
gmake[4]: *** [install-recursive] Error 1
gmake[4]: Leaving directory
gmake[3]: *** [install-recursive] Error 1
gmake[3]: Leaving directory
gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory
gmake: *** [install-recursive] Error 1
[harriaj1 at pryor]$
[harriaj1 at pryor]$

Any help would be appreciated!


Andrew Harris        andrew.harris at jhuapl.edu
JHU/APL              (443) 778-3093 

More information about the users mailing list