From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19537 invoked by alias); 14 Dec 2010 02:13:24 -0000 Received: (qmail 19447 invoked by uid 22791); 14 Dec 2010 02:13:23 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Dec 2010 02:13:18 +0000 Received: by pvc30 with SMTP id 30so28266pvc.0 for ; Mon, 13 Dec 2010 18:13:16 -0800 (PST) Received: by 10.142.201.3 with SMTP id y3mr3841315wff.369.1292292796334; Mon, 13 Dec 2010 18:13:16 -0800 (PST) Received: from [172.16.158.229] ([61.164.42.188]) by mx.google.com with ESMTPS id e14sm9686990wfg.8.2010.12.13.18.13.10 (version=SSLv3 cipher=RC4-MD5); Mon, 13 Dec 2010 18:13:15 -0800 (PST) Message-ID: <4D06D28B.7050409@gmail.com> Date: Tue, 14 Dec 2010 02:13:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Tom Tromey CC: Eli Zaretskii , gdb@sourceware.org Subject: Re: gdb with python support still get crash on showing uninitialized local variables References: <4CB66700.3000907@gmail.com> <4CBE7B08.9060905@gmail.com> <83bp6l9b4l.fsf@gnu.org> <4CD8ABA4.2090304@gmail.com> <4CE0C149.6090609@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00035.txt.bz2 On 2010-11-16 2:10, Tom Tromey wrote: >> Apparently HAVE_STDLIB_H is defined after all. >> So, I'm afraid I don't know what is going on. >> >> Tom Hi, Tom, After struggling with the building gdb, I finally found a very strange build problem. under MSYS and MinGW 4.4.5. Today, I can build the gdb source from the snapshot: gdb-7.2.50.20101213.tar.bz2 I have already released in the codeblocks' forum post: http://forums.codeblocks.org/index.php/topic,11301.0.html But the real strange thing is: I failed build the gdb from the git working copy. The error is just like the same as I reported several days ago. that is: -------------------------------------------------------------------------------- of built-in function 'free' ../../gdb/libiberty/fibheap.c: In function 'fibheap_extract_min': ../../gdb/libiberty/fibheap.c: 190:7: warning: incompatible implicit declaration of built-in function 'free' ../../gdb/libiberty/fibheap.c: In function 'fibheap_replace_key_data': ../../gdb/libiberty/fibheap.c:220:30: error: 'LONG_MIN' undeclared (first use in this function) ../../gdb/libiberty/fibheap.c:220:30: note: each undeclared identifier is report ed only once for each function it appears in ../../gdb/libiberty/fibheap.c: In function 'fibheap_delete_node': ../../gdb/libiberty/fibheap.c:261:36: error: 'LONG_MIN' undeclared (first use in this function) ../../gdb/libiberty/fibheap.c:265:7: warning: implicit declaration of function ' abort' ../../gdb/libiberty/fibheap.c:265:7: warning: incompatible implicit declaration of built-in function 'abort' ../../gdb/libiberty/fibheap.c: In function 'fibheap_delete': ../../gdb/libiberty/fibheap.c:277:5: warning: incompatible implicit declaration of built-in function 'free' ../../gdb/libiberty/fibheap.c: In function 'fibheap_consolidate': ../../gdb/libiberty/fibheap.c:368:3: warning: implicit declaration of function ' memset' ../../gdb/libiberty/fibheap.c:368:3: warning: incompatible implicit declaration of built-in function 'memset' make[2]: *** [fibheap.o] Error 1 make[2]: Leaving directory `/e/test/build/libiberty' make[1]: *** [all-libiberty] Error 2 make[1]: Leaving directory `/e/test/build' make: *** [all] Error 2 -------------------------------------------------------------------------------- I have both a folder named "gdb" (this is the git working copy) and a folder named "gdb-7.2.50.20101213" (this is unzipped snapshot) Then this command works: cd build ../gdb-7.2.50.20101213/configure --prefix=/E/test/install --build=mingw32 --host=mingw32 --target=mingw32 \ CFLAGS="-s -L/python/libs -I/python/include -I/E/test/expat/install/include -static -L/E/test/expat/install/lib" \ --with-python \ --with-expat make --------------------------------------------------------------------------------- But this command failed with the error I shown above: cd build ../gdb/configure --prefix=/E/test/install --build=mingw32 --host=mingw32 --target=mingw32 \ CFLAGS="-s -L/python/libs -I/python/include -I/E/test/expat/install/include -static -L/E/test/expat/install/lib" \ --with-python \ --with-expat make ---------------------------------------------------------------------------------- by the way, the gdb git address I'm using is: git clone git://sourceware.org/git/gdb.git list here: http://www.gnu.org/software/gdb/current/ Any ideas? thanks. asmwarrior