tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gdb: "error: no usable dependency style found"



On Tue, Sep 18, 2012 at 01:35:17PM -0500, David Young wrote:
> On Thu, Dec 15, 2011 at 11:58:14AM +0100, Manuel Bouyer wrote:
> > Hello,
> > trying to build a cross-gdb targetting amd64 (with build.sh -V 
> > MKCROSSGDB=yes)
> > on a linux host, I get:
> > checking for _FILE_OFFSET_BITS value needed for large files... no
> > checking for cc option to accept ANSI C... none needed
> > checking dependency style of cc... none
> > configure: error: no usable dependency style found
> > *** [configure-gdb] Error code 1
> > 
> > this used to work, I think it's related to the recent gdb update.
> > Any idea ?
> 
> I just stumbled on this today.  I'm building 6.0 RC1 on a Linux host.
> Besides building w/o MKCROSSGDB=yes, are any workarounds/fixes known?

Ha, I did run into this, and forgot to commit the patch.
The fix is to build gdb with gmake.
The attached patch should fix the problem (I can't check right now, the
box where I fixed this is not accessible at this time)

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--
Index: Makefile
===================================================================
RCS file: /cvsroot/src/tools/gdb/Makefile,v
retrieving revision 1.21
diff -u -p -u -r1.21 Makefile
--- Makefile    9 Feb 2012 15:15:58 -0000       1.21
+++ Makefile    29 Sep 2012 17:08:56 -0000
@@ -15,7 +15,7 @@ MAKE_ARGS=    MACHINE= MAKEINFO=${TOOL_MAKE
 ALL_TARGET=    all-gdb
 INSTALL_TARGET=        install-gdb
 
-.include "${.CURDIR}/../Makefile.gnuhost"
+.include "${.CURDIR}/../Makefile.gmakehost"
 
 CCADDFLAGS=    --sysroot=${DESTDIR} -L${DESTDIR}/lib -L${DESTDIR}/usr/lib 
-B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include
 


Home | Main Index | Thread Index | Old Index