Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* g77 (again)
@ 1998-01-09 17:04 Adrian Feiguin
  0 siblings, 0 replies; 11+ messages in thread
From: Adrian Feiguin @ 1998-01-09 17:04 UTC (permalink / raw)


I would like to know if somebody has successfully installed g77 on an
AlphaPC with RH4.2. I've been using a NAGF90 Compiler but it would be fine
to have both to compare performance.

 I've been trying to compile g77-0.5.20/gcc-2.7.2.2 following the same
steps
described by C.Grayce (May 23/97). I have RH4.2 and gcc-2.7.2.1
pre-installed. I think I'm loosing something because I
get the following message:

In file included from /usr/include/sys/resource.h:27,
                 from toplev.c:51:
/usr/include/resourcebits.h:31: `RLIMIT_CPU' undeclared here (not in a function)
/usr/include/resourcebits.h:31: enumerator value for `_RLIMIT_CPU' not integer constant
/usr/include/resourcebits.h:37: `RLIMIT_FSIZE' undeclared here (not in a function)
/usr/include/resourcebits.h:37: enumerator value for `_RLIMIT_FSIZE' not integer constant
/usr/include/resourcebits.h:43: `RLIMIT_DATA' undeclared here (not in a function)
/usr/include/resourcebits.h:43: enumerator value for `_RLIMIT_DATA' not integer constant
/usr/include/resourcebits.h:49: `RLIMIT_STACK' undeclared here (not in a function)
/usr/include/resourcebits.h:49: enumerator value for `_RLIMIT_STACK' not integer constant
/usr/include/resourcebits.h:55: `RLIMIT_CORE' undeclared here (not in a function)
/usr/include/resourcebits.h:55: enumerator value for `_RLIMIT_CORE' not integer constant
/usr/include/resourcebits.h:64: `RLIMIT_RSS' undeclared here (not in a function)
/usr/include/resourcebits.h:64: enumerator value for `_RLIMIT_RSS' not integer constant
/usr/include/resourcebits.h:70: `RLIMIT_NOFILE' undeclared here (not in a function)
/usr/include/resourcebits.h:70: enumerator value for `_RLIMIT_NOFILE' not integer constant
/usr/include/resourcebits.h:78: `RLIMIT_AS' undeclared here (not in a function)
/usr/include/resourcebits.h:78: enumerator value for `_RLIMIT_AS' not integer constant
/usr/include/resourcebits.h:84: `RLIMIT_NPROC' undeclared here (not in a function)
/usr/include/resourcebits.h:84: enumerator value for `_RLIMIT_NPROC' not integer constant
/usr/include/resourcebits.h:90: `RLIMIT_MEMLOCK' undeclared here (not in a function)
/usr/include/resourcebits.h:90: enumerator value for `_RLIMIT_MEMLOCK' not integer constant
/usr/include/resourcebits.h:95: `RLIM_NLIMITS' undeclared here (not in a function)
/usr/include/resourcebits.h:95: enumerator value for `RLIMIT_NLIMITS' not integer constant
make[1]: *** [toplev.o] Error 1
make: *** [bootstrap] Error 2
  
thanks
<ADRIAN>

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

* Re: g77 (again)
       [not found] <Pine.LNX.3.96.980109105826.229B-100000@ifir.ifir.edu.ar>
@ 1998-01-09 18:06 ` Stephen Wolff
  1998-01-09 19:37 ` Dan Weeks
  1 sibling, 0 replies; 11+ messages in thread
From: Stephen Wolff @ 1998-01-09 18:06 UTC (permalink / raw)


Hi Adrian,

We have RH4.2 running on our Alpha PC.  
I managed to install the combo g77-0.5.21/gcc-2.7.2.3 without a hiccup.
I just followed the g77 INSTALL intructions (to the letter) 
that came with the g77-0.5.21.  I've also tested the g77 quite abit 
and seems to be working fine. 

(I also tried installing the egcs-1.0 but this failed (it failed to recognise
the platform, so I barely got started), but someone else I know compiled 
this without a hitch with RH5.0.)   

Steve.

============================

     STEPHEN K. WOLFF

    Dept. of Chemistry
   University of Calgary
         ALBERTA
 
   ph: (403) 220 8204

