From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7951 invoked by alias); 4 Apr 2008 02:30:48 -0000 Received: (qmail 7943 invoked by uid 22791); 4 Apr 2008 02:30:48 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 04 Apr 2008 02:30:15 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 01F7A3BEAD; Thu, 3 Apr 2008 19:30:13 -0700 (PDT) Subject: Re: GDB make error: for m68xx toolchain From: Michael Snyder To: me@madteckhead.dreamhosters.com Cc: gdb@sourceware.org In-Reply-To: <64034.210.49.88.189.1207275669.squirrel@webmail.madteckhead.dreamhosters.com> References: <64034.210.49.88.189.1207275669.squirrel@webmail.madteckhead.dreamhosters.com> Content-Type: text/plain Date: Fri, 04 Apr 2008 09:35:00 -0000 Message-Id: <1207276213.31772.231.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2008-04/txt/msg00036.txt.bz2 On Fri, 2008-04-04 at 12:21 +1000, Nathan K wrote: > Hi people who have more of an idea about this than me, > > For Uni we have to compile for the m68hc11. So I've set about setting up > the toolchain so I can work at home as indicated here. > > My problem is a make error when compiling GDB > > make[1]: *** No rule to make target `-lm', needed by `gdb'. Stop. > make: *** [all-gdb] Error 2 > > I'm running os x, gcc 3.3.5 (using gcc_select), gdb-6.2 with 68hc patch as > indicated on GCC 68HC11 & 68HC12 Sources Installation > > I think this might be referring to the math library, but I'm not sure what > to do about it. perhaps add a config option or edit make file??? > > Thanks in advance for any pointers, > > Nathan What's Uni? Oh, university? Heh, you're not at an .edu address... Yes, the error message refers to the math library. "-lm" means "link with libm.a" (or libm.so, depending). But the -lm directive seems to be misplaced somehow, perhaps from your host/target makefile fragment. We're at version 6.8, though -- we can't help you too much with version 6.2...