From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27815 invoked by alias); 20 May 2008 15:01:17 -0000 Received: (qmail 27792 invoked by uid 22791); 20 May 2008 15:01:10 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.245) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 May 2008 15:00:43 +0000 Received: by rv-out-0708.google.com with SMTP id b17so1763368rvf.48 for ; Tue, 20 May 2008 08:00:41 -0700 (PDT) Received: by 10.140.226.14 with SMTP id y14mr4498575rvg.24.1211295641722; Tue, 20 May 2008 08:00:41 -0700 (PDT) Received: by 10.141.29.2 with HTTP; Tue, 20 May 2008 08:00:41 -0700 (PDT) Message-ID: Date: Tue, 20 May 2008 15:01:00 -0000 From: "David Fernandez" To: insight@sourceware.org Subject: Problems building insight-6.8... and the solution. In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00078.txt.bz2 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