[binutils] Error: peigen.c:676:34: error: invalid suffix "ch0000" on integer constant

View: New views
4 Messages — Rating Filter:   Alert me  

[binutils] Error: peigen.c:676:34: error: invalid suffix "ch0000" on integer constant

by Sedat Dilek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I was compiling latest binutils-2.20.51 (08-Nov-2009) on a Debian/sid
32-bit host and my build is broken.

From the build-log:
...
mv -f .deps/pei-i386.Tpo .deps/pei-i386.Plo
rm -f peigen.c
sed -e s/XX/pe/g < ../../bfd/peXXigen.c > peigen.new
mv -f peigen.new peigen.c
/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../bfd -DTRAD_CORE                          -I. -I../../bfd
-I../../bfd/../include   -DBINDIR='"/usr/bin"'  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT peigen.lo
-MD -MP -MF .deps/peigen.Tpo -c -o peigen.lo peigen.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -DTRAD_CORE -I.
-I../../bfd -I../../bfd/../include -DBINDIR=\"/usr/bin\" -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT peigen.lo
-MD -MP -MF .deps/peigen.Tpo -c peigen.c  -fPIC -DPIC -o
.libs/peigen.o
peigen.c:676:34: error: invalid suffix "ch0000" on integer constant
peigen.c:676:34: error: invalid suffix "ch0000" on integer constant
make[5]: *** [peigen.lo] Error 1
make[5]: Leaving directory
`/home/sd/src/binutils/binutils-2.20.51.20091108/builddir-multi/bfd'

Below, I have some additional informations to my build-environment.
Hope this helps.

Kind Regards,
- Sedat -

P.S.: Additional informations:

[1] $ gcc --version
gcc (Debian 4.3.4-6) 4.3.4
[2] $ ld --version
GNU ld (GNU Binutils for Debian) 2.20
[3] eglibc (2.10.1-5)
[4} Linux-kernel: 2.6.32-rc6-git3

Re: [binutils] Error: peigen.c:676:34: error: invalid suffix "ch0000" on integer constant

by Alan Modra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Nov 08, 2009 at 07:18:25PM +0100, Sedat Dilek wrote:
> peigen.c:676:34: error: invalid suffix "ch0000" on integer constant

What does your build directory bfd/bfdver.h file contain?

--
Alan Modra
Australia Development Lab, IBM

Re: [binutils] Error: peigen.c:676:34: error: invalid suffix "ch0000" on integer constant

by Sedat Dilek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 9, 2009 at 12:34 AM, Alan Modra <amodra@...> wrote:
> On Sun, Nov 08, 2009 at 07:18:25PM +0100, Sedat Dilek wrote:
>> peigen.c:676:34: error: invalid suffix "ch0000" on integer constant
>
> What does your build directory bfd/bfdver.h file contain?
>

$ cd ~/src/binutils/binutils-2.20.51.20091108

$ find ./ -name bfdver.h
./builddir-multi/bfd/bfdver.h
./builddir-single/bfd/bfdver.h

$ cat ./builddir-multi/bfd/bfdver.h
#define BFD_VERSION_DATE 20091108
#define BFD_VERSION 220ch0000
#define BFD_VERSION_STRING  "(GNU Binutils for Debian) "
"2.20.51-multiarch.20091108"
#define REPORT_BUGS_TO "<http://www.sourceware.org/bugzilla/>"

$ cat ./builddir-single/bfd/bfdver.h
#define BFD_VERSION_DATE 20091108
#define BFD_VERSION 220510000
#define BFD_VERSION_STRING  "(GNU Binutils for Debian) " "2.20.51.20091108"
#define REPORT_BUGS_TO "<http://www.sourceware.org/bugzilla/>"

Oops :-)
#define BFD_VERSION 220ch0000 <--- faulty one
#define BFD_VERSION 220510000

Regards,
- Sedat -

Re: [binutils] Error: peigen.c:676:34: error: invalid suffix "ch0000" on integer constant

by Alan Modra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 09, 2009 at 01:46:25AM +0100, Sedat Dilek wrote:
> #define BFD_VERSION_STRING  "(GNU Binutils for Debian) "
> "2.20.51-multiarch.20091108"
[snip]
> #define BFD_VERSION 220ch0000 <--- faulty one

You get to fix it then, since it looks like you broke it by modifying
the bfd version.  (If it wasn't you, then notify the people who
provided you with binutils source.)

--
Alan Modra
Australia Development Lab, IBM