===========================

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

* Re: g77 (again)
       [not found] <Pine.LNX.3.96.980109105826.229B-100000@ifir.ifir.edu.ar>
  1998-01-09 18:06 ` Stephen Wolff
@ 1998-01-09 19:37 ` Dan Weeks
  1 sibling, 0 replies; 11+ messages in thread
From: Dan Weeks @ 1998-01-09 19:37 UTC (permalink / raw)


Adrian Feiguin writes:
 > I would like to know if somebody has successfully installed g77 on an
 > AlphaPC with RH4.2. I've been using a NAGF90 Compiler but it would be fine
 > to have both to compare performance.
 > 
 >  I've been trying to compile g77-0.5.20/gcc-2.7.2.2 following the same
 > steps
 > described by C.Grayce (May 23/97). I have RH4.2 and gcc-2.7.2.1
 > pre-installed. I think I'm loosing something because I
 > get the following message:
 > 
 > In file included from /usr/include/sys/resource.h:27,
 >                  from toplev.c:51:
 > /usr/include/resourcebits.h:31: `RLIMIT_CPU' undeclared here (not in a function)
 > /usr/include/resourcebits.h:31: enumerator value for `_RLIMIT_CPU' not integer constant
 > /usr/include/resourcebits.h:37: `RLIMIT_FSIZE' undeclared here (not in a function)

I got these same errors after I patched the kernel with the alpha
patches.  When I placed a clean source for the kernel everything
compiled okay.

-danimal

-- 
Dan Weeks <danimal@blueskystudios.com>
Blue Sky|VIFX http://www.blueskystudios.com/ http://www.vifx.com/
Harrison, New York 914/381.8400 - Los Angeles, California 310/822.8872
Cause the man said "That's the way it is" - R.B.F.

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

* Re: g77 (again)
       [not found] <9801091806.AA54586@acs5.acs.ucalgary.ca>
@ 1998-01-09 19:51 ` Michal Jaegermann
  1998-01-09 20:19   ` Brian Lund
  1998-01-14 21:51   ` Adrian Feiguin
  0 siblings, 2 replies; 11+ messages in thread
From: Michal Jaegermann @ 1998-01-09 19:51 UTC (permalink / raw)


