This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
1.1b cross build solaris2.6 -> sunos4.1.4
- To: <egcs at cygnus dot com>
- Subject: 1.1b cross build solaris2.6 -> sunos4.1.4
- From: "Paul Forgey" <paulf at aphrodite dot com>
- Date: Thu, 5 Nov 1998 17:13:25 -0800
I am attempting to build egcs1.1b on Solaris 2.6 for SunOS4.1.4 (with gcc
and binutils). My binutils are 2.9.1.
Here's my config.status:
#!/bin/sh
# This file was generated automatically by configure. Do not edit.
# This directory was configured as follows:
../../configure --with-gcc-version-trigger=/export/home/paulf/software/egcs-
1.1b/gcc/version.c --host=sparc-sun-solaris2.6 --prefix=/usr/local --target=
sparc-sun-sunos4.1.4 --with-gnu-as --with-gnu-ld --norecursion
# using "mh-frag"
It appears the stddef.h is configured to need types it doesn't -- which file
do I go twinking in???
/export/home/paulf/software/egcs-1.1b/objdir/sunos4/gcc/xgcc -B/export/home/
paulf/software/egcs-1.1b/objdir/sunos4/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I
../../../../libiberty/../include ../../../../libiberty/cplus-dem.c
test x"no" != xyes || \
/export/home/paulf/software/egcs-1.1b/objdir/sunos4/gcc/xgcc -B/export/home/
paulf/software/egcs-1.1b/objdir/sunos4/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I
../../../../libiberty/../include ../../../../libiberty/fdmatch.c -o
pic/fdmatch.o
/export/home/paulf/software/egcs-1.1b/objdir/sunos4/gcc/xgcc -B/export/home/
paulf/software/egcs-1.1b/objdir/sunos4/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I. -I
../../../../libiberty/../include ../../../../libiberty/fdmatch.c
In file included from
/usr/local/sparc-sun-sunos4.1.4/include/sys/types.h:16,
from ../../../../libiberty/fdmatch.c:52:
/usr/local/sparc-sun-sunos4.1.4/include/sys/stdtypes.h:27: conflicting types
for `size_t'
/export/home/paulf/software/egcs-1.1b/objdir/sunos4/gcc/include/stddef.h:170
: previous declaration of `size_t'
/usr/local/sparc-sun-sunos4.1.4/include/sys/stdtypes.h:28: warning:
redefinition of `ptrdiff_t'
/export/home/paulf/software/egcs-1.1b/objdir/sunos4/gcc/include/stddef.h:118
: warning: `ptrdiff_t' previously declared here
/usr/local/sparc-sun-sunos4.1.4/include/sys/stdtypes.h:30: warning:
redefinition of `wchar_t'
/export/home/paulf/software/egcs-1.1b/objdir/sunos4/gcc/include/stddef.h:255
: warning: `wchar_t' previously declared here
make[2]: *** [fdmatch.o] Error 1
make[2]: Leaving directory
`/export/home/paulf/software/egcs-1.1b/objdir/sunos4/sparc-sun-sunos4.1.4/li
biberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory
`/export/home/paulf/software/egcs-1.1b/objdir/sunos4'
make: *** [cross] Error 2
Now, if I mv stddef.h to get it out of the way, I get further, however then:
/export/home/paulf/software/egcs-1.1b/objdir/sunos4/gcc/xgcc -B/export/home/
paulf/software/egcs-1.1b/objdir/sunos4/gcc/ -c -g -O2 -fno-implicit-template
s -I. -I../../../../libio -nostdinc++ `case
"-g -O2 -g -O2 -fno-implicit-templates" in *-fpic* ) echo -fpic ;; * )
echo -fPIC ;; esac` ../../../../libio/editbuf.cc -o pic/editbuf.o
In file included from ../../../../libio/editbuf.cc:33:
/usr/local/sparc-sun-sunos4.1.4/include/stdlib.h:18: warning: declaration of
`int abort(...)'
/usr/local/sparc-sun-sunos4.1.4/include/stdlib.h:18: warning: conflicts with
built-in declaration `void abort()'
/usr/local/sparc-sun-sunos4.1.4/include/stdlib.h:26: warning: declaration of
`int exit(...)'
/usr/local/sparc-sun-sunos4.1.4/include/stdlib.h:26: warning: conflicts with
built-in declaration `void exit(int)'
../../../../libio/editbuf.cc: In method `struct edit_buffer *
edit_mark::buffer()':
../../../../libio/editbuf.cc:647: parse error before `,'
make[2]: *** [editbuf.o] Error 1
make[2]: Leaving directory
`/export/home/paulf/software/egcs-1.1b/objdir/sunos4/sparc-sun-sunos4.1.4/li
bio'
make[1]: *** [all-target-libio] Error 2
make[1]: Leaving directory
`/export/home/paulf/software/egcs-1.1b/objdir/sunos4'
make: *** [cross] Error 2
..perhaps because a stddef.h stupplied macro is building another on that
line.
Thanks!