This is the mail archive of the insight@sourceware.org mailing list for the Insight 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]

Problems building insight-6.8... and the solution.


Hi there,

I'm building insight-6.8 in a SPARC running Solaris:
   bash-3.2$ uname -a
   SunOS serv21 5.9 Generic_122300-17 sun4u sparc SUNW,Sun-Fire-V215 Solaris

using gcc:
   bash-3.2$ gcc --version
   gcc (GCC) 4.1.2
   Copyright (C) 2006 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I'm configuring it as:
   bash-3.2$ PATH=$HOME/DF/local/bin:$PATH ~/DF/src/insight-6.8/configure \
   --target=arm-elf --prefix=$HOME/DF/local -v 2>&1 | tee configure.out

and making as:
   bash-3.2$ PATH=$HOME/DF/local/bin:$PATH make -w all install 2>&1 |
tee make.out

Which gives an error:
...
gcc -c -g -O2   -I.
-I/home/terminals/fernandezd/DF/src/insight-6.8/gdb
-I/home/terminals/fernandezd/DF/src/insight-6.8/gdb/config
-DLOCALEDIR="\"/home/terminals/fernandezd/DF/local/share/locale\""
-DHAVE_CONFIG_H
-I/home/terminals/fernandezd/DF/src/insight-6.8/gdb/../include/opcode
-I/home/terminals/fernandezd/DF/src/insight-6.8/gdb/../readline/..
-I../bfd -I/home/terminals/fernandezd/DF/src/insight-6.8/gdb/../bfd
-I/home/terminals/fernandezd/DF/src/insight-6.8/gdb/../include
-I../libdecnumber
-I/home/terminals/fernandezd/DF/src/insight-6.8/gdb/../libdecnumber
-DMI_OUT=1 -DGDBTK -DTUI=1  -Wall -Wdeclaration-after-statement
-Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused
-Wno-switch -Wno-char-subscripts -Werror
/home/terminals/fernandezd/DF/src/insight-6.8/gdb/remote.c
cc1: warnings being treated as errors
/home/terminals/fernandezd/DF/src/insight-6.8/gdb/remote.c: In
function 'extended_remote_attach_1':
/home/terminals/fernandezd/DF/src/insight-6.8/gdb/remote.c:2859:
warning: format '%x' expects type 'unsigned int', but argument 3 has
type 'pid_t'
make[2]: *** [remote.o] Error 1
make[2]: Leaving directory
`/home/terminals/fernandezd/DF/build/toolchain/insight/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory
`/home/terminals/fernandezd/DF/build/toolchain/insight'
make: *** [all] Error 2
make: Leaving directory `/home/terminals/fernandezd/DF/build/toolchain/insight'

If you add (unsigned int) cast to the pid parameter then everything works.

Let me know if you want more detailed logs.

Cheers
David Fernandez


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