From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1902 invoked by alias); 12 Mar 2012 15:36:58 -0000 Received: (qmail 1771 invoked by uid 22791); 12 Mar 2012 15:36:56 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Mar 2012 15:36:43 +0000 From: "chris.january at allinea dot com" To: gdb-prs@sourceware.org Subject: [Bug build/13834] New: sim/ppc/Makefile uses GNU Make specific features Date: Mon, 12 Mar 2012 15:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chris.january at allinea dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q1/txt/msg00415.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D13834 Bug #: 13834 Summary: sim/ppc/Makefile uses GNU Make specific features Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build AssignedTo: unassigned@sourceware.org ReportedBy: chris.january@allinea.com Classification: Unclassified sim/ppc/Makefile uses GNU Make specific features but doesn't test for GNU make in configure: 1. $< used in a non-default rule: gentmap: ../common/gentmap.c $(CC_FOR_BUILD) $(BUILD_CFLAGS) -I. -I../common -I $(srcdir)/../common -o gentmap $< $(BUILD_LIBS) >>From the autoconf manual: "Posix says that the =E2=80=98$<=E2=80=99 construct in makefiles can be use= d only in inference rules and in the =E2=80=98.DEFAULT=E2=80=99 rule; its meaning in = ordinary rules is unspecified. Solaris make for instance replaces it with the empty string. OpenBSD (3.0 and later) make diagnoses these uses and errors out. " Result (on AIX, with AIX make): gcc -g -O2 -I. -I. -I./../../include -I../../bfd -I./../../bfd -I../../gdb -I./../../gdb -I./../../gdb/config -I. -I../common -I./../common -o gentmap=20=20 gcc: no input files make: 1254-004 The error code from the last command is 1. 2. psim depends on -lz, which is not a real file: LIBS =3D -lz psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBS) $(LIBINTL_DEP) Result (again, with AIX make): make: 1254-002 Cannot find a rule to create target -lz from dependencies. Stop. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.