[comp.unix.xenix] GCC on a XENIX 386 system problems

cstew@rwing.UUCP (Christopher Stewart) (07/19/90)

I apologize if this turns out to be something real simple, I'm not real
familar with C, (am a M-2 man myself). Anyhow I'm engaged in an effort
to get gcc up and running on a 386 box running SCO-Xenix vrs 2.3.2 and
have run into a problem I don't understand. The following is a report
of the error I'm receiving back from make.

----------------------------------------------------------------------

	for name in _adddi3 _subdi3 _muldi3 _divdi3 _moddi3 _udivdi3
_umoddi3 _negdi2  _anddi3 _iordi3 _xordi3 _lshrdi3 _lshldi3 _ashldi3
_ashrdi3 _one_cmpldi2   _bdiv _cmpdi2 _ucmpdi2 _fixunsdfdi _fixdfdi
_floatdidf _varargs; \
	do \
	  echo ${name}; \
	  ./gcc -B./ -fstrength-reduce -O -I. -I. -I./config  -c
-DL${name} ./gnulib2.c -o ${name}.o; \
	  ar rc gnulib ${name}.o; \
	  rm -f ${name}.o; \
	done
_adddi3
./gnulib2.c: In function badd:
./gnulib2.c:104: parse error before `size_t'
./gcc: Program cc1 got fatal signal 11.
*** Error code 1

Stop.
----------------------------------------------------------------------

Things I've done to get this far:

	Run config.gcc with the i386v option

	Gotten the alloca for the 386 that is available from the net.

	Had a problem with size_t in stddef.h, apparently Xenix defined
	size_t but not _SIZE_T, so I commented out those lines.

	Could not get hard-params to complete float.h, (it seemed to go
	into an infinite loop while trying to find the minimun value for
	double float) so I used the float.h we have in
	/user/include/dos. 

The following are the lines that are referenced by the error.

----------------------------------------------------------------------
static int 
badd (a, b, c, n)
     unsigned short *a, *b, *c;
     size_t n;
----------------------------------------------------------------------

If anyone can help me please email me at cstew@rwing or allan@kolvir.
Thanx in advance.

-- 
+-----------------------------------------------------------------+
| Chris Stewart aka Xopher                                        |
| cstew@rwing ..!uw-beaver!uw-entropy!dataio!pilchuck!rwing!cstew |
| allan@eskimo ..!uw-beaver!uw-entropy!quick!eskimo!allan         |