unable to compile gcc-3.0 on i686-pc-linux-gnu (getrusage pb)

Guillaume Rumeau rumeau@isty-info.uvsq.fr
Wed Jun 20 00:43:00 GMT 2001


Hi,

I make two atempts to compile gcc-3.0 on my machine
which is i686-pc-linux-gnu (Intel pentium III, linux 2.4.5)
with glibc 2.1 (SuSE 6.2) and gcc-2.95.2

The configure options i use was :
../gcc-3.0/configure --prefix=/usr/local/gcc30 \
--with-local-prefix=/usr/local/gcc30 \
--with-gxx-include-dir=/usr/local/gcc30/include/g++ --enable-shared \
--enable-languages=c,c++

and the first attempt i use :
../gcc-3.0/configure --prefix=/usr

The configure script respond that :

checking whether getrlimit is declared... no
checking whether setrlimit is declared... no
checking whether getrusage is declared... no

The only warning make by configure script was :

Configuring for a i686-pc-linux-gnu host.
*** This configuration is not supported in the following subdirectories:
     target-libf2c target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
    (Any other directories should still work fine.)

and 

configure: warning: 
*** Makeinfo is missing or too old.
*** Info documentation will not be built.

But, at compile time (make bootstrap),
it was an error with rusage.

../../gcc-3.0/gcc/gcc.c: In function `execute':
../../gcc-3.0/gcc/gcc.c:2714: `prus' has an incomplete type
../../gcc-3.0/gcc/gcc.c:2715: `RUSAGE_CHILDREN' undeclared (first use in this function)
../../gcc-3.0/gcc/gcc.c:2715: (Each undeclared identifier is reported only once
../../gcc-3.0/gcc/gcc.c:2715: for each function it appears in.)
../../gcc-3.0/gcc/gcc.c:2716: invalid use of undefined type `struct rusage'
../../gcc-3.0/gcc/gcc.c:2716: invalid use of undefined type `struct rusage'
../../gcc-3.0/gcc/gcc.c:2717: invalid use of undefined type `struct rusage'
../../gcc-3.0/gcc/gcc.c:2717: invalid use of undefined type `struct rusage'
../../gcc-3.0/gcc/gcc.c:2720: invalid use of undefined type `struct rusage'
../../gcc-3.0/gcc/gcc.c:2720: invalid use of undefined type `struct rusage'
../../gcc-3.0/gcc/gcc.c:2721: invalid use of undefined type `struct rusage'
../../gcc-3.0/gcc/gcc.c:2721: invalid use of undefined type `struct rusage'
../../gcc-3.0/gcc/gcc.c: At top level:
../../gcc-3.0/gcc/gcc.c:214: storage size of `rus' isn't known
../../gcc-3.0/gcc/gcc.c:214: storage size of `prus' isn't known
make[2]: *** [gcc.o] Error 1
make[2]: Leaving directory `/usr/src/dists/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr/src/dists/gcc-build/gcc'


Thank you.

Other informations :
 $>gcc -v      
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)

 $>uname -a
Linux leon 2.4.5 #3 Wed May 30 21:06:31 CEST 2001 i686 unknown

Here the config.status file :
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
../gcc-3.0/configure --with-gcc-version-trigger=/usr/src/dists/gcc-3.0/gcc/version.c --host=i686-pc-linux-gnu --prefix=/usr/local/gcc30 --with-local-prefix=/usr/local/gcc30 --with-gxx-include-dir=/usr/local/gcc30/include/g++ --enable-shared --enable-languages=c,c++ --norecursion 
# using "mh-frag" and "mt-frag"


