From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4fddad5fc2056263 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2002-12-24 11:43:46 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Scott Wood Newsgroups: comp.os.linux.alpha Subject: Re: Kernel compile Date: Tue, 24 Dec 2002 19:43:34 -0000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <6e0c875c.0212231038.16351508@posting.google.com> User-Agent: slrn/0.9.7.4 (Linux) X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.os.linux.alpha:6808 On Tue, 24 Dec 2002 12:16:17 +0100, Marcel Pol wrote: > jbhuffman wrote: > >> Is is possible to compile a kernel for redhat linux to run on an alpha >> box on an intel box? I've been trying to do this for some time and >> cannot get it to work. Any suggestion? > > You need to cross-compile it then. > The problem is that gcc2 cannot cross-compile on a 32bit host for a 64bit > target. Gcc 3.0 also cannot do that I believe. I'm not sure if gcc 3.2 can > do that. I haven't looked at it recently, I just bought a bigger disk :-) I've compiled kernels for sparc64 on an x86 Linux box using gcc 3.0.1. 2.95.2 was also willing to make the attempt, but the results were a bit buggy (in ways that appear unrelated to word size, such as confusion between caller and callee saved registers). Given that most Linux sparc distributions currently use a 32-bit userland, there would be quite a few problems if what you say were correct. OTOH, there may be alpha-specific issues, but 32->64 is not universally broken. -Scott