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; 5+ 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] 5+ 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; 5+ 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] 5+ 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; 5+ 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] 5+ messages in thread

* Re: problems with gcc/f2c
       [not found] <Pine.A32.3.91.971030022647.3928B-100000@ssibm4.ssp.ameslab.gov>
@ 1997-10-31  5:14 ` Andy Isaacson
  0 siblings, 0 replies; 5+ 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] 5+ messages in thread

* Re: problems with gcc/f2c
@ 1997-11-01  2:49 Jim Paradis
  0 siblings, 0 replies; 5+ 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] 5+ messages in thread

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-01  2:49 problems with gcc/f2c Jim Paradis
     [not found] <Pine.A32.3.91.971030022647.3928B-100000@ssibm4.ssp.ameslab.gov>
1997-10-31  5:14 ` Andy Isaacson
     [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