and here the config.cache file :
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
ac_cv_c_const=${ac_cv_c_const=yes}
ac_cv_c_inline=${ac_cv_c_inline=inline}
ac_cv_c_stringize=${ac_cv_c_stringize=yes}
ac_cv_func___argz_count=${ac_cv_func___argz_count=yes}
ac_cv_func___argz_next=${ac_cv_func___argz_next=yes}
ac_cv_func___argz_stringify=${ac_cv_func___argz_stringify=yes}
ac_cv_func_alloca_works=${ac_cv_func_alloca_works=yes}
ac_cv_func_asprintf=${ac_cv_func_asprintf=yes}
ac_cv_func_atexit=${ac_cv_func_atexit=yes}
ac_cv_func_atoll=${ac_cv_func_atoll=yes}
ac_cv_func_atoq=${ac_cv_func_atoq=no}
ac_cv_func_basename=${ac_cv_func_basename=yes}
ac_cv_func_bcmp=${ac_cv_func_bcmp=yes}
ac_cv_func_bcopy=${ac_cv_func_bcopy=yes}
ac_cv_func_bsearch=${ac_cv_func_bsearch=yes}
ac_cv_func_bzero=${ac_cv_func_bzero=yes}
ac_cv_func_calloc=${ac_cv_func_calloc=yes}
ac_cv_func_clock=${ac_cv_func_clock=yes}
ac_cv_func_dcgettext=${ac_cv_func_dcgettext=yes}
ac_cv_func_fputc_unlocked=${ac_cv_func_fputc_unlocked=yes}
ac_cv_func_fputs_unlocked=${ac_cv_func_fputs_unlocked=yes}
ac_cv_func_getcwd=${ac_cv_func_getcwd=yes}
ac_cv_func_getpagesize=${ac_cv_func_getpagesize=yes}
ac_cv_func_getrlimit=${ac_cv_func_getrlimit=yes}
ac_cv_func_getrusage=${ac_cv_func_getrusage=yes}
ac_cv_func_gettimeofday=${ac_cv_func_gettimeofday=yes}
ac_cv_func_iconv=${ac_cv_func_iconv=yes}
ac_cv_func_index=${ac_cv_func_index=yes}
ac_cv_func_insque=${ac_cv_func_insque=yes}
ac_cv_func_isascii=${ac_cv_func_isascii=yes}
ac_cv_func_kill=${ac_cv_func_kill=yes}
ac_cv_func_lstat=${ac_cv_func_lstat=yes}
ac_cv_func_memchr=${ac_cv_func_memchr=yes}
ac_cv_func_memcmp=${ac_cv_func_memcmp=yes}
ac_cv_func_memcpy=${ac_cv_func_memcpy=yes}
ac_cv_func_memmove=${ac_cv_func_memmove=yes}
ac_cv_func_memset=${ac_cv_func_memset=yes}
ac_cv_func_mkstemps=${ac_cv_func_mkstemps=no}
ac_cv_func_mmap_anon=${ac_cv_func_mmap_anon=yes}
ac_cv_func_mmap_dev_zero=${ac_cv_func_mmap_dev_zero=yes}
ac_cv_func_mmap_file=${ac_cv_func_mmap_file=yes}
ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped=yes}
ac_cv_func_munmap=${ac_cv_func_munmap=yes}
ac_cv_func_nl_langinfo=${ac_cv_func_nl_langinfo=yes}
ac_cv_func_on_exit=${ac_cv_func_on_exit=yes}
ac_cv_func_popen=${ac_cv_func_popen=yes}
ac_cv_func_psignal=${ac_cv_func_psignal=yes}
ac_cv_func_putc_unlocked=${ac_cv_func_putc_unlocked=yes}
ac_cv_func_putenv=${ac_cv_func_putenv=yes}
ac_cv_func_random=${ac_cv_func_random=yes}
ac_cv_func_rename=${ac_cv_func_rename=yes}
ac_cv_func_rindex=${ac_cv_func_rindex=yes}
ac_cv_func_sbrk=${ac_cv_func_sbrk=yes}
ac_cv_func_setenv=${ac_cv_func_setenv=yes}
ac_cv_func_setlocale=${ac_cv_func_setlocale=yes}
ac_cv_func_setrlimit=${ac_cv_func_setrlimit=yes}
ac_cv_func_sigsetmask=${ac_cv_func_sigsetmask=yes}
ac_cv_func_stpcpy=${ac_cv_func_stpcpy=yes}
ac_cv_func_strcasecmp=${ac_cv_func_strcasecmp=yes}
ac_cv_func_strchr=${ac_cv_func_strchr=yes}
ac_cv_func_strdup=${ac_cv_func_strdup=yes}
ac_cv_func_strerror=${ac_cv_func_strerror=yes}
ac_cv_func_strncasecmp=${ac_cv_func_strncasecmp=yes}
ac_cv_func_strncmp_works=${ac_cv_func_strncmp_works=yes}
ac_cv_func_strrchr=${ac_cv_func_strrchr=yes}
ac_cv_func_strsignal=${ac_cv_func_strsignal=yes}
ac_cv_func_strstr=${ac_cv_func_strstr=yes}
ac_cv_func_strtod=${ac_cv_func_strtod=yes}
ac_cv_func_strtol=${ac_cv_func_strtol=yes}
ac_cv_func_strtoul=${ac_cv_func_strtoul=yes}
ac_cv_func_sysconf=${ac_cv_func_sysconf=yes}
ac_cv_func_times=${ac_cv_func_times=yes}
ac_cv_func_tmpnam=${ac_cv_func_tmpnam=yes}
ac_cv_func_vasprintf=${ac_cv_func_vasprintf=yes}
ac_cv_func_vfork_works=${ac_cv_func_vfork_works=yes}
ac_cv_func_vfprintf=${ac_cv_func_vfprintf=yes}
ac_cv_func_vprintf=${ac_cv_func_vprintf=yes}
ac_cv_func_vsprintf=${ac_cv_func_vsprintf=yes}
ac_cv_func_waitpid=${ac_cv_func_waitpid=yes}
ac_cv_header_alloca_h=${ac_cv_header_alloca_h=yes}
ac_cv_header_argz_h=${ac_cv_header_argz_h=yes}
ac_cv_header_direct_h=${ac_cv_header_direct_h=no}
ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h=yes}
ac_cv_header_iconv_h=${ac_cv_header_iconv_h=yes}
ac_cv_header_langinfo_h=${ac_cv_header_langinfo_h=yes}
ac_cv_header_libintl_h=${ac_cv_header_libintl_h=yes}
ac_cv_header_limits_h=${ac_cv_header_limits_h=yes}
ac_cv_header_locale_h=${ac_cv_header_locale_h=yes}
ac_cv_header_malloc_h=${ac_cv_header_malloc_h=yes}
ac_cv_header_nl_types_h=${ac_cv_header_nl_types_h=yes}
ac_cv_header_pthread_h=${ac_cv_header_pthread_h=yes}
ac_cv_header_stab_h=${ac_cv_header_stab_h=yes}
ac_cv_header_stdbool_h=${ac_cv_header_stdbool_h=yes}
ac_cv_header_stdc=${ac_cv_header_stdc=yes}
ac_cv_header_stddef_h=${ac_cv_header_stddef_h=yes}
ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h=yes}
ac_cv_header_string_h=${ac_cv_header_string_h=yes}
ac_cv_header_strings_h=${ac_cv_header_strings_h=yes}
ac_cv_header_sys_file_h=${ac_cv_header_sys_file_h=yes}
ac_cv_header_sys_mman_h=${ac_cv_header_sys_mman_h=yes}
ac_cv_header_sys_param_h=${ac_cv_header_sys_param_h=yes}
ac_cv_header_sys_resource_h=${ac_cv_header_sys_resource_h=no}
ac_cv_header_sys_stat_h=${ac_cv_header_sys_stat_h=yes}
ac_cv_header_sys_time_h=${ac_cv_header_sys_time_h=yes}
ac_cv_header_sys_times_h=${ac_cv_header_sys_times_h=yes}
ac_cv_header_sys_wait_h=${ac_cv_header_sys_wait_h=yes}
ac_cv_header_thread_h=${ac_cv_header_thread_h=no}
ac_cv_header_time=${ac_cv_header_time=yes}
ac_cv_header_time_h=${ac_cv_header_time_h=yes}
ac_cv_header_unistd_h=${ac_cv_header_unistd_h=yes}
ac_cv_header_vfork_h=${ac_cv_header_vfork_h=no}
ac_cv_lib_cposix_strerror=${ac_cv_lib_cposix_strerror=no}
ac_cv_path_install=${ac_cv_path_install='/usr/bin/ginstall -c'}
ac_cv_prog_AR=${ac_cv_prog_AR=ar}
ac_cv_prog_AWK=${ac_cv_prog_AWK=gawk}
ac_cv_prog_BISON=${ac_cv_prog_BISON=bison}
ac_cv_prog_CC=${ac_cv_prog_CC=gcc}
ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'}
ac_cv_prog_FLEX=${ac_cv_prog_FLEX=flex}
ac_cv_prog_MAKEINFO=${ac_cv_prog_MAKEINFO=makeinfo}
ac_cv_prog_RANLIB=${ac_cv_prog_RANLIB=ranlib}
ac_cv_prog_cc_cross=${ac_cv_prog_cc_cross=no}
ac_cv_prog_cc_g=${ac_cv_prog_cc_g=yes}
ac_cv_prog_cc_gcc_c_o=${ac_cv_prog_cc_gcc_c_o=yes}
ac_cv_prog_cc_no_long_long=${ac_cv_prog_cc_no_long_long=yes}
ac_cv_prog_cc_works=${ac_cv_prog_cc_works=yes}
ac_cv_prog_gcc=${ac_cv_prog_gcc=yes}
ac_cv_prog_gnat=${ac_cv_prog_gnat=no}
ac_cv_prog_have_mktemp_command=${ac_cv_prog_have_mktemp_command=yes}
ac_cv_prog_make_make_set=${ac_cv_prog_make_make_set=yes}
ac_cv_type_getgroups=${ac_cv_type_getgroups=gid_t}
ac_cv_type_off_t=${ac_cv_type_off_t=yes}
ac_cv_type_pid_t=${ac_cv_type_pid_t=yes}
ac_cv_type_size_t=${ac_cv_type_size_t=yes}
ac_cv_type_ssize_t=${ac_cv_type_ssize_t=yes}
ac_cv_type_uid_t=${ac_cv_type_uid_t=yes}
am_cv_val_LC_MESSAGES=${am_cv_val_LC_MESSAGES=yes}
gcc_cv_as=${gcc_cv_as=/usr/bin/as}
gcc_cv_as_alignment_features=${gcc_cv_as_alignment_features='.p2align including maximum skip'}
gcc_cv_as_dwarf2_debug_line=${gcc_cv_as_dwarf2_debug_line=no}
gcc_cv_as_eh_frame=${gcc_cv_as_eh_frame=bad}
gcc_cv_as_gas_srcdir=${gcc_cv_as_gas_srcdir=../../gcc-3.0/gas}
gcc_cv_as_hidden=${gcc_cv_as_hidden=no}
gcc_cv_as_instructions=${gcc_cv_as_instructions=}
gcc_cv_as_leb128=${gcc_cv_as_leb128=no}
gcc_cv_as_subsections=${gcc_cv_as_subsections='working .subsection -1'}
gcc_cv_as_weak=${gcc_cv_as_weak=yes}
gcc_cv_c__bool=${gcc_cv_c__bool=no}
gcc_cv_c_long_double=${gcc_cv_c_long_double=yes}
gcc_cv_c_volatile=${gcc_cv_c_volatile=yes}
gcc_cv_enum_bf_unsigned=${gcc_cv_enum_bf_unsigned=yes}
gcc_cv_func_printf_ptr=${gcc_cv_func_printf_ptr=yes}
gcc_cv_gas_major_version=${gcc_cv_gas_major_version=}
gcc_cv_gas_minor_version=${gcc_cv_gas_minor_version=}
gcc_cv_glibc=${gcc_cv_glibc=yes}
gcc_cv_have_decl_abort=${gcc_cv_have_decl_abort=yes}
gcc_cv_have_decl_atof=${gcc_cv_have_decl_atof=yes}
gcc_cv_have_decl_atol=${gcc_cv_have_decl_atol=yes}
gcc_cv_have_decl_basename=${gcc_cv_have_decl_basename=yes}
gcc_cv_have_decl_bcopy=${gcc_cv_have_decl_bcopy=yes}
gcc_cv_have_decl_calloc=${gcc_cv_have_decl_calloc=yes}
gcc_cv_have_decl_environ=${gcc_cv_have_decl_environ=yes}
gcc_cv_have_decl_fputs_unlocked=${gcc_cv_have_decl_fputs_unlocked=yes}
gcc_cv_have_decl_free=${gcc_cv_have_decl_free=yes}
gcc_cv_have_decl_getcwd=${gcc_cv_have_decl_getcwd=yes}
gcc_cv_have_decl_getenv=${gcc_cv_have_decl_getenv=yes}
gcc_cv_have_decl_getopt=${gcc_cv_have_decl_getopt=yes}
gcc_cv_have_decl_getrlimit=${gcc_cv_have_decl_getrlimit=no}
gcc_cv_have_decl_getrusage=${gcc_cv_have_decl_getrusage=no}
gcc_cv_have_decl_getwd=${gcc_cv_have_decl_getwd=yes}
gcc_cv_have_decl_malloc=${gcc_cv_have_decl_malloc=yes}
gcc_cv_have_decl_putc_unlocked=${gcc_cv_have_decl_putc_unlocked=yes}
gcc_cv_have_decl_realloc=${gcc_cv_have_decl_realloc=yes}
gcc_cv_have_decl_sbrk=${gcc_cv_have_decl_sbrk=yes}
gcc_cv_have_decl_setrlimit=${gcc_cv_have_decl_setrlimit=no}
gcc_cv_have_decl_strsignal=${gcc_cv_have_decl_strsignal=yes}
gcc_cv_have_decl_strstr=${gcc_cv_have_decl_strstr=yes}
gcc_cv_header_inttypes_h=${gcc_cv_header_inttypes_h=yes}
gcc_cv_header_string=${gcc_cv_header_string=yes}
gcc_cv_mkdir_takes_one_arg=${gcc_cv_mkdir_takes_one_arg=no}
gcc_cv_nm=${gcc_cv_nm=nm}
gcc_cv_path_GMSGFMT=${gcc_cv_path_GMSGFMT=/usr/bin/msgfmt}
gcc_cv_path_MSGFMT=${gcc_cv_path_MSGFMT=/usr/bin/msgfmt}
gcc_cv_path_XGETTEXT=${gcc_cv_path_XGETTEXT=/usr/bin/xgettext}
gcc_cv_prog_LN=${gcc_cv_prog_LN=ln}
gcc_cv_prog_LN_S=${gcc_cv_prog_LN_S='ln -s'}
gcc_cv_prog_makeinfo_modern=${gcc_cv_prog_makeinfo_modern=no}
gcc_cv_win32_registry_key=${gcc_cv_win32_registry_key=3.0}
gt_cv_func_gettext_libc=${gt_cv_func_gettext_libc=yes}
libiberty_cv_declare_errno=${libiberty_cv_declare_errno=no}
libiberty_cv_var_sys_errlist=${libiberty_cv_var_sys_errlist=yes}
libiberty_cv_var_sys_nerr=${libiberty_cv_var_sys_nerr=yes}
libiberty_cv_var_sys_siglist=${libiberty_cv_var_sys_siglist=yes}
nls_cv_force_use_gnu_gettext=${nls_cv_force_use_gnu_gettext=no}
nls_cv_header_intl=${nls_cv_header_intl=}
nls_cv_header_libgt=${nls_cv_header_libgt=}
nls_cv_use_gnu_gettext=${nls_cv_use_gnu_gettext=no}


Thank you for your help.

-- 
GR <guillaume.rumeau@wanadoo.fr>



More information about the Gcc-bugs mailing list