> 
> (I also tried installing the egcs-1.0 but this failed (it failed to recognise
> the platform, so I barely got started),

Quite a few people, myself included, compiled egcs without any
"heroic efforts" using 4.2 distribution so it is hard to tell what
was the problem in this particular case.

If somebody is doing this right now then a new version 1.0.1 fixed
some bugs which in particular affected g77 on Alpha.

  Michal

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

* Re: g77 (again)
       [not found] <199801091937.OAA01128@harrison.blueskyprod.com>
@ 1998-01-09 19:54 ` Michal Jaegermann
  0 siblings, 0 replies; 11+ messages in thread
From: Michal Jaegermann @ 1998-01-09 19:54 UTC (permalink / raw)


>  > /usr/include/resourcebits.h:37: `RLIMIT_FSIZE' undeclared here (not in a function)
> 
> 
> I got these same errors after I patched the kernel with the alpha
> patches.

Constants are still there but hidden behind some define (in
<resourcebits.h>, IIRC).  Provide your own header which will expose
these constants and the problem will vanish.

  Michal

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

* Re: g77 (again)
  1998-01-09 19:51 ` Michal Jaegermann
@ 1998-01-09 20:19   ` Brian Lund
  1998-01-14 21:51   ` Adrian Feiguin
  1 sibling, 0 replies; 11+ messages in thread
From: Brian Lund @ 1998-01-09 20:19 UTC (permalink / raw)


On Fri, 9 Jan 1998, Michal Jaegermann wrote:

> > 
> > (I also tried installing the egcs-1.0 but this failed (it failed to recognise
> > the platform, so I barely got started),
> 
> Quite a few people, myself included, compiled egcs without any
> "heroic efforts" using 4.2 distribution so it is hard to tell what
> was the problem in this particular case.
> 
> If somebody is doing this right now then a new version 1.0.1 fixed
> some bugs which in particular affected g77 on Alpha.
>

egcs 1.0.1 works perfectly on my 233MHz axpcpi33 - the ecdl thing went
from 60000 iterations/sec to 73500/sec.

-Brian Lund
blinx@zone.dk

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

* Re: g77 (again)
       [not found] <199801091954.MAA10108@ellpspace.math.ualberta.ca>
@ 1998-01-10  4:51 ` Aaron M. Gowatch
  0 siblings, 0 replies; 11+ messages in thread
From: Aaron M. Gowatch @ 1998-01-10  4:51 UTC (permalink / raw)


On Fri, 9 Jan 1998, Michal Jaegermann wrote:

> >  > /usr/include/resourcebits.h:37: `RLIMIT_FSIZE' undeclared here (not in a function)
> > 
> > 
> > I got these same errors after I patched the kernel with the alpha
> > patches.
> 
> Constants are still there but hidden behind some define (in
> <resourcebits.h>, IIRC).  Provide your own header which will expose
> these constants and the problem will vanish.

I posted a message about this a few weeks ago, and I'd certainly like to
see it fixed.  These are defined in <resourcebits.h> using constants it
expects to find in <asm/resource.h>, RLIMIT_CPU, RLIMIT_FSIZE, etc. 
However, when using Alpha patched kernel sources, these constants are no
longer defined in <asm/resource.h>.  Instead it defines
__KERNEL_RLIMIT_CPU, __KERNEL_RLIMIT_FSIZE, etc.  As a result, anything
that uses <sys/resource.h> will fail.  I modified <resourcebits.h> to be
compatible with the new namespace and I havent had any problems since. 

I guess the obvious question is, who should fix it for good?  Do such
modifcations belong in glibc or the Alpha kernel patches?

Aa.

______
You can't moonwalk in cleats.

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

* Re: g77 (again)
       [not found] <Pine.BSI.3.96.980109203920.17231Y-100000@get.wired.com>
@ 1998-01-10 17:29 ` Jay.Estabrook
  0 siblings, 0 replies; 11+ messages in thread
From: Jay.Estabrook @ 1998-01-10 17:29 UTC (permalink / raw)


>>> "Aaron M. Gowatch " said:
> On Fri, 9 Jan 1998, Michal Jaegermann wrote:
> 
> > >  > /usr/include/resourcebits.h:37: `RLIMIT_FSIZE' undeclared here (not 
> in a function)
> > 
> > Constants are still there but hidden behind some define (in
> > <resourcebits.h>, IIRC).  Provide your own header which will expose
> > these constants and the problem will vanish.
> 
> I posted a message about this a few weeks ago, and I'd certainly like to
> see it fixed.  These are defined in <resourcebits.h> using constants it
> expects to find in <asm/resource.h>, RLIMIT_CPU, RLIMIT_FSIZE, etc. 
> However, when using Alpha patched kernel sources, these constants are no
> longer defined in <asm/resource.h>.  Instead it defines
> __KERNEL_RLIMIT_CPU, __KERNEL_RLIMIT_FSIZE, etc.  As a result, anything
> that uses <sys/resource.h> will fail.  I modified <resourcebits.h> to be
> compatible with the new namespace and I havent had any problems since. 

Yes, you did, and I think I posted a message about this as well, indicating
it is NOT A GOOD THING to replace the stock RH kernels sources in the
/usr/src/linux directory with other sources that have been alpha-patched.

Red Hat is *very* careful to (try to) make the headers consistent between
Alpha and INTEL versions, so that packages will compile on both.

The alpha-patches-2.0.30-whatever DO NOT try to maintain this consistency,
leading to the problems mentioned above.

Again I'll say, PLEASE do not replace /usr/src/linux with alpha-patched
sources! Build your custom kernels either from the RH versions there, or
move to someplace like /usr/local/src to unpack, alpha-patch, and build
your custom configured kernels.

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                         Alpha Migration Tools - LINUX Project
Digital Equipment Corp.                 (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2              enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
-------------------------------------------------------------------------------

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

* Re: g77 (again)
@ 1998-01-10 19:58 Jeff Nguyen
  0 siblings, 0 replies; 11+ messages in thread
From: Jeff Nguyen @ 1998-01-10 19:58 UTC (permalink / raw)


Has anyone been able to build g77 (2.0.21) successfully under
Red Hat 5.0? I can build the initial C compiler. But I always
get the error message below at stage1:

stage1/xgcc -Bstage1/  -DIN_GCC   -O -g   -o genattr \
 genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case
"stage1/xgcc -Bstage1/"@"" in "cc"@?*) echo  ;; esac ` ` case "" in ?*) echo  ;;
esac ` -lbfd -liberty
./genattr ./config/alpha/alpha.md > tmp-attr.h
/bin/sh: ./genattr: No such file or directory
make[1]: *** [stamp-attr] Error 126
make[1]: Leaving directory `/usr/src/gcc-2.7.2.3'
make: *** [gcc1] Error 2

This file, genattr is present in the current directory. But somehow it
is corrupted.

Jeff

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

* Re: g77 (again)
       [not found] <34B7D2E6.2A69286F@aslab.com>
@ 1998-01-12  0:51 ` Heiner Kruener
  0 siblings, 0 replies; 11+ messages in thread
From: Heiner Kruener @ 1998-01-12  0:51 UTC (permalink / raw)


> Has anyone been able to build g77 (2.0.21) successfully under
> Red Hat 5.0? I can build the initial C compiler. But I always
> get the error message below at stage1:
> 
> stage1/xgcc -Bstage1/  -DIN_GCC   -O -g   -o genattr \
>  genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case
> "stage1/xgcc -Bstage1/"@"" in "cc"@?*) echo  ;; esac ` ` case "" in ?*) echo  ;;
> esac ` -lbfd -liberty
> ./genattr ./config/alpha/alpha.md > tmp-attr.h
> /bin/sh: ./genattr: No such file or directory
> make[1]: *** [stamp-attr] Error 126
> make[1]: Leaving directory `/usr/src/gcc-2.7.2.3'
> make: *** [gcc1] Error 2
> 
> This file, genattr is present in the current directory. But somehow it
> is corrupted.

