* [Build-failure] elf32-score.c compilation warning
@ 2009-03-19 7:49 Pierre Muller
2009-03-19 10:04 ` Dave Korn
2009-03-19 13:49 ` brain.lin
0 siblings, 2 replies; 3+ messages in thread
From: Pierre Muller @ 2009-03-19 7:49 UTC (permalink / raw)
To: binutils, gdb-patches
Building gdb with
--enable-targets=all
but without --enable-64-bit-bfd
on cygwin (windows 32 bits).
I get a bfd compilation error,
that does not appear with
--enable-64-bit-bfd.
I think that there is a configuration problem
for elf32-score:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../purecvs/bfd -I. -I.
-I../../p
urecvs/bfd -I../../purecvs/bfd/../include -W -Wall -Wstrict-prototypes
-Wmissing
-prototypes -Werror -g -O2 -c ../../purecvs/bfd/elf32-score.c -o
elf32-score.o
../../purecvs/bfd/elf32-score.c: In function `score3_bfd_putl48':
../../purecvs/bfd/elf32-score.c:290: warning: right shift count >= width of
type
There other errors are at the end of the email.
The corresponding lines do shifts of 32 or 48 bits,
which is indeed too large for 32 bit addresses,
so these addresses are probably 64 bit, no?
Pierre Muller
Pascal language support maintainer for GDB
../../purecvs/bfd/elf32-score.c:291: warning: right shift count >= width of
type
../../purecvs/bfd/elf32-score.c: At top level:
../../purecvs/bfd/elf32-score.c:957: warning: large integer implicitly
truncated
to unsigned type
../../purecvs/bfd/elf32-score.c:957: warning: large integer implicitly
truncated
to unsigned type
../../purecvs/bfd/elf32-score.c:972: warning: large integer implicitly
truncated
to unsigned type
../../purecvs/bfd/elf32-score.c:972: warning: large integer implicitly
truncated
to unsigned type
../../purecvs/bfd/elf32-score.c: In function
`score_elf_final_link_relocate':
../../purecvs/bfd/elf32-score.c:2199: warning: right shift count >= width of
typ
e
../../purecvs/bfd/elf32-score.c:2212: warning: left shift count >= width of
type
../../purecvs/bfd/elf32-score.c:2226: warning: right shift count >= width of
typ
e
../../purecvs/bfd/elf32-score.c:2232: warning: left shift count >= width of
type
../../purecvs/bfd/elf32-score.c: In function
`s3_bfd_score_elf_relocate_section'
:
../../purecvs/bfd/elf32-score.c:2521: warning: right shift count >= width of
typ
e
../../purecvs/bfd/elf32-score.c:2530: warning: left shift count >= width of
type
../../purecvs/bfd/elf32-score.c:2541: warning: right shift count >= width of
typ
e
../../purecvs/bfd/elf32-score.c:2557: warning: left shift count >= width of
type
make[3]: *** [elf32-score.lo] Error 1
make[3]: Leaving directory `/usr/local/src/gdbcvs/multibuild32/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/gdbcvs/multibuild32/bfd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/gdbcvs/multibuild32/bfd'
make: *** [all-bfd] Error 2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Build-failure] elf32-score.c compilation warning
2009-03-19 7:49 [Build-failure] elf32-score.c compilation warning Pierre Muller
@ 2009-03-19 10:04 ` Dave Korn
2009-03-19 13:49 ` brain.lin
1 sibling, 0 replies; 3+ messages in thread
From: Dave Korn @ 2009-03-19 10:04 UTC (permalink / raw)
To: Pierre Muller; +Cc: binutils, gdb-patches
Pierre Muller wrote:
> Building gdb with
> --enable-targets=all
> but without --enable-64-bit-bfd
> on cygwin (windows 32 bits).
> I get a bfd compilation error,
> that does not appear with
> --enable-64-bit-bfd.
>
> I think that there is a configuration problem
> for elf32-score:
> ../../purecvs/bfd/elf32-score.c: In function `score3_bfd_putl48':
> ../../purecvs/bfd/elf32-score.c:290: warning: right shift count >= width of
> type
http://sourceware.org/ml/binutils/2009-03/threads.html#00236
cheers,
DaveK
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Build-failure] elf32-score.c compilation warning
2009-03-19 7:49 [Build-failure] elf32-score.c compilation warning Pierre Muller
2009-03-19 10:04 ` Dave Korn
@ 2009-03-19 13:49 ` brain.lin
1 sibling, 0 replies; 3+ messages in thread
From: brain.lin @ 2009-03-19 13:49 UTC (permalink / raw)
To: Pierre Muller; +Cc: binutils, gdb-patches
"Pierre Muller" <muller@ics.u-strasbg.fr>
Sent by: binutils-owner@sourceware.org
2009-03-19 15:36
To
<binutils@sourceware.org>, <gdb-patches@sourceware.org>
cc
Subject
[Build-failure] elf32-score.c compilation warning
Hi Pierre,
there are some 48-bits instructions in the new score target. so ,It
must add "--enable-64-bit-bfd " to the configure command if your gdb's
version is 6.8. The last gdb and binutils already added the option to
configure file. please checkout the lastly version from binutils.org.
Cheers
brain
Building gdb with
--enable-targets=all
but without --enable-64-bit-bfd.
on cygwin (windows 32 bits).
I get a bfd compilation error,
that does not appear with
--enable-64-bit-bfd.
I think that there is a configuration problem
for elf32-score:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../purecvs/bfd -I. -I.
-I../../p
urecvs/bfd -I../../purecvs/bfd/../include -W -Wall -Wstrict-prototypes
-Wmissing
-prototypes -Werror -g -O2 -c ../../purecvs/bfd/elf32-score.c -o
elf32-score.o
../../purecvs/bfd/elf32-score.c: In function `score3_bfd_putl48':
../../purecvs/bfd/elf32-score.c:290: warning: right shift count >= width
of
type
There other errors are at the end of the email.
The corresponding lines do shifts of 32 or 48 bits,
which is indeed too large for 32 bit addresses,
so these addresses are probably 64 bit, no?
Pierre Muller
Pascal language support maintainer for GDB
../../purecvs/bfd/elf32-score.c:291: warning: right shift count >= width
of
type
../../purecvs/bfd/elf32-score.c: At top level:
../../purecvs/bfd/elf32-score.c:957: warning: large integer implicitly
truncated
to unsigned type
../../purecvs/bfd/elf32-score.c:957: warning: large integer implicitly
truncated
to unsigned type
../../purecvs/bfd/elf32-score.c:972: warning: large integer implicitly
truncated
to unsigned type
../../purecvs/bfd/elf32-score.c:972: warning: large integer implicitly
truncated
to unsigned type
../../purecvs/bfd/elf32-score.c: In function
`score_elf_final_link_relocate':
../../purecvs/bfd/elf32-score.c:2199: warning: right shift count >= width
of
typ
e
../../purecvs/bfd/elf32-score.c:2212: warning: left shift count >= width
of
type
../../purecvs/bfd/elf32-score.c:2226: warning: right shift count >= width
of
typ
e
../../purecvs/bfd/elf32-score.c:2232: warning: left shift count >= width
of
type
../../purecvs/bfd/elf32-score.c: In function
`s3_bfd_score_elf_relocate_section'
:
../../purecvs/bfd/elf32-score.c:2521: warning: right shift count >= width
of
typ
e
../../purecvs/bfd/elf32-score.c:2530: warning: left shift count >= width
of
type
../../purecvs/bfd/elf32-score.c:2541: warning: right shift count >= width
of
typ
e
../../purecvs/bfd/elf32-score.c:2557: warning: left shift count >= width
of
type
make[3]: *** [elf32-score.lo] Error 1
make[3]: Leaving directory `/usr/local/src/gdbcvs/multibuild32/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/gdbcvs/multibuild32/bfd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/gdbcvs/multibuild32/bfd'
make: *** [all-bfd] Error 2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-19 10:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-19 7:49 [Build-failure] elf32-score.c compilation warning Pierre Muller
2009-03-19 10:04 ` Dave Korn
2009-03-19 13:49 ` brain.lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox