* A couple of alpha troubles
@ 1998-03-01 20:59 Chris Evans
1998-03-01 22:14 ` A couple of alpha troublesy Michal Jaegermann
1998-03-02 10:32 ` A couple of alpha troubles David Alan Gilbert
0 siblings, 2 replies; 10+ messages in thread
From: Chris Evans @ 1998-03-01 20:59 UTC (permalink / raw)
To: axp-list
Hi,
I'm currently suffering a rude awakening to Linux on alpha. We have 3 new
533Mhz beasts to be dedicated to running Linux. They came preinstalled
with RH5.0, quite well done it seems.
Since getting them I have so far solved some instabilities by making my
own kernel (the originals were non-RH and based on 2.0.31, hence suffering
the "inode still has mappings" etc). I've even managed to get to grips
with MILO :) All updates are applied of course.
Only two serious problems seem to remain;
1) X instability. The machines have Matrox cards (spit), and the SVGA X
server looks ok (bit of gfx corruption sometimes), but alas will sometimes
hang the entire machine upon "startx".
I'm thinking the dedicated XSuSE Matrox server has much more stable
support. Does anyone have an alpha RPM for this? If not, some pointers to
the source and a bit of assistance and I could try and knock one up for
the benefit of the alpha Linux community.
2) g++ instability. This one is _nasty_. Could someone please get an alpha
Linux RH5.0 machine and verify if this crashes or not:
compile with "g++ -o test test.cc"
==== cut, begin test.cc ==
#include <stdio.h>
int main(void) {
FILE* pFile;
pFile = fopen("a file", "w");
if (pFile != NULL) {
fclose(pFile);
}
}
==========================
Note!! The exact same program runs fine (no segfault) if compiled with
"gcc" rather than "g++". Also!! If I build egcs-1.0.1, "egcs-g++" will
build the little program fine. Unfortunately, egcs-1.0.1 on the alpha
appears to have other problems that causes some of our academic research
software to crash in other places (that 2.7.2.3 gets right).
So we need a hybrid of egcs and 2.7.2.3!! Seriously though, stdio in a c++
program appears to not work too well on alpha RHL5.0. Personally I suspect
libg++, and I would _love_ to try libg++-2.8.0b6(?), but I can't get it to
build :(
Does anyone have any pointers, or perhaps an rpm for a recent libg++?
Cheers for any help,
Chris
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: A couple of alpha troublesy
1998-03-01 20:59 A couple of alpha troubles Chris Evans
@ 1998-03-01 22:14 ` Michal Jaegermann
1998-03-01 23:35 ` Chris Evans
1998-03-02 10:32 ` A couple of alpha troubles David Alan Gilbert
1 sibling, 1 reply; 10+ messages in thread
From: Michal Jaegermann @ 1998-03-01 22:14 UTC (permalink / raw)
To: chris; +Cc: axp-list
>
> Since getting them I have so far solved some instabilities by making my
> own kernel
Can you be more precise? I compiled a number of different kernels
on a similar machine and using few different compilers ("distribution"
gcc, egcs-1.0.1, various egcs "snapshots") without any problems.
It is true that I did not try to use sources as supplied by Red Hat.
> 1) X instability. The machines have Matrox cards (spit),
I did not try Matrox with 5.0 but I worked with it on 4.2. I think
that this is an excellent graphics card.
There is a known bug in an original 5.0 release (fixed in updates)
in a definition of FD_ISSET macro (missing cast). It may hang X
(and emacs and few other things). You may need to recompile your
libraries.
> 2) g++ instability. This one is _nasty_. Could someone please get an alpha
> Linux RH5.0 machine and verify if this crashes or not:
g++ as delivered on RH5.0 is simply broken.
> compile with "g++ -o test test.cc"
>
> ==== cut, begin test.cc ==
>
> #include <stdio.h>
> int main(void) {
> FILE* pFile;
> pFile = fopen("a file", "w");
> if (pFile != NULL) {
> fclose(pFile);
> }
> }
Very good! You pinpointed a bug which costed me quite a few hours
of a debugging time as it was hidden in bowels of X. If you would
pay a bit of attention to this list you would notice that some
ten days ago, or so, I posted a warning describing the bug, symptoms
and a workaround.
A workaround is to link with gcc and not with g++ - if only possible.
You will get different, and correct, fopen and fclose.
The real solution is to get g++ from egcs (or maybe 2.8.x) and replace
g++ libraries with the current stuff.
All your problems were already discussed in the past on this list.
Michal
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: A couple of alpha troublesy
1998-03-01 22:14 ` A couple of alpha troublesy Michal Jaegermann
@ 1998-03-01 23:35 ` Chris Evans
0 siblings, 0 replies; 10+ messages in thread
From: Chris Evans @ 1998-03-01 23:35 UTC (permalink / raw)
To: Michal Jaegermann; +Cc: axp-list
On Sun, 1 Mar 1998, Michal Jaegermann wrote:
> >
> > Since getting them I have so far solved some instabilities by making my
> > own kernel
>
> Can you be more precise? I compiled a number of different kernels
Sure. Whoever shipped the machines to us didn't use the default RedHat
kernel, they used a patched up 2.0.31 deviant. I don't know if you
remember, but 2.0.31 had some _serious_ bugs that got fixed in 2.0.32. I
am currently happily running 2.0.33+alpha_patches.
> g++ as delivered on RH5.0 is simply broken.
Oh dear :(
> The real solution is to get g++ from egcs (or maybe 2.8.x) and replace
> g++ libraries with the current stuff.
Aha I suspected libg++, I will perform some egcs library extraction :)
> All your problems were already discussed in the past on this list.
Sorry :) As recompense I will provide an rpm that fixes c++ under RH5.0,
if I have any luck. I'm surprised there is no official update since it's a
serious problem.
Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A couple of alpha troubles
1998-03-01 20:59 A couple of alpha troubles Chris Evans
1998-03-01 22:14 ` A couple of alpha troublesy Michal Jaegermann
@ 1998-03-02 10:32 ` David Alan Gilbert
1 sibling, 0 replies; 10+ messages in thread
From: David Alan Gilbert @ 1998-03-02 10:32 UTC (permalink / raw)
To: Chris Evans, axp-list
Chris Evans wrote:
>
> Hi,
Hello,
> Only two serious problems seem to remain;
>
> 1) X instability. The machines have Matrox cards (spit), and the SVGA X
> server looks ok (bit of gfx corruption sometimes), but alas will sometimes
> hang the entire machine upon "startx".
You can get rid of the corruption most of the time by disabling the acceleration
by putting an option in the X configure file (option "noaccel" I think).;
As for the hangs I have no soloution.
> I'm thinking the dedicated XSuSE Matrox server has much more stable
> support. Does anyone have an alpha RPM for this? If not, some pointers to
> the source and a bit of assistance and I could try and knock one up for
> the benefit of the alpha Linux community.
They don't release source and last I checked they didn't have an Alpha version;
but please mail them and say you'd like one. The more votes for it the more
likely they are to do it.
> 2) g++ instability. This one is _nasty_. Could someone please get an alpha
> Linux RH5.0 machine and verify if this crashes or not:
> (fopen problem....)
Yes, yes - how many times is this going to come up on the list - FAQ please!!!!
(Not your fault Chris).
Yes the RH5.0 GCC/G++/libg++/glibc combination is not happy!
> Note!! The exact same program runs fine (no segfault) if compiled with
> "gcc" rather than "g++". Also!! If I build egcs-1.0.1, "egcs-g++" will
> build the little program fine. Unfortunately, egcs-1.0.1 on the alpha
> appears to have other problems that causes some of our academic research
> software to crash in other places (that 2.7.2.3 gets right).
OK - get the latest EGCS snapshots off ftp://egcs.cygnus.com/snapshots;
give those a whirl.
In my experience the EGCS maintainers are really helpful - especially
if you can give them a test case. Mail to the egcs mailing list and
see what happens - they really do get things fixed quite fast and are happy to
give you patches to try etc.
Dave
--
----------------------------------------------------------------------
- Dr. David Alan Gilbert - WARNING! This is a beta release .signature-
- Work: dg @ cogency.co.uk - 0161-428-9444 -
- Home: gro.gilbert @ treblig.org - -
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A couple of alpha troubles
@ 1998-03-01 21:43 Chris Evans
1998-03-01 22:17 ` Michal Jaegermann
1998-03-02 6:22 ` Richard Henderson
0 siblings, 2 replies; 10+ messages in thread
From: Chris Evans @ 1998-03-01 21:43 UTC (permalink / raw)
To: axp-list
On Mon, 2 Mar 1998 jma24@cam.ac.uk wrote:
> > 1) X instability. The machines have Matrox cards (spit), and the SVGA X
> ^^^^^^
> NONONO
I know, I know... I didn't have anything to do with the spec. of the
machines, alas. At least they arrived with respectable makes of ethernet
and SCSI card.
> > server looks ok (bit of gfx corruption sometimes), but alas will sometimes
> > hang the entire machine upon "startx".
>
> Yeah that's a known bug. Fixed in XFree 3.3.2
Good, gfx corruption I can cope with. Hard hangs are a bit of a sod when
people have long-running jobs on the go :) Do you know how "imminent"
"imminent" is in this case?
> > 2) g++ instability. This one is _nasty_. Could someone please get an alpha
> > Linux RH5.0 machine and verify if this crashes or not:
> >
> > compile with "g++ -o test test.cc"
>
> LOL
>
> jma24 /home/jma24 $ g++ -o test test.cc
> jma24 /home/jma24 $ ./test
Yeah yeah I know it works on your machine. Your mate David has been
assisting me too :)
> Upgrade the kernel. Upgrade to egcs (latest snapshot is dead fast, 70%
> faster code than gcc 2.7.2). I had this problem too, but I can't put my
> finger on exactly what fixed it.
I think I'll leave the kernel at 2.0.33 cheers :)
I _did_ try egcs, this fixed the "silly" trivial piece of code above,
however egcs then mis-compiled a different section of my code, resulting
in an eventual crash in malloc() deep inside an STL memory allocator
routine. STL is used extensively.
Incidentally, the latest egcs snapshot fails to build out of the box on
our machine. I seem to remember thinking "hmm, new binutils required
maybe", but can't remember why. libg++-2.8.0b6 doesn't build out of the
box either. I can post errors if you want.
I've built up my project using the egcs on jma24 -- again, handles stdio
within c++ fine but crashes out elsewhere.
> Just in case, you DIDN'T do the alpha glibc update did you?
Er, it came with something less recent than 2.0.6-9. I've upgraded to
2.0.6-9, this hasn't caused troubles with existing binaries/software. In
fact the machine is rock-solid apart from "startx" and generating dud c++
code. I'm still suspecting libg++ with a vengeance :)
Cheers
Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A couple of alpha troubles
1998-03-01 21:43 Chris Evans
@ 1998-03-01 22:17 ` Michal Jaegermann
1998-03-02 6:22 ` Richard Henderson
1 sibling, 0 replies; 10+ messages in thread
From: Michal Jaegermann @ 1998-03-01 22:17 UTC (permalink / raw)
To: axp-list
>
> Incidentally, the latest egcs snapshot fails to build out of the box on
> our machine.
You need a different assembler (ftp.cygnus.com).
--mj
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A couple of alpha troubles
1998-03-01 21:43 Chris Evans
1998-03-01 22:17 ` Michal Jaegermann
@ 1998-03-02 6:22 ` Richard Henderson
1998-03-02 11:30 ` Andreas Johansson
1 sibling, 1 reply; 10+ messages in thread
From: Richard Henderson @ 1998-03-02 6:22 UTC (permalink / raw)
To: axp-list
On Sun, Mar 01, 1998 at 09:43:16PM +0000, Chris Evans wrote:
> Incidentally, the latest egcs snapshot fails to build out of the box on
> our machine. I seem to remember thinking "hmm, new binutils required
> maybe", but can't remember why.
If you want to use the byte-word instruction set extension, then
yes, you need (i think) 2.8.1.0.17 or newer. OTOH, you can configure
with alpha-unknown-linux-gnu and not use the new insns and not need
a new assembler.
Of course, everyone wants the new insns. ;-)
r~
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A couple of alpha troubles
1998-03-02 6:22 ` Richard Henderson
@ 1998-03-02 11:30 ` Andreas Johansson
1998-03-02 15:31 ` Michal Jaegermann
1998-03-02 18:11 ` Richard Henderson
0 siblings, 2 replies; 10+ messages in thread
From: Andreas Johansson @ 1998-03-02 11:30 UTC (permalink / raw)
To: Richard Henderson; +Cc: axp-list
On Sun, 1 Mar 1998, Richard Henderson wrote:
> On Sun, Mar 01, 1998 at 09:43:16PM +0000, Chris Evans wrote:
> > Incidentally, the latest egcs snapshot fails to build out of the box on
> > our machine. I seem to remember thinking "hmm, new binutils required
> > maybe", but can't remember why.
>
> If you want to use the byte-word instruction set extension, then
> yes, you need (i think) 2.8.1.0.17 or newer. OTOH, you can configure
Actually, I have been able to generate binaries with the new instructions
using Red Hat 5's binutils-2.8.1.0.1-1 and egcs from the contrib
directory. I then use the compiler flags -mcpu=21164a -Wa,-m21164a, first
flag for byte word generation in egcs and second for as to recognize them.
I can't see why egcs doesn't add this to the assembler itself...
> with alpha-unknown-linux-gnu and not use the new insns and not need
> a new assembler.
>
> Of course, everyone wants the new insns. ;-)
Yeah! Everyone has new cpus!
/Andreas
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A couple of alpha troubles
1998-03-02 11:30 ` Andreas Johansson
@ 1998-03-02 15:31 ` Michal Jaegermann
1998-03-02 18:11 ` Richard Henderson
1 sibling, 0 replies; 10+ messages in thread
From: Michal Jaegermann @ 1998-03-02 15:31 UTC (permalink / raw)
To: ajo; +Cc: axp-list
> >
> > If you want to use the byte-word instruction set extension, then
> > yes, you need (i think) 2.8.1.0.17 or newer. OTOH, you can configure
>
> Actually, I have been able to generate binaries with the new instructions
> using Red Hat 5's binutils-2.8.1.0.1-1 and egcs from the contrib
> directory. I then use the compiler flags -mcpu=21164a -Wa,-m21164a,
This works with egcs-1.0.1 (doctoring specs file gives another method
to achieve the same). Later snapshots, at least some of these, generate
also a directive .arch - which is not recognized and you need some newer
assembler.
Michal
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A couple of alpha troubles
1998-03-02 11:30 ` Andreas Johansson
1998-03-02 15:31 ` Michal Jaegermann
@ 1998-03-02 18:11 ` Richard Henderson
1 sibling, 0 replies; 10+ messages in thread
From: Richard Henderson @ 1998-03-02 18:11 UTC (permalink / raw)
To: Andreas Johansson; +Cc: Richard Henderson, axp-list
On Mon, Mar 02, 1998 at 12:30:32PM +0100, Andreas Johansson wrote:
> I then use the compiler flags -mcpu=21164a -Wa,-m21164a, first
> flag for byte word generation in egcs and second for as to recognize them.
> I can't see why egcs doesn't add this to the assembler itself...
Based on the fact that you can give that option to binutils 2.7.0.2
and you still get the wrong answer, and the fact that there is a
better way to solve the problem than assembler command-line options,
I decided to forstall the other questions and force everyone to upgrade
who wants to use the new insns.
r~
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~1998-03-02 18:12 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-01 20:59 A couple of alpha troubles Chris Evans
1998-03-01 22:14 ` A couple of alpha troublesy Michal Jaegermann
1998-03-01 23:35 ` Chris Evans
1998-03-02 10:32 ` A couple of alpha troubles David Alan Gilbert
-- strict thread matches above, loose matches on Subject: below --
1998-03-01 21:43 Chris Evans
1998-03-01 22:17 ` Michal Jaegermann
1998-03-02 6:22 ` Richard Henderson
1998-03-02 11:30 ` Andreas Johansson
1998-03-02 15:31 ` Michal Jaegermann
1998-03-02 18:11 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox