From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2259 invoked by alias); 3 Oct 2003 14:22:12 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 2252 invoked from network); 3 Oct 2003 14:22:09 -0000 Received: from unknown (HELO deimos.frii.net) (216.17.128.193) by sources.redhat.com with SMTP; 3 Oct 2003 14:22:09 -0000 Received: from canoli (oriondc.dsl.frii.net [216.17.139.85]) by deimos.frii.net (8.12.10/8.12.10) with SMTP id h93EM77u027673 for ; Fri, 3 Oct 2003 08:22:08 -0600 (MDT) Message-ID: <001b01c389b9$b9f5e1c0$4600000a@canoli> From: "Marc Schafer" To: Subject: Fw: help building for powerpc-eabi under cygwin Date: Fri, 03 Oct 2003 14:22:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-q4/txt/msg00012.txt.bz2 The problem appears to be the use of FILE_EXISTS in the enumerant in tclCmdAH.c this is already #defined in some other header. i changed it to FOO_FILE_EXISTS everywhere in that c file and the build seems to work. marc ----- Original Message ----- From: "Marc Schafer" To: Sent: Friday, October 03, 2003 7:33 AM Subject: help building for powerpc-eabi under cygwin > I have already configured and built the following for powerpc-eabi: > binutils 2.14 > gcc 3.3.1 > newlib 1.11 > > I have not been able to build Insight. I checked the code out from cvs as described on the readme page for cygwin. I > did not use the branch but took the latest version instead. The 2003-02-05 update made it sound like it was no longer > necessary to revert the tcl/tk parts so I skipped steps 2 and 3. The build failed in the tcl stuff, so I went back and > performed step 2 and then tried configuring and building again. > > It fails in exactly the same place during the tcl build. The last few lines of the make output are attached. > > Can you tell me how to fix this problem? > > thanks, > marc > > > checking for putenv... (cached) yes > checking for setenv... (cached) yes > checking for setlocale... (cached) yes > checking for strchr... (cached) yes > checking for strcasecmp... (cached) yes > checking for __argz_count... (cached) yes > checking for __argz_stringify... (cached) yes > checking for __argz_next... (cached) yes > checking for LC_MESSAGES... (cached) yes > checking whether NLS is requested... yes > checking whether included gettext is requested... no > checking for libintl.h... (cached) yes > checking for gettext in libc... (cached) no > checking for bindtextdomain in -lintl... (cached) yes > checking for gettext in libintl... (cached) no > checking for msgfmt... (cached) /bin/msgfmt > checking for gmsgfmt... (cached) /bin/msgfmt > checking for xgettext... (cached) /bin/xgettext > checking for catalogs to be installed... fr sv tr es da de id pt_BR ro nl > checking for a BSD compatible install... /bin/install -c > checking for string.h... (cached) yes > checking for strings.h... (cached) yes > checking for stdlib.h... (cached) yes > updating cache .././config.cache > creating ./config.status > creating Makefile > creating po/Makefile.in > creating config.h > make[1]: Entering directory `/tmp/build/cvs-insight/build/opcodes' > make all-recursive > make[2]: Entering directory `/tmp/build/cvs-insight/build/opcodes' > Making all in po > make[3]: Entering directory `/tmp/build/cvs-insight/build/opcodes/po' > make[3]: Nothing to be done for `all'. > make[3]: Leaving directory `/tmp/build/cvs-insight/build/opcodes/po' > make[3]: Entering directory `/tmp/build/cvs-insight/build/opcodes' > /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. > -D_GNU_SOURCE -I. -I../../src/opcodes -I../bfd -I../../src/opcodes/../include - > I../../src/opcodes/../bfd -I../../src/opcodes/../intl -I../intl -W -Wall -Wst > rict-prototypes -Wmissing-prototypes -g -O2 -c ../../src/opcodes/dis-buf.c > gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. -D_GNU_SOURCE -I. -I../../src/op > codes -I../bfd -I../../src/opcodes/../include -I../../src/opcodes/../bfd -I../.. > /src/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes > -g -O2 -c ../../src/opcodes/dis-buf.c -o dis-buf.o > /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. > -D_GNU_SOURCE -I. -I../../src/opcodes -I../bfd -I../../src/opcodes/../include - > I../../src/opcodes/../bfd -I../../src/opcodes/../intl -I../intl -W -Wall -Wst > rict-prototypes -Wmissing-prototypes -g -O2 -c -DARCH_rs6000 -DARCH_powerpc ../ > ../src/opcodes/disassemble.c > gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. -D_GNU_SOURCE -I. -I../../src/op > codes -I../bfd -I../../src/opcodes/../include -I../../src/opcodes/../bfd -I../.. > /src/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes > -g -O2 -c -DARCH_rs6000 -DARCH_powerpc ../../src/opcodes/disassemble.c -o disas > semble.o > /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. > -D_GNU_SOURCE -I. -I../../src/opcodes -I../bfd -I../../src/opcodes/../include - > I../../src/opcodes/../bfd -I../../src/opcodes/../intl -I../intl -W -Wall -Wst > rict-prototypes -Wmissing-prototypes -g -O2 -c ../../src/opcodes/dis-init.c > gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. -D_GNU_SOURCE -I. -I../../src/op > codes -I../bfd -I../../src/opcodes/../include -I../../src/opcodes/../bfd -I../.. > /src/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes > -g -O2 -c ../../src/opcodes/dis-init.c -o dis-init.o > /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. > -D_GNU_SOURCE -I. -I../../src/opcodes -I../bfd -I../../src/opcodes/../include - > I../../src/opcodes/../bfd -I../../src/opcodes/../intl -I../intl -W -Wall -Wst > rict-prototypes -Wmissing-prototypes -g -O2 -c ../../src/opcodes/ppc-dis.c > gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. -D_GNU_SOURCE -I. -I../../src/op > codes -I../bfd -I../../src/opcodes/../include -I../../src/opcodes/../bfd -I../.. > /src/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes > -g -O2 -c ../../src/opcodes/ppc-dis.c -o ppc-dis.o > /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. > -D_GNU_SOURCE -I. -I../../src/opcodes -I../bfd -I../../src/opcodes/../include - > I../../src/opcodes/../bfd -I../../src/opcodes/../intl -I../intl -W -Wall -Wst > rict-prototypes -Wmissing-prototypes -g -O2 -c ../../src/opcodes/ppc-opc.c > gcc -DHAVE_CONFIG_H -I. -I../../src/opcodes -I. -D_GNU_SOURCE -I. -I../../src/op > codes -I../bfd -I../../src/opcodes/../include -I../../src/opcodes/../bfd -I../.. > /src/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes > -g -O2 -c ../../src/opcodes/ppc-opc.c -o ppc-opc.o > /bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototy > pes -g -O2 -o libopcodes.la -rpath /usr/local/tools/i686-pc-cygwin/powerpc-eabi > /lib -release 2.14.90 dis-buf.lo disassemble.lo dis-init.lo ppc-dis.lo ppc-opc. > lo ../bfd/libbfd.la > mkdir .libs > libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared l > ibraries > ar cru .libs/libopcodes.a dis-buf.o disassemble.o dis-init.o ppc-dis.o ppc-opc. > o > ranlib .libs/libopcodes.a > creating libopcodes.la > (cd .libs && rm -f libopcodes.la && ln -s ../libopcodes.la libopcodes.la) > libtooldir=`/bin/sh ./libtool --config | sed -n -e 's/^objdir=//p'`; \ > if [ -f $libtooldir/libopcodes.a ]; then \ > cp $libtooldir/libopcodes.a libopcodes.tmp; \ > ranlib libopcodes.tmp; \ > /bin/sh ../../src/opcodes/../move-if-change libopcodes.tmp libopcodes.a; \ > else true; fi > touch stamp-lib > make[3]: Leaving directory `/tmp/build/cvs-insight/build/opcodes' > make[2]: Leaving directory `/tmp/build/cvs-insight/build/opcodes' > make[1]: Leaving directory `/tmp/build/cvs-insight/build/opcodes' > Configuring in dejagnu > loading cache .././config.cache > checking for a BSD compatible install... (cached) /bin/install -c > checking whether build environment is sane... yes > checking whether make sets ${MAKE}... (cached) yes > checking for working aclocal... found > checking for working autoconf... found > checking for working automake... found > checking for working autoheader... found > checking for working makeinfo... found > checking whether to enable maintainer-specific portions of Makefiles... no > checking whether make sets ${MAKE}... (cached) yes > checking for gcc... (cached) gcc > checking whether the C compiler (gcc -g -O2 ) works... yes > checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for c++... c++ > checking whether the C++ compiler (c++ -g -O2 ) works... yes > checking whether the C++ compiler (c++ -g -O2 ) is a cross-compiler... no > checking whether we are using GNU C++... yes > checking whether c++ accepts -g... yes > checking for a BSD compatible install... /bin/install -c > checking for Cygwin environment... (cached) yes > checking for mingw32 environment... (cached) no > checking for executable suffix... (cached) .exe > checking for bison... bison -y > checking for docbook tools... none > checking for the tclsh program... none > checking for tclsh... /bin/tclsh > updating cache .././config.cache > creating ./config.status > creating Makefile > creating doc/Makefile > creating testsuite/Makefile > creating example/Makefile > creating testsuite/libdejagnu/Makefile > configuring in example/calc > running /bin/sh ../../../../src/dejagnu/example/calc/configure --build=i686-pc- > cygwin --host=i686-pc-cygwin --target=powerpc-eabi --prefix=/usr/local/tools '-- > program-transform-name=s,^,powerpc-eabi-,; ' --cache-file=../../.././config.cach > e --srcdir=../../../../src/dejagnu/example/calc > loading cache ../../.././config.cache > checking for a BSD compatible install... (cached) /bin/install -c > checking whether build environment is sane... yes > checking whether make sets ${MAKE}... (cached) yes > checking for working aclocal... found > checking for working autoconf... found > checking for working automake... found > checking for working autoheader... found > checking for working makeinfo... found > checking for gcc... (cached) gcc > checking whether the C compiler (gcc -g -O2 ) works... yes > checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for a BSD compatible install... /bin/install -c > checking how to run the C preprocessor... (cached) gcc -E > checking for stdlib.h... (cached) yes > checking for strcmp... yes > checking whether to enable maintainer-specific portions of Makefiles... no > updating cache ../../.././config.cache > creating ./config.status > creating Makefile > creating calc.h > Configuring in tcl > loading cache .././config.cache > checking host system type... i686-pc-cygwin > checking whether make sets ${MAKE}... (cached) yes > updating cache .././config.cache > creating ./config.status > creating Makefile > configuring in win > running /bin/sh ../../../src/tcl/win/configure --build=i686-pc-cygwin --host=i6 > 86-pc-cygwin --target=powerpc-eabi --prefix=/usr/local/tools '--program-transfor > m-name=s,^,powerpc-eabi-,; ' --cache-file=../.././config.cache --srcdir=../../.. > /src/tcl/win > loading cache ../.././config.cache > checking host system type... i686-pc-cygwin > checking for gcc... (cached) gcc > checking whether the C compiler (gcc -g -O2 ) works... yes > checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for object suffix... (cached) o > checking build system type... i686-pc-cygwin > checking for nm... nm > checking for as... as > checking for ld... (cached) /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i6 > 86-pc-cygwin/bin/ld.exe > checking for ranlib... (cached) ranlib > checking for dlltool... dlltool > checking for windres... windres > checking for a BSD compatible install... (cached) /bin/install -c > updating cache ../.././config.cache > creating ./config.status > creating Makefile > creating ../unix/tclConfig.sh > configuring in cygwin > running /bin/sh ../../../src/tcl/cygwin/configure --build=i686-pc-cygwin --host > =i686-pc-cygwin --target=powerpc-eabi --prefix=/usr/local/tools '--program-trans > form-name=s,^,powerpc-eabi-,; ' --cache-file=../.././config.cache --srcdir=../.. > /../src/tcl/cygwin > loading cache ../.././config.cache > checking host system type... i686-pc-cygwin > checking target system type... powerpc-unknown-eabi > checking build system type... i686-pc-cygwin > checking for a BSD compatible install... (cached) /bin/install -c > checking whether build environment is sane... yes > checking whether make sets ${MAKE}... (cached) yes > checking for working aclocal... found > checking for working autoconf... found > checking for working automake... found > checking for working autoheader... found > checking for working makeinfo... found > checking whether to enable maintainer-specific portions of Makefiles... no > checking for Cygwin environment... (cached) yes > checking for mingw32 environment... (cached) no > checking for executable suffix... (cached) .exe > checking for gcc... (cached) gcc > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for ar... (cached) ar > checking for ranlib... (cached) ranlib > checking for a BSD compatible install... /bin/install -c > updating cache ../.././config.cache > creating ./config.status > creating Makefile > make[1]: Entering directory `/tmp/build/cvs-insight/build/tcl' > make[2]: Entering directory `/tmp/build/cvs-insight/build/tcl/win' > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/tclAppInit.c > windres --include ../../../src/tcl/win/../generic --include ../../../src/tcl/win > /../win --define __WIN32__ --define VS_VERSION_INFO=1 ../../../src/tcl/win/tclsh > .rc tclshres.o > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/../generic/panic.c > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/../generic/regexp.c > In file included from ../../../src/tcl/generic/tclPort.h:23, > from ../../../src/tcl/generic/regexp.c:48: > ../../../src/tcl/win/tclWinPort.h:20:1: warning: "__USE_W32_SOCKETS" redefined > :14:1: warning: this is the location of the previous definition > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/../compat/strftime.c > In file included from ../../../src/tcl/generic/tclPort.h:23, > from ../../../src/tcl/compat/strftime.c:55: > ../../../src/tcl/win/tclWinPort.h:20:1: warning: "__USE_W32_SOCKETS" redefined > :14:1: warning: this is the location of the previous definition > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/../generic/tclAsync.c > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/../generic/tclBasic.c > In file included from ../../../src/tcl/generic/tclPort.h:23, > from ../../../src/tcl/generic/tclBasic.c:21: > ../../../src/tcl/win/tclWinPort.h:20:1: warning: "__USE_W32_SOCKETS" redefined > :14:1: warning: this is the location of the previous definition > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/../generic/tclBinary.c > In file included from ../../../src/tcl/generic/tclPort.h:23, > from ../../../src/tcl/generic/tclBinary.c:17: > ../../../src/tcl/win/tclWinPort.h:20:1: warning: "__USE_W32_SOCKETS" redefined > :14:1: warning: this is the location of the previous definition > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/../generic/tclCkalloc.c > In file included from ../../../src/tcl/generic/tclPort.h:23, > from ../../../src/tcl/generic/tclCkalloc.c:19: > ../../../src/tcl/win/tclWinPort.h:20:1: warning: "__USE_W32_SOCKETS" redefined > :14:1: warning: this is the location of the previous definition > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/../generic/tclClock.c > In file included from ../../../src/tcl/generic/tclPort.h:23, > from ../../../src/tcl/generic/tclClock.c:19: > ../../../src/tcl/win/tclWinPort.h:20:1: warning: "__USE_W32_SOCKETS" redefined > :14:1: warning: this is the location of the previous definition > gcc -c -DWIN32 -D_WIN32 -D_MT -D_DLL -I../../../src/tcl/win/../win -I../../../ > src/tcl/win/../generic -D__WIN32__ -D__USE_W32_SOCKETS -g -O2 ../../../src/tcl/ > win/../generic/tclCmdAH.c > In file included from ../../../src/tcl/generic/tclPort.h:23, > from ../../../src/tcl/generic/tclCmdAH.c:18: > ../../../src/tcl/win/tclWinPort.h:20:1: warning: "__USE_W32_SOCKETS" redefined > :14:1: warning: this is the location of the previous definition > ../../../src/tcl/generic/tclCmdAH.c: In function `Tcl_FileObjCmd': > ../../../src/tcl/generic/tclCmdAH.c:670: error: parse error before numeric const > ant > make[2]: *** [tclCmdAH.o] Error 1 > make[2]: Leaving directory `/tmp/build/cvs-insight/build/tcl/win' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/tmp/build/cvs-insight/build/tcl' > make: *** [all-tcl] Error 2 > % >