Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* problems with gcc/f2c
@ 1997-10-29 21:18 Stephen Tow
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Tow @ 1997-10-29 21:18 UTC (permalink / raw)


Howdy,

I am happily running RH 4.2 on an AlphaPC164LX, but have run into problems 
when I apply the em86 patches to the kernel. Without the patches things 
work fine, but with the em86 patches in the kernel things compiled with 
gcc/f2c act strangely:

myname:~> gcc -o hello hello.c
myname:~> hello
Segmentation fault
myname:~> ./hello
Hello World!!

What does putting a './' in front of an executable have to do with the 
em86 patches being installed? I am using gcc-2.7.2.1 and the ONLY patch 
applied to the kernel is the em86 patches...

Any help is MUCH appreciated...

[==========================================================================]
Stephen Tow                             Email: stow@ssibm4.ssp.ameslab.gov
Ames Laboratory                         Phone: (515)-294-9648
A422 Physics                            Home Phone: (515)-268-0308
Ames, Iowa 50011                        http://www.public.iastate.edu/~stow

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* problems with gcc/f2c
       [not found] <Pine.A32.3.91.971029150737.30400C-100000@ssibm4.ssp.ameslab.gov>
@ 1997-10-30  7:54 ` Harvey J. Stein
  0 siblings, 0 replies; 6+ messages in thread
From: Harvey J. Stein @ 1997-10-30  7:54 UTC (permalink / raw)


Stephen Tow writes:
 > myname:~> gcc -o hello hello.c
 > myname:~> hello
 > Segmentation fault
 > myname:~> ./hello
 > Hello World!!

Maybe you have a hello on your PATH before the one you just built in
your home directory, so the 1st invocation is of a different binary
than the second invocation.

-- 
Harvey J. Stein
Berger Financial Research
hjstein@bfr.co.il

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: problems with gcc/f2c
       [not found] <199710300754.JAA06955@blinky.bfr.co.il>
@ 1997-10-30  8:39 ` Stephen Tow
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Tow @ 1997-10-30  8:39 UTC (permalink / raw)


On Thu, 30 Oct 1997, Harvey J. Stein wrote:

> Stephen Tow writes:
>  > myname:~> gcc -o hello hello.c
>  > myname:~> hello
>  > Segmentation fault
>  > myname:~> ./hello
>  > Hello World!!
> 
> Maybe you have a hello on your PATH before the one you just built in
> your home directory, so the 1st invocation is of a different binary
> than the second invocation.
> 
> -- 
> Harvey J. Stein
> Berger Financial Research
> hjstein@bfr.co.il
> 

Arrgghhh...I really must apologize for not clarifying this in my original 
message. This is not the problem at all, though I see why it was 
immediately speculated. You can name the file anything you want and 
guarantee that there are no other executable with the same name it still 
occurs. This little problem has entirely boggled my mind. It has to be 
the stupidest damn thing I've ever run across...

Again, any insight is MUCH appreciated...

[==========================================================================]
Stephen Tow                             Email: stow@ssibm4.ssp.ameslab.gov
Ames Laboratory                         Phone: (515)-294-9648
A422 Physics                            Home Phone: (515)-268-0308
Ames, Iowa 50011                        http://www.public.iastate.edu/~stow

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: problems with gcc/f2c - patch usage summary.
       [not found] <Pine.A32.3.91.971030022647.3928B-100000@ssibm4.ssp.ameslab.gov>
@ 1997-10-30  9:29 ` Harvey J. Stein
  1997-10-31  5:14 ` problems with gcc/f2c Andy Isaacson
  1 sibling, 0 replies; 6+ messages in thread
From: Harvey J. Stein @ 1997-10-30  9:29 UTC (permalink / raw)


Stephen Tow writes:
 > On Thu, 30 Oct 1997, Harvey J. Stein wrote:
 > 
 > > Stephen Tow writes:
 > >  > myname:~> gcc -o hello hello.c
 > >  > myname:~> hello
 > >  > Segmentation fault
 > >  > myname:~> ./hello
 > >  > Hello World!!
 > > 
 > > Maybe you have a hello on your PATH before the one you just built in
 > > your home directory, so the 1st invocation is of a different binary
 > > than the second invocation.
 > 
 > Arrgghhh...I really must apologize for not clarifying this in my original 
 > message. This is not the problem at all, though I see why it was 
 > immediately speculated.

