public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "David Fernandez" <david.fernandez.work@googlemail.com>
To: insight@sourceware.org
Subject: Problems building insight-6.8... and the solution.
Date: Tue, 20 May 2008 15:01:00 -0000	[thread overview]
Message-ID: <ea104e1b0805200800t5b8f06d5u22ce92e2352269fe@mail.gmail.com> (raw)
In-Reply-To: <ea104e1b0805140633o409a276bu5682f0128361aa82@mail.gmail.com>

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

       reply	other threads:[~2008-05-20 15:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ea104e1b0805140633o409a276bu5682f0128361aa82@mail.gmail.com>
2008-05-20 15:01 ` David Fernandez [this message]
2008-05-22 17:41   ` Keith Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ea104e1b0805200800t5b8f06d5u22ce92e2352269fe@mail.gmail.com \
    --to=david.fernandez.work@googlemail.com \
    --cc=insight@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).