Subject: errors while compiling readelf
To: None <tech-toolchain@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-toolchain
Date: 07/08/2003 04:09:49
I'm compiling the tree with gcc 3.3 (FreeBSD/i386 host, NetBSD/hpcsh
taret) and I get this:

/export/netbsd/xtools/bin/shle--netbsdelf-gcc -pipe -O   -Werror   -I/nb/src/gnu/usr.bin/binutils/readelf/../common/arch/sh3el -DHAVE_CONFIG_H -D_GNU_SOURCE -Dbin_dummy_emulation=bin_vanilla_emulation -I/binutils -I/binutils -I/binutils/../bfd -I/binutils/../include -I/binutils/../intl  -I/nb/src/gnu/lib/libbfd/arch/sh3el  -I/nb/src/gnu/usr.bin/binutils/readelf/../../../dist/toolchain/include -I/nb/src/gnu/usr.bin/binutils/readelf/../../../dist/toolchain/bfd -I/nb/src/gnu/usr.bin/binutils/readelf/../../../dist/toolchain/binutils  -DLOCALEDIR=\"/usr/share/locale\" -nostdinc -isystem /usr/nb/hpcsh/distrib/usr/include  -c /nb/src/gnu/dist/toolchain/binutils/readelf.c
/nb/src/gnu/dist/toolchain/binutils/readelf.c: In function `dump_ia64_unwind':
/nb/src/gnu/dist/toolchain/binutils/readelf.c:3846: warning: integer constant is too large for "long" type
/nb/src/gnu/dist/toolchain/binutils/readelf.c:3847: warning: integer constant is too large for "long" type
/nb/src/gnu/dist/toolchain/binutils/readelf.c:3848: warning: integer constant is too large for "long" type
*** Error code 1

Which is caused by these constants in
gnu/dist/toolchain/binutils/unwind-ia64.h

#define UNW_FLAG_MASK		0x0000ffff00000000
#define UNW_FLAG_OSMASK		0x0000f00000000000
#define UNW_FLAG_EHANDLER(x)	((x) & 0x0000000100000000L)
#define UNW_FLAG_UHANDLER(x)	((x) & 0x0000000200000000L)

I wonder if those constans should be made long long by suffixing LL to
them.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen