1.1b cross build solaris2.6 -> sunos4.1.4

Paul Forgey paulf@aphrodite.com
Sun Nov 15 10:44:00 GMT 1998


Found it.  For reasons I still don't understand, 1.0.3a wasn't affected by
this.  The sunos4.1.4 sys/stdtypes.h wrongly typedef's size_t to int.
size_t should NEVER EVER be signed, so this is probably a broken vendor
supplied thingy 1.1b isn't gracefully handling.

-----Original Message-----
From: Paul Forgey <paulf@aphrodite.com>
To: egcs@cygnus.com <egcs@cygnus.com>
Date: Friday, November 06, 1998 5:51 PM
Subject: 1.1b cross build solaris2.6 -> sunos4.1.4


>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:17
0
>: 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:11
8
>: 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:25
5
>: 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/l
i
>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-templat
e
>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/l
i
>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!
>




More information about the Gcc mailing list