Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262905AbUFSANq (ORCPT ); Fri, 18 Jun 2004 20:13:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263851AbUFRUxR (ORCPT ); Fri, 18 Jun 2004 16:53:17 -0400 Received: from witte.sonytel.be ([80.88.33.193]:62922 "EHLO witte.sonytel.be") by vger.kernel.org with ESMTP id S262085AbUFRUtq (ORCPT ); Fri, 18 Jun 2004 16:49:46 -0400 Date: Fri, 18 Jun 2004 22:49:38 +0200 (MEST) From: Geert Uytterhoeven To: Linus Torvalds cc: Linux/m68k , Linux Kernel Development Subject: Re: [PATCH] cross-sparse In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1759 Lines: 41 On Fri, 18 Jun 2004, Linus Torvalds wrote: > On Thu, 17 Jun 2004, Geert Uytterhoeven wrote: > > I wanted to give sparse a try on m68k, and noticed the current infrastructure > > doesn't handle cross-compilation (no sane m68k people compile kernels natively > > anymore, unless they run a Debian autobuilder ;-). > > > > After hacking the include paths in the sparse sources, installing the resulting > > binary as m68k-linux-sparse, and applying the following patch, it seems to work > > fine! > > Hmm.. It does make sense, but at the same time, sparse isn't even really > supposed to _care_ about the architecture. Especially not for a kernel > build. > > Which part breaks when not just using the native sparse? As far as I know, > a kernel build should use all-kernel header files, with the exception of > "stdarg.h" which I thought was also architecture-independent (but hey, > maybe I'm just a retard, and am wrong). IIRC, actually the first error I got when using the native sparse was that it couldn't find stdarg.h. And even the non-native sparse doesn't know about architecture-specific defines like __mc68000__, causing some code paths being wrong. Guess I have to replace them by e.g. CONFIG_M68K. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/