It doesn't happen on my 533mhz 164-LX:

   hjstein@blaster:~$ cat hello.c 
   #include <stdio.h>
   main ()
   {
       printf("Hello World!!\n");
   }
   hjstein@blaster:~$ type hello
   type: hello: not found
   hjstein@blaster:~$ echo $PATH
   /usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/home/hjstein/bin
   hjstein@blaster:~$ export PATH=$PATH:.
   hjstein@blaster:~$ type hello
   hello is ./hello
   hjstein@blaster:~$ hello
   Hello World!!
   hjstein@blaster:~$ ./hello
   Hello World!!

Did you apply the em86 patches to the kernel that came with Redhat or
to a pristine 2.0.30?  I applied alpha-patches-2.0.30-0.2a.gz to a
pristine 2.0.30, and then applied the patch ap-0.2-fixes-1.diff from 
ftp://genie.ucd.ie/pub/alpha/kernel/alpha-patchset.tar.gz.  One hunk
from the latter got rejected, and I applied it by hand (just added
result = -EIO; to the NOT_READY & ILLEGAL_REQUEST cases in
drivers/scsi/sr_ioctl.c).  I also left /usr/src/linux pointing at the
old kernel source tree.  If you tried patching the kernel that comes
with Redhat, you might have gotten rejects or reversals or bad
patches, because the redhat distributed kernel already has some of the
alpha patches mixed in.

I'll post some general patching info separately.

Good luck,

-- 
Harvey J. Stein
Berger Financial Research
hjstein@bfr.co.il

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: problems with gcc/f2c
       [not found] <Pine.A32.3.91.971030022647.3928B-100000@ssibm4.ssp.ameslab.gov>
  1997-10-30  9:29 ` problems with gcc/f2c - patch usage summary Harvey J. Stein
@ 1997-10-31  5:14 ` Andy Isaacson
  1 sibling, 0 replies; 6+ messages in thread
From: Andy Isaacson @ 1997-10-31  5:14 UTC (permalink / raw)


In article <Pine.A32.3.91.971030022647.3928B-100000@ssibm4.ssp.ameslab.gov>, you wrote:
[snip]
>>  > myname:~> gcc -o hello hello.c
>>  > myname:~> hello
>>  > Segmentation fault
>>  > myname:~> ./hello
>>  > Hello World!!
[snip]
>Again, any insight is MUCH appreciated...

Looks a lot like a known bug in alpha-patches.  Check your logs to see if
this seg fault is accompanied by a kernel oops.

This bug appears to be fixed in alpha-patches-2.0.30-0.2a .

-andy

-- 
Andy Isaacson <adisaacs@mtu.edu> <adi@acm.org> / Linux/Alpha, C, Perl, Java
Fight Spam, join CAUCE: http://www.cauce.org  / Ultimate Frisbee, Footbag
http://www.csl.mtu.edu/~adisaacs/            / I speak for noone but myself

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: problems with gcc/f2c
@ 1997-11-01  2:49 Jim Paradis
  0 siblings, 0 replies; 6+ messages in thread
From: Jim Paradis @ 1997-11-01  2:49 UTC (permalink / raw)


Stephen Tow wrote:
> myname:~> gcc -o hello hello.c
> myname:~> hello
> Segmentation fault
> myname:~> ./hello
> Hello World!!
> 
> What does putting a './' in front of an executable have to do with the
> em86 patches being installed? I am using gcc-2.7.2.1 and the ONLY patch
> applied to the kernel is the em86 patches...

Go to ftp.digital.com and get the new "2a" patchset for em86.

The reason for the "./" problem is a bug in some code I use to tell if
the program being run is em86... em86 gets treated slightly differently
than other processes.

-- 
Jim Paradis   jrp@jrp.tiac.net  
http://www.tiac.net/users/jrp/index.html
"It's not procrastination, it's my new Just-In-Time Workload Management
System!"

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

end of thread, other threads:[~1997-11-01  2:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.A32.3.91.971030022647.3928B-100000@ssibm4.ssp.ameslab.gov>
1997-10-30  9:29 ` problems with gcc/f2c - patch usage summary Harvey J. Stein
1997-10-31  5:14 ` problems with gcc/f2c Andy Isaacson
1997-11-01  2:49 Jim Paradis
     [not found] <199710300754.JAA06955@blinky.bfr.co.il>
1997-10-30  8:39 ` Stephen Tow
     [not found] <Pine.A32.3.91.971029150737.30400C-100000@ssibm4.ssp.ameslab.gov>
1997-10-30  7:54 ` Harvey J. Stein
  -- strict thread matches above, loose matches on Subject: below --
1997-10-29 21:18 Stephen Tow

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