From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9000 invoked by alias); 18 Jun 2010 20:57:45 -0000 Received: (qmail 8986 invoked by uid 22791); 18 Jun 2010 20:57:44 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_50,MSGID_MULTIPLE_AT,TW_AV,TW_EG X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.155) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Jun 2010 20:57:40 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o5IKvaV4017194 for ; Fri, 18 Jun 2010 22:57:36 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms7.u-strasbg.fr [IPv6:2001:660:2402:d::16]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id o5IKvaej016756 for ; Fri, 18 Jun 2010 22:57:36 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id o5IKvZmW094586 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 18 Jun 2010 22:57:36 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: Subject: gdbserver optimizer build failure Date: Fri, 18 Jun 2010 20:57:00 -0000 Message-ID: <000f01cb0f28$e3d8b610$ab8a2230$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit x-cr-hashedpuzzle: 4JI= AUZx Aco4 Bork BqCm BzHu DHTQ DJMg DL6k DNL1 DUPz D/dM E57U HvlZ JZMe Kk2i;1;ZwBkAGIALQBwAGEAdABjAGgAZQBzAEAAcwBvAHUAcgBjAGUAdwBhAHIAZQAuAG8AcgBnAA==;Sosha1_v1;7;{1458F1D6-4BC9-41C6-A157-7AFA4B513FCB};cABpAGUAcgByAGUALgBtAHUAbABsAGUAcgBAAGkAYwBzAC0AYwBuAHIAcwAuAHUAbgBpAHMAdAByAGEALgBmAHIA;Fri, 18 Jun 2010 20:57:36 GMT;ZwBkAGIAcwBlAHIAdgBlAHIAIABvAHAAdABpAG0AaQB6AGUAcgAgAGIAdQBpAGwAZAAgAGYAYQBpAGwAdQByAGUA x-cr-puzzleid: {1458F1D6-4BC9-41C6-A157-7AFA4B513FCB} Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00421.txt.bz2 gdbserver build currently fails on gcc16 (x86-64 machine running linux). gcc -Wall -g -O2 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbserve r/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gdbser ver/../../include -Wl,--dynamic-list=../../../src/gdb/gdbserver/proc-service.li st -o gdbserver inferiors.o regcache.o remote-utils.o server.o signals.o target. o utils.o version.o mem-break.o hostio.o event-loop.o tracepoint.o xml-builtin.o amd64-linux.o amd64-avx-linux.o i386-linux.o i386-avx-linux.o i386-mmx-linux.o linux-low.o linux-x86-low.o i386-low.o i387-fp.o hostio-errno.o thread-db.o proc -service.o \ -ldl linux-x86-low.o: In function `i386_emit_void_call_2': /home/muller/gdb/build-norm/gdb/gdbserver/../../../src/gdb/gdbserver/linux-x 86-low.c:2426: undefined reference to `start_i386_void_call_2_a' /home/muller/gdb/build-norm/gdb/gdbserver/../../../src/gdb/gdbserver/linux-x 86-low.c:2426: undefined reference to `end_i386_void_call_2_a' /home/muller/gdb/build-norm/gdb/gdbserver/../../../src/gdb/gdbserver/linux-x 86-l And so on... If I do: prompt$ rm linux-x86-low.o prompt$ make CFLAGS="-g --save-temps" linux-x86-low.o gcc -c -Wall -g --save-temps -I. -I../../../src/gdb/gdbserver -I../../../src /gdb/gdbserver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../s rc/gdb/gdbserver/../../include ../../../src/gdb/gdbserver/linux-x86-low.c prompt$ make rm -f gdbserver gcc -Wall -g -O2 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbserve r/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gdbser ver/../../include -Wl,--dynamic-list=../../../src/gdb/gdbserver/proc-service.li st -o gdbserver inferiors.o regcache.o remote-utils.o server.o signals.o target. o utils.o version.o mem-break.o hostio.o event-loop.o tracepoint.o xml-builtin.o amd64-linux.o amd64-avx-linux.o i386-linux.o i386-avx-linux.o i386-mmx-linux.o linux-low.o linux-x86-low.o i386-low.o i387-fp.o hostio-errno.o thread-db.o proc -service.o \ -ldl gcc -c -Wall -g -O2 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbse rver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gdb server/../../include ../../../src/gdb/gdbserver/gdbreplay.c rm -f gdbreplay gcc -Wall -g -O2 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbserve r/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gdbser ver/../../include -Wl,--dynamic-list=../../../src/gdb/gdbserver/proc-service.li st -o gdbreplay gdbreplay.o version.o \ gcc -c -Wall -g -O2 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbs erver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gd bserver/../../include -fPIC -DGDBSERVER -DIN_PROCESS_AGENT -fvisibility=hidden . ./../../src/gdb/gdbserver/tracepoint.c -o tracepoint-ipa.o gcc -c -Wall -g -O2 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbs erver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gd bserver/../../include -fPIC -DGDBSERVER -DIN_PROCESS_AGENT -fvisibility=hidden . ./../../src/gdb/gdbserver/utils.c -o utils-ipa.o gcc -c -Wall -g -O2 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbs erver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gd bserver/../../include -fPIC -DGDBSERVER -DIN_PROCESS_AGENT -fvisibility=hidden . ./../../src/gdb/gdbserver/regcache.c -o regcache-ipa.o gcc -c -Wall -g -O2 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbs erver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gd bserver/../../include -fPIC -DGDBSERVER -DIN_PROCESS_AGENT -fvisibility=hidden a md64-linux.c -o amd64-linux-ipa.o gcc -c -Wall -g -O2 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbs erver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gd bserver/../../include -fPIC -DGDBSERVER -DIN_PROCESS_AGENT -fvisibility=hidden . ./../../src/gdb/gdbserver/linux-amd64-ipa.c -o linux-amd64-ipa.o rm -f libinproctrace.so gcc -shared -fPIC -Wl,--no-undefined -Wall -g -O2 -I. -I../../../src/gdb/gdbs erver -I../../../src/gdb/gdbserver/../common -I../../../src/gdb/gdbserver/../reg formats -I../../../src/gdb/gdbserver/../../include \ -Wl,--dynamic-list=../../../src/gdb/gdbserver/proc-service.list -o libi nproctrace.so tracepoint-ipa.o utils-ipa.o regcache-ipa.o amd64-linux-ipa.o linu x-amd64-ipa.o The build completes successfully! It seems that there is a problem with the macro EMIT_ASM which seems to be mistreated by the optimizer. I have no clue how to solve this... Pierre Muller Pascal language support maintainer for GDB