This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
problem building gcc-3.0.1
- To: gcc at gcc dot gnu dot org, j dot ploeg at planet dot nl
- Subject: problem building gcc-3.0.1
- From: John Van Der Ploeg <jploeg at lucent dot com>
- Date: Wed, 05 Sep 2001 10:12:36 +0200
- Organization: Lucent Technologies - LWS TSS Switching NL
Hi,
I have some problems in compiling 3.0.1 on my Linux 2.2.19 kernel
based linux system.
my current gcc is 2.7.2.3
I do:
../gcc-3.0.1/configure
make bootstrap
and it fails like this:
all -Wtraditional -pedantic ../../gcc-3.0.1/libiberty/getruntime.c -o
pic/getruntime.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.1/libiberty/../include -W
-Wall -Wtraditional -pedantic ../../gcc-3.0.1/libiberty/getruntime.c
In file included from /usr/include/sys/resource.h:27,
from ../../gcc-3.0.1/libiberty/getruntime.c:43:
/usr/include/resourcebits.h:103: warning: `RLIM_INFINITY' redefined
/usr/include/asm/resource.h:26: warning: this is the location of the previous
definition
In file included from /usr/include/sys/resource.h:27,
from ../../gcc-3.0.1/libiberty/getruntime.c:43:
/usr/include/resourcebits.h:102: warning: comma at end of enumerator list
/usr/include/resourcebits.h:102: parse error before `('
make[1]: *** [getruntime.o] Error 1
make[1]: Leaving directory `/home/usr/src/gcc_objdir/libiberty'
make: *** [all-libiberty] Error 2
The resourcebits.h file that it complains about is attached below.
Any idea what could be wrong here?
- John
99-04-15 01:59 /usr/include/resourcebits.h Page 1
1 /* Bit values & structures for resource limits. Linux version.
2 Copyright (C) 1994, 1996 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License
as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If
not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite
330,
18 Boston, MA 02111-1307, USA. */
19
20 #include <asm/resource.h>
21
22 /* Transmute defines to enumerations. The macro re-definitions are
23 necessary because some programs want to test for operating system
24 features with #ifdef RUSAGE_SELF. In ISO C the reflexive
25 definition is a no-op. */
26
27 /* Kinds of resource limit. */
28 enum __rlimit_resource
29 {
30 /* Per-process CPU limit, in seconds. */
31 _RLIMIT_CPU = RLIMIT_CPU,
32 #undef RLIMIT_CPU
33 RLIMIT_CPU = _RLIMIT_CPU,
34 #define RLIMIT_CPU RLIMIT_CPU
35
36 /* Largest file that can be created, in bytes. */
37 _RLIMIT_FSIZE = RLIMIT_FSIZE,
38 #undef RLIMIT_FSIZE
39 RLIMIT_FSIZE = _RLIMIT_FSIZE,
40 #define RLIMIT_FSIZE RLIMIT_FSIZE
41
42 /* Maximum size of data segment, in bytes. */
43 _RLIMIT_DATA = RLIMIT_DATA,
44 #undef RLIMIT_DATA
45 RLIMIT_DATA = _RLIMIT_DATA,
46 #define RLIMIT_DATA RLIMIT_DATA
47
48 /* Maximum size of stack segment, in bytes. */
49 _RLIMIT_STACK = RLIMIT_STACK,
50 #undef RLIMIT_STACK
51 RLIMIT_STACK = _RLIMIT_STACK,
52 #define RLIMIT_STACK RLIMIT_STACK
53
54 /* Largest core file that can be created, in bytes. */
55 _RLIMIT_CORE = RLIMIT_CORE,
56 #undef RLIMIT_CORE
99-04-15 01:59 /usr/include/resourcebits.h Page 2
57 RLIMIT_CORE = _RLIMIT_CORE,
58 #define RLIMIT_CORE RLIMIT_CORE
59
60 /* Largest resident set size, in bytes.
61 This affects swapping; processes that are exceeding their
62 resident set size will be more likely to have physical memory
63 taken from them. */
64 _RLIMIT_RSS = RLIMIT_RSS,
65 #undef RLIMIT_RSS
66 RLIMIT_RSS = _RLIMIT_RSS,
67 #define RLIMIT_RSS RLIMIT_RSS
68
69 /* Number of open files. */
70 _RLIMIT_NOFILE = RLIMIT_NOFILE,
71 #undef RLIMIT_NOFILE
72 RLIMIT_NOFILE = _RLIMIT_NOFILE,
73 RLIMIT_OFILE = RLIMIT_NOFILE, /* BSD name for same. */
74 #define RLIMIT_NOFILE RLIMIT_NOFILE
75 #define RLIMIT_OFILE RLIMIT_OFILE
76
77 /* Address space limit (?) */
78 _RLIMIT_AS = RLIMIT_AS,
79 #undef RLIMIT_AS
80 RLIMIT_AS = _RLIMIT_AS,
81 #define RLIMIT_AS RLIMIT_AS
82
83 /* Number of processes. */
84 _RLIMIT_NPROC = RLIMIT_NPROC,
85 #undef RLIMIT_NPROC
86 RLIMIT_NPROC = _RLIMIT_NPROC,
87 #define RLIMIT_NPROC RLIMIT_NPROC
88
89 /* Locked-in-memory address space. */
90 _RLIMIT_MEMLOCK = RLIMIT_MEMLOCK,
91 #undef RLIMIT_MEMLOCK
92 RLIMIT_MEMLOCK = _RLIMIT_MEMLOCK,
93 #define RLIMIT_MEMLOCK RLIMIT_MEMLOCK
94
95 RLIMIT_NLIMITS = RLIM_NLIMITS,
96 #undef RLIM_NLIMITS
97 RLIM_NLIMITS = RLIMIT_NLIMITS,
98 #define RLIMIT_NLIMITS RLIMIT_NLIMITS
99 #define RLIM_NLIMITS RLIM_NLIMITS
100
101 /* Value to indicate that there is no limit. */
102 RLIM_INFINITY = (long int)(~0UL >> 1)
103 #define RLIM_INFINITY RLIM_INFINITY
104 };
105
106 struct rlimit
107 {
108 /* The current (soft) limit. */
109 long int rlim_cur;
110 /* The hard limit. */
111 long int rlim_max;
112 };
99-04-15 01:59 /usr/include/resourcebits.h Page 3
113
114 /* Whose usage statistics do you want? */
115 enum __rusage_who
116 {
117 /* The calling process. */
118 RUSAGE_SELF = 0,
120
121 /* All of its terminated child processes. */
122 RUSAGE_CHILDREN = -1,
123 #define RUSAGE_CHILDREN RUSAGE_CHILDREN
124
125 /* Both. */
126 RUSAGE_BOTH = -2
127 #define RUSAGE_BOTH RUSAGE_BOTH
128 };
129
130 #include <sys/time.h> /* For `struct timeval'. */
131
132 /* Structure which says how much of each resource has been used. */
133 struct rusage
134 {
135 /* Total amount of user time used. */
136 struct timeval ru_utime;
137 /* Total amount of system time used. */
138 struct timeval ru_stime;
139 /* Maximum resident set size (in kilobytes). */
140 long int ru_maxrss;
141 /* Amount of sharing of text segment memory
142 with other processes (kilobyte-seconds). */
143 long int ru_ixrss;
144 /* Amount of data segment memory used (kilobyte-seconds). */
145 long int ru_idrss;
146 /* Amount of stack memory used (kilobyte-seconds). */
147 long int ru_isrss;
148 /* Number of soft page faults (i.e. those serviced by reclaiming
149 a page from the list of pages awaiting reallocation. */
150 long int ru_minflt;
151 /* Number of hard page faults (i.e. those that required I/O). */
152 long int ru_majflt;
153 /* Number of times a process was swapped out of physical memory. */
154 long int ru_nswap;
155 /* Number of input operations via the file system. Note: This
156 and `ru_oublock' do not include operations with the cache. */
157 long int ru_inblock;
158 /* Number of output operations via the file system. */
159 long int ru_oublock;
160 /* Number of IPC messages sent. */
161 long int ru_msgsnd;
162 /* Number of IPC messages received. */
163 long int ru_msgrcv;
164 /* Number of signals delivered. */
165 long int ru_nsignals;
166 /* Number of voluntary context switches, i.e. because the process
167 gave up the process before it had to (usually to wait for some
168 resource to be available). */
99-04-15 01:59 /usr/include/resourcebits.h Page 4
169 long int ru_nvcsw;
170 /* Number of involuntary context switches, i.e. a higher priority
process
171 became runnable or the current process used up its time slice. */
172 long int ru_nivcsw;
173 };
174
175 /* Priority limits. */
176 #define PRIO_MIN -20 /* Minimum priority a process can have.
*/
177 #define PRIO_MAX 20 /* Maximum priority a process can have.
*/
178
179 /* The type of the WHICH argument to `getpriority' and `setpriority',
180 indicating what flavor of entity the WHO argument specifies. */
181 enum __priority_which
182 {
183 PRIO_PROCESS = 0, /* WHO is a process ID. */
184 PRIO_PGRP = 1, /* WHO is a process group ID. */
185 PRIO_USER = 2 /* WHO is a user ID. */
186 };