Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Another problem with gcc-2.8.1 on a dec alpha
  1999-03-16  5:00 Problem with gcc-2.8.1 on a dec alpha Antoon Pardon
@ 1999-03-16  5:00 ` P. Larry Nelson
       [not found]   ` <7colke$hoe@news.service.uci.edu>
  0 siblings, 1 reply; 3+ messages in thread
From: P. Larry Nelson @ 1999-03-16  5:00 UTC (permalink / raw)


I, too, am trying to compile gcc-2.8.1 on an Alpha, running 4.0E and 
'uname -a' returns:  OSF1 foo.bar.bigu.edu V4.0 1091 alpha.
I do not get the error that Antoon Pardon mentions (mine configures
without error) in his 16 Mar 1999 13:46:10 GMT posting, but when I run 
'make LANGUAGES=c', it goes along quite nicely for several minutes and 
fails at the following spot:

cc  -DIN_GCC    -g   -DHAVE_CONFIG_H    -I. -I. -I./config -DUSE_COLLECT2 
-DTARGET_NAME=\"alpha-dec-osf4.0e\"  -c `echo ./toplev.c | sed 's,^\./,,'`
cc: Error: toplev.c, line 939: In this declaration, "rusage" has no linkage and
is of an incomplete type. (incompnolink)
  struct rusage rusage;
----------------^
*** Exit 1
Stop.

And the aforementioned line 939 and surrounding code from toplev.c:
   931  int
   932  get_run_time ()
   933  {
   934  #ifndef _WIN32
   935  #ifdef USG
   936    struct tms tms;
   937  #else
   938  #ifndef VMS
   939    struct rusage rusage;
   940  #else
   941    struct
   942      {
   943        int proc_user_time;
   944        int proc_system_time;
   945        int child_user_time;
   946        int child_system_time;
   947      } vms_times;
   948  #endif
   949  #endif
   950  #endif

Not being a c programmer, just a sys admin trying to get gcc working
so I can compile some sys admin tools, I have no idea what might be
the problem nor how to fix it.  Any and all clues would be appreciated.
Or, if I should even post this to a different news group...

Thanks a lot in advance.
- Larry

-- 
P. Larry Nelson             | Systems/Network Administrator
217-244-9855                | U. of Ill., CCSO Departmental User Services
lnelson@uiuc.edu            | Consultant to: High Energy Physics Group
www.uiuc.edu/ph/www/lnelson | 461 Loomis Lab, 1110 W. Green St., Urbana, IL



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

* Problem with gcc-2.8.1 on a dec alpha
@ 1999-03-16  5:00 Antoon Pardon
  1999-03-16  5:00 ` Another problem " P. Larry Nelson
  0 siblings, 1 reply; 3+ messages in thread
From: Antoon Pardon @ 1999-03-16  5:00 UTC (permalink / raw)


When running configure I get the following message.
 
checking host system type... Invalid configuration `alphaev6-dec-osf4.0e': machine `alphaev6-dec' not recognized
  
adding the parameter: --build=alpha-dec to the configure command doesn't changes anything.
   
If I type uname -a, the results is: OSF1 aster1.ulb.ac.be V4.0 1091 alpha

Anyone an idea how to proceed?
    
--
All opinions expressed herein are currently under revision
==========================================================
Antoon Pardon    Brussels Free University Computing Centre
==========================================================




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

* Re: Another problem with gcc-2.8.1 on a dec alpha
       [not found]   ` <7colke$hoe@news.service.uci.edu>
@ 1999-03-18  5:00     ` P. Larry Nelson
  0 siblings, 0 replies; 3+ messages in thread
From: P. Larry Nelson @ 1999-03-18  5:00 UTC (permalink / raw)


Mike Iglesias wrote:
> 
> In article <36EEE6DD.BD9BDB66@uiuc.edu>,
> P. Larry Nelson <lnelson@uiuc.edu> wrote:
> >cc  -DIN_GCC    -g   -DHAVE_CONFIG_H    -I. -I. -I./config -DUSE_COLLECT2
> >-DTARGET_NAME=\"alpha-dec-osf4.0e\"  -c `echo ./toplev.c | sed 's,^\./,,'`
> >cc: Error: toplev.c, line 939: In this declaration, "rusage" has no linkage and
> >is of an incomplete type. (incompnolink)
> >  struct rusage rusage;
> >----------------^
> 
> The source file needs
> 
>    #include <sys/resource.h>
> 
> in it to get around this error.

Thanks!  That worked. 

> --
> Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
> University of California, Irvine     phone:       949-824-6926
> Office of Academic Computing         FAX:         949-824-2069

Now, another problem.  After  doing 'make stage1', the INSTALL docs
say to issue the following:

babu /usr/local/gcc-2.8.1# make LANGUAGES=c CC="stage1/xgcc -Bstage1/"
CFLAGS="-g -O2"
stage1/xgcc -Bstage1/  -DIN_GCC    -g -O2   -DHAVE_CONFIG_H    -I. -I.
-I./config 
-DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/alpha-dec-osf4.0e/2.8.1/include\" 
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/include/g++\" 
-DOLD_GPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" 
-DLOCAL_INCLUDE_DIR=\"/usr/local/include\" 
-DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/alpha-dec-osf4.0e/2.8.1/sys-include\" 
-DTOOL_INCLUDE_DIR=\"/usr/local/alpha-dec-osf4.0e/include\"  -c `echo ./cccp.c |
sed 's,^\./,,'`
cccp.c:8813: macro `va_start' used with too many (2) args
cccp.c:8875: macro `va_start' used with too many (2) args
cccp.c:8920: macro `va_start' used with too many (2) args
cccp.c:8960: macro `va_start' used with too many (2) args
cccp.c:9003: macro `va_start' used with too many (2) args
cccp.c:9022: macro `va_start' used with too many (2) args
cccp.c:9053: macro `va_start' used with too many (2) args
cccp.c:10061: macro `va_start' used with too many (2) args
*** Exit 1
Stop.


So,,, what to do here to fix this problem?  Also, none of the dirs mentioned
in the actual command that gets executed exist in /usr/local.  I'm running
this as root, so why don't they get created during the initial 'make'?

Thanks again in advance!
- Larry

-- 
P. Larry Nelson             | Systems/Network Administrator
217-244-9855                | U. of Ill., CCSO Departmental User Services
lnelson@uiuc.edu            | Consultant to: High Energy Physics Group
www.uiuc.edu/ph/www/lnelson | 461 Loomis Lab, 1110 W. Green St., Urbana, IL



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

end of thread, other threads:[~1999-03-18  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-16  5:00 Problem with gcc-2.8.1 on a dec alpha Antoon Pardon
1999-03-16  5:00 ` Another problem " P. Larry Nelson
     [not found]   ` <7colke$hoe@news.service.uci.edu>
1999-03-18  5:00     ` P. Larry Nelson

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