Re: egcs, glibc

Khimenko Victor (khim@sch57.msk.ru)
Fri, 10 Apr 1998 18:18:40 +0400 (MSD)


PW> On Thu, 9 Apr 1998, Khimenko Victor wrote:
PW>
PW> > 9-Apr-98 10:40 you wrote:
PW> > > Hi folks,
PW> > > This is a little off topic but I have seen quite a few messages here
PW> > > about egcs and glibc affecting kernel compiles, so here goes.
PW> > glibc coould not affect kernel compilation -- kernel does not use lib or glibc...
PW> > If course broken glibc (or libc) could broke compiler but this VERY rare
PW> > cases. new binutils, gcc (egcs, pgcc, etc.) could affect compilation (especially
PW> > for APM support), but most parts written in C are safe. I am using pgcc for
PW> > last two month (currently 1.0.2 -- I not dislike snapshots) for all compilations
PW> > including kernel compilations... Latest kernels 2.0.33+ & 2.1.89+ in most cases
PW> > could be compiled without any troubles by gcc 2.8.x, egcs 1.0.x or pgcc 1.0.x...
PW> I don't agree. I compiled 2.0.33+p7 with gcc 2.8.1 ,-m pentium with no problem
PW> but i can not run X after boot it . It has no problem with the gcc 2.7.... but
PW> when compile 2.1.94 it is OK. I have no problem util change to use gcc 2.8.1
PW> Does the egcs or pgcc has the same problems ?
PW>
Yes. Here is from egcs faq:
-- cut --
You may get errors with the X driver of the form

_X11TransSocketUNIXConnect: Can't connect: errno = 111

It's a kernel bug. The function sys_iopl in arch/i386/kernel/ioport.c does an
illegal hack which used to work but is now broken since GCC optimizes more
aggressively . The newer 2.1.x kernels already have a fix which should also
work in 2.0.32.
-- cut --
Since I am not using 2.0.x kernels I am could not check situations with them
by myself, but in FAQ 2.0.32 is mentioned and only one file so I am was shure
that in 2.0.33 this is fixed... 2.1.89+ works just fine (I am test 2.1.89,
2.1.90, 2.1.92 & 2.1.94 by myself with binutils 2.8.1.0.23 & pgcc 1.0.2).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu