Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Re: Include coherency problem, sigaction and otherwise
@ 2000-03-17 18:28 Kevin D. Kissell
  2000-03-18  4:08 ` Ralf Baechle
  0 siblings, 1 reply; 10+ messages in thread
From: Kevin D. Kissell @ 2000-03-17 18:28 UTC (permalink / raw)
  To: William J. Earl; +Cc: SGI Linux Alias

William J. Earl writes:
>Kevin D. Kissell writes:
...
> > I have the impresson that the /usr/include stuff in the 
> > "Hard Hat" distribution for MIPS is keyed to a 2.0.x kernel, 
> > and that an update of /usr/include (as opposed to a downgrade 
> > of the kernel headers) may be in order.
...
>
>      As near as I can tell, at least for glibc-2.1.1-7, there
>is not machine-dependent <bits/sigaction.h> for mips, so the
>generic one is used, and the definitions are incompatible with the
>MIPS ABI.  The Linux kernel, on the other hand, is compatible with the
>MIPS ABI.  The cure is to supply a MIPS-specific <bits/sigaction.h>.

It's worse than that - the "Hard Hat" 5.1 distribution that serves
as the reference userland for most SGI/MIPS/Linux platforms
doesn't even have a /usr/include/bits directory, which seems
to have been a more recent invention.

            Regards,

            Kevin K.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Include coherency problem, sigaction and otherwise
@ 2000-03-18 19:59 Kevin D. Kissell
  0 siblings, 0 replies; 10+ messages in thread
From: Kevin D. Kissell @ 2000-03-18 19:59 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: SGI Linux Alias

>> Certainly the hardhat-sgi-5.1-tar.gz archive on oss.sgi.com is out of sync
>> with any MIPS/Linux kernel sources of which I am aware.  The most recent
>> version of glibc 2.0 for MIPS that I have been able to find is 2.0.7, and it
>> too seems to be out of synch.  Which version of glibc has been fixed,
>> and where can I download it?   Which userland distribution is built with
>> the consistent glibc?
>
>Definately no entire distribution, I'm also not sure if I actually did
>publish a fixed libc due to another binutils related issue.  I'm about to
>jump into a plane but could you take a look at
>pub/linux/mips/redhat/manhattan/RedHat/RPMS/glibc-2.0.6-4.mipseb.rpm
>from oss?
>
>  Ralf  (Up, up and away ...)

I checked.  2.0.6-4 seems to be the same version as is in
the hardhat-sgi-5.1-tar.gz archive, and as such is broken.

Hope you're having a good flight!

            Kevin K.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Include coherency problem, sigaction and otherwise
@ 2000-03-18 11:57 Kevin D. Kissell
  2000-03-18 13:59 ` Ralf Baechle
  2000-03-18 22:02 ` William J. Earl
  0 siblings, 2 replies; 10+ messages in thread
From: Kevin D. Kissell @ 2000-03-18 11:57 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: SGI Linux Alias

>> > > I have the impresson that the /usr/include stuff in the
>> > > "Hard Hat" distribution for MIPS is keyed to a 2.0.x kernel,
>> > > and that an update of /usr/include (as opposed to a downgrade
>> > > of the kernel headers) may be in order.
>> ...
>> >      As near as I can tell, at least for glibc-2.1.1-7, there
>> >is not machine-dependent <bits/sigaction.h> for mips, so the
>> >generic one is used, and the definitions are incompatible with the
>> >MIPS ABI.  The Linux kernel, on the other hand, is compatible with the
>> >MIPS ABI.  The cure is to supply a MIPS-specific <bits/sigaction.h>.
>>
>> It's worse than that - the "Hard Hat" 5.1 distribution that serves
>> as the reference userland for most SGI/MIPS/Linux platforms
>> doesn't even have a /usr/include/bits directory, which seems
>> to have been a more recent invention.
>
>The whole inconsistence was a stupid accident.  Since apparently only very
>little software was affected negativly (read: no known problems)  we didn't
>try to come up with some genious compatibility hacks but just fixed the
>definitions the hard way.

Having two independent sets of include files between kernel and userland
is always a bad idea, but is not *necessarily* broken, and sometimes
cannot be avoided.   The problem is not that the definitions are seperately
wired, but that they are incompatible - the risk one takes when one creates
multiple independent definitions.

>                                     Current glibc snapshots and Linuxkernels
have
>been fixed to use the same definitions.  If not, mail me a brown paperbag.

Certainly the hardhat-sgi-5.1-tar.gz archive on oss.sgi.com is out of sync
with any MIPS/Linux kernel sources of which I am aware.  The most recent
version of glibc 2.0 for MIPS that I have been able to find is 2.0.7, and it
too seems to be out of synch.  Which version of glibc has been fixed,
and where can I download it?   Which userland distribution is built with
the consistent glibc?

            Regards,

            Kevin K.
__

Kevin D. Kissell
MIPS Technologies European Architecture Lab
kevink@mips.com
Tel. +33.4.78.38.70.67
FAX. +33.4.78.38.70.68

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Include coherency problem, sigaction and otherwise
@ 2000-03-17 16:21 Kevin D. Kissell
  2000-03-17 18:02 ` William J. Earl
  0 siblings, 1 reply; 10+ messages in thread
From: Kevin D. Kissell @ 2000-03-17 16:21 UTC (permalink / raw)
  To: SGI Linux Alias

Invesitgating some non-fatal but odd behaviour, we
have traced it to the fact that the defintions of various
sigaction flags are defined for MIPS/Linux user code
in /usr/include/sigaction.h, but defined for the kernel in
/usr/include/asm/signal.h, and that the two definitions
are not consistent.  Does anyone know how this
came about?  

I have the impresson that the /usr/include stuff in the 
"Hard Hat" distribution for MIPS is keyed to a 2.0.x kernel, 
and that an update of /usr/include (as opposed to a downgrade 
of the kernel headers) may be in order.    Frankly, I don't like 
the fact that the user and kernel includes don't pull everything 
out of common files in include/linux and include/asm - I suppose 
it must have been to reduce the number of compilations
that depend on kernel includes - but I don't see that
we can do much about that from here in MIPS-land.
__

Kevin D. Kissell
MIPS Technologies European Architecture Lab
kevink@mips.com
Tel. +33.4.78.38.70.67
FAX. +33.4.78.38.70.68

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2000-03-18 22:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-17 18:28 Include coherency problem, sigaction and otherwise Kevin D. Kissell
2000-03-18  4:08 ` Ralf Baechle
2000-03-18  4:41   ` William J. Earl
2000-03-18  4:59     ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2000-03-18 19:59 Kevin D. Kissell
2000-03-18 11:57 Kevin D. Kissell
2000-03-18 13:59 ` Ralf Baechle
2000-03-18 22:02 ` William J. Earl
2000-03-17 16:21 Kevin D. Kissell
2000-03-17 18:02 ` William J. Earl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox