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
options.
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
`/project/autonomy/tools/gcc-3.2.2-powerpc/tools/b-rtems/powerpc-rtems/c/mvm
e2307/tests/samples'
Making install in hello
gmake[5]: Entering directory
`/project/autonomy/tools/gcc-3.2.2-powerpc/tools/b-rtems/powerpc-rtems/c/mvm
e2307/tests/samples/hello'
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-dpmem.rel
../../../../../mvme2307/lib/no-event.rel
../../../../../mvme2307/lib/no-msg.rel ../../../../../mvme2307/lib/no-mp.rel
../../../../../mvme2307/lib/no-part.rel
../../../../../mvme2307/lib/no-signal.rel
../../../../../mvme2307/lib/no-timer.rel
../../../../../mvme2307/lib/no-rtmon.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
binary
...
[snip]
...
-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
ihex
gmake[5]: *** [o-optimize/hello.exe] Error 1
gmake[5]: Leaving directory
`/project/autonomy/tools/gcc-3.2.2-powerpc/tools/b-rtems/powerpc-rtems/c/mvm
e2307/tests/samples/hello'
gmake[4]: *** [install-recursive] Error 1
gmake[4]: Leaving directory
`/project/autonomy/tools/gcc-3.2.2-powerpc/tools/b-rtems/powerpc-rtems/c/mvm
e2307/tests/samples'
gmake[3]: *** [install-recursive] Error 1
gmake[3]: Leaving directory
`/project/autonomy/tools/gcc-3.2.2-powerpc/tools/b-rtems/powerpc-rtems/c/mvm
e2307/tests'
gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory
`/project/autonomy/tools/gcc-3.2.2-powerpc/tools/b-rtems/powerpc-rtems/c/mvm
e2307'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory
`/project/autonomy/tools/gcc-3.2.2-powerpc/tools/b-rtems/powerpc-rtems/c'
gmake: *** [install-recursive] Error 1
[harriaj1 at pryor]$
[harriaj1 at pryor]$
Any help would be appreciated!
thanks,
-andrew
---
Andrew Harris andrew.harris at jhuapl.edu
JHU/APL (443) 778-3093
More information about the users
mailing list