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

Re: problems compiling kernel



On Sun, 18 Jan 1998, Shachar Tal wrote:

> Hi,
> 
> I am trying to compile kernel 2.0.33 under gcc 2.8.0, but at no avail. It
> would compile, but it doesn't boot. any ideas how do fix the problem?

Actually, there is no current way to fix the problem, here is my mail to
Linus Torvalds from yesterday, after talking to the GCC bug team:


--Ariel

Here goes:

-----------------------------------------------------------------------------

-----BEGIN PGP SIGNED MESSAGE-----


  Hi Linus,



   I have got this reply from someone on the GCC bug response team.
   The problem involved compiling the Linux kernel (2.0.x) with 
   gcc-2.8.0. I ran into trouble there, the compilation went fine, but
   it generated code with problems. You can read the mail I sent and the 
   reply I got, and then tell me what you think about it.

Regards,

--
Ariel Biener
~~~~~~~~~~~~~                                        Tel: +972-3-6406086
System Administrator                                 Fax: +972-3-6409118
Computation Center, Unix System Group               Cell: +972-52-953827
Tel-Aviv University, Ramat-Aviv, ISRAEL	  e-mail: ariel@aristo.tau.ac.il
     fingerprint = 07 D1 E5 3E EF 6D E5 82  0B E9 21 D4 3C 7D 8B BC     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



-- Mail sent by me to bug-gcc --

>From ariel@aristo.tau.ac.il Sun Jan 18 16:17:33 1998
Date: Sat, 17 Jan 1998 09:47:17 +0200 (IST)
From: Ariel Biener <ariel@aristo.tau.ac.il>
To: bug-gcc@prep.ai.mit.edu
Cc: petro@thinc.org
Subject: Problem in gcc 2.8.0




  Good morning,


   After installing gcc 2.8.0 (installed it after compiling the stage1 and
stage2 compilers, and after make compare, and everything went fine), I ran
the usual "let's see if the compiler is reliable" test I run, which is
compiling the Linux kernel from scratch (2.0.33 in this case).

   Compilation went on fine, and I rebooted with the new kernel. The
system booted up fine, but XFree stopped working. (both precompiled
binary, version 3.3.1 and the one I compiled myself). Running strace on it
showed that after executing iopl() , it gets SIGSEGV and dumps core.

   I recompiled the kernel, with gcc -V 2.7.2.3 this time, and rebooted.
Everything went fine, and X works again. 

   I guess that there is a problem with 2.8.0, since 2.7.2.3 works fine. I
don't know exactly the nature of the bug, I do know it manifests itself
this way. 

   I will gladly supply any information needed about the environment I am
speaking about, and I will gladly answer any questions you might have.

Best regards,

--
Ariel Biener
~~~~~~~~~~~~~                                        Tel: +972-3-6406086
System Administrator                                 Fax: +972-3-6409118
Computation Center, Unix System Group               Cell: +972-52-953827
Tel-Aviv University, Ramat-Aviv, ISRAEL	  e-mail: ariel@aristo.tau.ac.il
     fingerprint = 07 D1 E5 3E EF 6D E5 82  0B E9 21 D4 3C 7D 8B BC     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-- Reply from them --


Date: Sun, 18 Jan 1998 00:51:54 +0100
From: Juergen Pfeifer <Juergen.Pfeifer@t-online.de>
To: ariel@aristo.tau.ac.il
Subject: Compile Problem gcc-2.8.0 and linux-kernel 2.0.33

I made the same experience and searched the news groups a bit
about that. The problem is not gcc-2.8.0, normally you can trust
this piece of software much more than you can trust the linux
kernel.

What I found is that in the linux 2.0.x kernels are some inline
assembler hacks around some features of gcc-2.7.x used by Linus
as dirty tricks (most OS have stuff like this). Now that 2.8.0
has fixed those features, the hacks in the kernel and the compiler
are in conflict and the result is wrong code.

I've heard that the newer 2.1.x kernels can be compiled with 2.8.0,
but I don't know exactly. I also found no statements whether or
not there will be a 2.0.34 addressing this problem.

Juergen Pfeifer



-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBNMIPn4kq3UiHFGo5AQHu+wQArnnpBgmUED/bYmE38IwSw+w0YS3cU3y8
9XqEcdUyc2Oq/sLPxPnq7D868UTFqYmS9u3w3OlhYFEz+bh39c1XUF3gxDgoykJf
t8OJc3OS5f4rc5bezpHc0cS6N1aAw+MDoUsitJxawUZZpS90FaYmU0KTi2j3K0xi
tP+EN8rtnj8=
=pHvc
-----END PGP SIGNATURE-----

> 
> Shachar.
> 
> -----------------------------------------------------------------------------
> Shachar Tal - Computer Science, Technion, Israel Institute of Technology
> email: shachar@vipe.technion.ac.il, shachar@arc.technion.ac.il
> KeyID 0481FEF1 fingerprint = 52 1B 97 6A F2 77 AE C6  64 B6 5A 5E 14 28 8E 7E
> -----------------------------------------------------------------------------
> 
> 

   +---------------------------------------------------------------+
   | Ariel Biener                                                  |
   | e-mail: ariel@post.tau.ac.il        Work ph: 03-6406086       |
   | fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC |
   +---------------------------------------------------------------+