This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Fwd: conflicting type for syserr_list]
- To: egcs-bugs at cygnus dot com
- Subject: Re: [Fwd: conflicting type for syserr_list]
- From: Kenneth Johansson <erakeon at kieray1 dot p dot y dot ki dot era dot ericsson dot se>
- Date: Mon, 27 Jul 1998 15:57:32 +0200
- References: <12173.901433401@hurl.cygnus.com>
Jeffrey A Law wrote:
> In message <35B864D8.A0779EEC@kieray1.p.y.ki.era.ericsson.se>you write:
> > I am tying to make a cross compiler for ppc to compile linux
> > kernel from a i386 debian system to an ppc 860 cpu.
> >
> > binutils.2.9.1 and configure with --target=ppc-linux-elf works.
> >
> > egcs.1.0.3a and configure with --target=ppc-linux-elf don't.
> >
> > I have header files from libc6-dev-2-0-94-980619-1.deb taken from
> > the ppc directory. and linux kernel source for 2.0.34 (no Iam not
> > going to use that source later)
> I believe the problem you're reported has been fixed for egcs-1.1
> (by using autoconf to drive libiberty's configuration process).
>
> You can probably work around this problem by removing the
> definition of NEED_sys_errlist from <objdir>/ppc-linux-elf/libiberty/config.h
> jeff
I tried that only to get stuck at strsignal.c function psignal.I "fixed" that in
the same way. But now I can't get vsprintf.c to compile. As that error looked a
bit different I just gave up and downloaded the latest snapshot.
I'm sorry to say I get the same errors. I have attached the output from my
initial run and the one where I get stuck at vsprintf.
Question do I need the libraries ? At this point Iam only going to compile linux
kernel and probably some own OS less test code that's going down as binary dumps.
If I can do without how do I disable build of them. This make environment is just
a tad to thick for me.
Configuring in ppc-linux-elf/libiberty
creating cache ./config.cache
checking host system type... powerpc-linux-elf
checking build system type... i686-pc-linux-gnu
checking for ppc-linux-elf-ar... ppc-linux-elf-ar
checking for ppc-linux-elf-ranlib... ppc-linux-elf-ranlib
checking for gcc... /home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/
checking whether we are using GNU C... yes
checking whether /home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ accepts -g... yes
checking for POSIXized ISC... no
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... /home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking whether the C compiler (/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -g -O2 ) works... yes
checking whether the C compiler (/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -g -O2 ) is a cross-compiler... yes
checking for asprintf... no
checking for atexit... no
checking for basename... no
checking for bcmp... no
checking for bcopy... no
checking for bzero... no
checking for clock... no
checking for getcwd... no
checking for getpagesize... no
checking for index... no
checking for insque... no
checking for memchr... no
checking for memcmp... no
checking for memcpy... no
checking for memmove... no
checking for memset... no
checking for random... no
checking for rename... no
checking for rindex... no
checking for sigsetmask... no
checking for strcasecmp... no
checking for strchr... no
checking for strdup... no
checking for strncasecmp... no
checking for strrchr... no
checking for strstr... no
checking for strtod... no
checking for strtol... no
checking for strtoul... no
checking for tmpnam... no
checking for vasprintf... no
checking for vfprintf... no
checking for vprintf... no
checking for vsprintf... no
checking for waitpid... no
checking for working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... yes
checking for pid_t... yes
checking for vfork.h... no
checking for working vfork... checking for vfork... no
no
checking for sys_errlist... no
checking for sys_nerr... no
checking for sys_siglist... no
checking for getrusage... no
checking for on_exit... no
checking for psignal... no
checking for strerror... no
checking for strsignal... no
checking for sysconf... no
checking for times... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
creating cache ./config.cache
checking host system type... powerpc-linux-elf
checking build system type... i686-pc-linux-gnu
checking for ppc-linux-elf-ar... ppc-linux-elf-ar
checking for ppc-linux-elf-ranlib... ppc-linux-elf-ranlib
checking for gcc... /home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/
checking whether we are using GNU C... yes
checking whether /home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ accepts -g... yes
checking for POSIXized ISC... no
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... /home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking whether the C compiler (/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -g -O2 ) works... yes
checking whether the C compiler (/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -g -O2 ) is a cross-compiler... yes
checking for asprintf... no
checking for atexit... no
checking for basename... no
checking for bcmp... no
checking for bcopy... no
checking for bzero... no
checking for clock... no
checking for getcwd... no
checking for getpagesize... no
checking for index... no
checking for insque... no
checking for memchr... no
checking for memcmp... no
checking for memcpy... no
checking for memmove... no
checking for memset... no
checking for random... no
checking for rename... no
checking for rindex... no
checking for sigsetmask... no
checking for strcasecmp... no
checking for strchr... no
checking for strdup... no
checking for strncasecmp... no
checking for strrchr... no
checking for strstr... no
checking for strtod... no
checking for strtol... no
checking for strtoul... no
checking for tmpnam... no
checking for vasprintf... no
checking for vfprintf... no
checking for vprintf... no
checking for vsprintf... no
checking for waitpid... no
checking for working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... yes
checking for pid_t... yes
checking for vfork.h... no
checking for working vfork... checking for vfork... no
no
checking for sys_errlist... no
checking for sys_nerr... no
checking for sys_siglist... no
checking for getrusage... no
checking for on_exit... no
checking for psignal... no
checking for strerror... no
checking for strsignal... no
checking for sysconf... no
checking for times... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
make[1]: Entering directory `/home/erakeon/src/be/ppc-linux-elf/libiberty'
if [ x"no" = xyes ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/argv.c -o pic/argv.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/argv.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/choose-temp.c -o pic/choose-temp.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/choose-temp.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/concat.c -o pic/concat.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/concat.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/cplus-dem.c -o pic/cplus-dem.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/cplus-dem.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/fdmatch.c -o pic/fdmatch.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/fdmatch.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/fnmatch.c -o pic/fnmatch.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/fnmatch.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/getopt.c -o pic/getopt.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/getopt.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/getopt1.c -o pic/getopt1.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/getopt1.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/getruntime.c -o pic/getruntime.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/getruntime.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/hex.c -o pic/hex.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/hex.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/floatformat.c -o pic/floatformat.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/floatformat.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/objalloc.c -o pic/objalloc.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/objalloc.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/obstack.c -o pic/obstack.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/obstack.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/pexecute.c -o pic/pexecute.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/pexecute.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/spaces.c -o pic/spaces.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/spaces.c
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/strerror.c -o pic/strerror.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/strerror.c
../../../egcs-19980721/libiberty/strerror.c:461: conflicting types for `sys_errlist'
/usr/local/ppc-linux-elf/include/stdio.h:640: previous declaration of `sys_errlist'
make[1]: *** [strerror.o] Error 1
make[1]: Leaving directory `/home/erakeon/src/be/ppc-linux-elf/libiberty'
make: *** [all-target-libiberty] Error 2
test x"no" != xyes || \
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/vsprintf.c -o pic/vsprintf.o
/home/erakeon/src/be/gcc/xgcc -B/home/erakeon/src/be/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../egcs-19980721/libiberty/../include ../../../egcs-19980721/libiberty/vsprintf.c
../../../egcs-19980721/libiberty/vsprintf.c: In function `vsprintf':
../../../egcs-19980721/libiberty/vsprintf.c:47: structure has no member named `_flag'
../../../egcs-19980721/libiberty/vsprintf.c:47: `_IOWRT' undeclared (first use in this function)
../../../egcs-19980721/libiberty/vsprintf.c:47: (Each undeclared identifier is reported only once
../../../egcs-19980721/libiberty/vsprintf.c:47: for each function it appears in.)
../../../egcs-19980721/libiberty/vsprintf.c:47: `_IOSTRG' undeclared (first use in this function)
../../../egcs-19980721/libiberty/vsprintf.c:48: structure has no member named `_ptr'
../../../egcs-19980721/libiberty/vsprintf.c:49: structure has no member named `_cnt'
make[1]: *** [vsprintf.o] Error 1
make[1]: Leaving directory `/home/erakeon/src/be/ppc-linux-elf/libiberty'
make: *** [all-target-libiberty] Error 2
b