Yes, I know this problem. The OS doesn't recognize genattr as an executable
file. Had the same problem under 2.0.30. Went back to an 2.0.29 kernel and
rebuilt gcc-2.7.2.3.f.1 which went fine and re-used it under 2.0.30.
This is definitely a problem of the kernel being used and not of gcc/g77.

Heiner

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

* Re: g77 (again)
  1998-01-09 19:51 ` Michal Jaegermann
  1998-01-09 20:19   ` Brian Lund
@ 1998-01-14 21:51   ` Adrian Feiguin
  1 sibling, 0 replies; 11+ messages in thread
From: Adrian Feiguin @ 1998-01-14 21:51 UTC (permalink / raw)


I compiled and installed egcs. The problem with the headers was fixed
going back to the original ones (I didn't realize that I have an
alpha-patched kernel). I appreciate all your suggestions, they've been
all very helpful. Thank you all.

<ADRIAN>

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

end of thread, other threads:[~1998-01-14 21:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-10 19:58 g77 (again) Jeff Nguyen
     [not found] <34B7D2E6.2A69286F@aslab.com>
1998-01-12  0:51 ` Heiner Kruener
     [not found] <Pine.BSI.3.96.980109203920.17231Y-100000@get.wired.com>
1998-01-10 17:29 ` Jay.Estabrook
     [not found] <199801091954.MAA10108@ellpspace.math.ualberta.ca>
1998-01-10  4:51 ` Aaron M. Gowatch
     [not found] <199801091937.OAA01128@harrison.blueskyprod.com>
1998-01-09 19:54 ` Michal Jaegermann
     [not found] <9801091806.AA54586@acs5.acs.ucalgary.ca>
1998-01-09 19:51 ` Michal Jaegermann
1998-01-09 20:19   ` Brian Lund
1998-01-14 21:51   ` Adrian Feiguin
     [not found] <Pine.LNX.3.96.980109105826.229B-100000@ifir.ifir.edu.ar>
1998-01-09 18:06 ` Stephen Wolff
1998-01-09 19:37 ` Dan Weeks
  -- strict thread matches above, loose matches on Subject: below --
1998-01-09 17:04 Adrian Feiguin

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