This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error: in ld/emultempl/elf32.em:1993:5: error: 'return' with no value, in function returning non-void


On Mon, Jun 11, 2012 at 09:11:24PM -0700, shweta_guptasairam wrote:
> 
> /cygdrive/d/newport/binutils-2.22/binutils-2.22/ld/emultempl/elf32.em: In
> function 'gldelf32_c816_get_script':
> /cygdrive/d/newport/binutils-2.22/binutils-2.22/ld/emultempl/elf32.em:1993:5:
> error: 'return' with no value, in function returning non-void
> /cygdrive/d/newport/binutils-2.22/binutils-2.22/ld/emultempl/elf32.em:1994:37:
> error: 'return' with no value, in function returning non-void
> /cygdrive/d/newport/binutils-2.22/binutils-2.22/ld/emultempl/elf32.em:1995:38:
> error: 'return' with no value, in function returning non-void
> /cygdrive/d/newport/binutils-2.22/binutils-2.22/ld/emultempl/elf32.em:1996:42:
> error: 'return' with no value, in function returning non-void
> /cygdrive/d/newport/binutils-2.22/binutils-2.22/ld/emultempl/elf32.em:1997:10:
> error: 'return' with no value, in function returning non-void
> Makefile:1421: recipe for target `eelf32_c816.o' failed
> make[4]: *** [eelf32_c816.o] Error 1
> make[4]: Leaving directory `/cygdrive/d/newport/build1/ld'
> Makefile:1644: recipe for target `all-recursive' failed
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/cygdrive/d/newport/build1/ld'
> Makefile:911: recipe for target `all' failed
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/cygdrive/d/newport/build1/ld'
> Makefile:7015: recipe for target `all-ld' failed
> make[1]: *** [all-ld] Error 2
> make[1]: Leaving directory `/cygdrive/d/newport/build1'
> Makefile:842: recipe for target `all' failed
> make: *** [all] Error 2
> 
> I am getting this error when i port fresh binutil-2.22 for a new target in
> ld.  please give me the solution of this error

Work backwards from the "make" error.  In this case, look at the
makefile to see how eelf32_c816.o is made.  You'll find its source is
eelf32_c816.c, so look at that file and verify that the function in
question really does have errors.  Then look at make output and/or
the makefile to see how eelf32_c816.c is generated.  Match up
gldelf32_c816_get_script with the relevant source in elf32.em.  Figure
out what shell variable you have incorrectly defined.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]