Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!news.clark.edu!spool.mu.edu!howland.reston.ans.net!cs.utexas.edu!uunet!newsflash.concordia.ca!CC.UMontreal.CA!IRO.UMontreal.CA!sarrazin From: sarrazin@IRO.UMontreal.CA (Pierre Sarrazin) Subject: Problems when building gcc 2.6.0 Message-ID: <CvFwA1.E9D@IRO.UMontreal.CA> Summary: SYSCALLS.c complains that wchar_t is not defined Sender: news@IRO.UMontreal.CA Organization: Universite de Montreal, Canada Date: Thu, 1 Sep 1994 07:17:59 GMT Lines: 38 I'm having problems building gcc 2.6.0 on my FreeBSD system [FreeBSD 1.1.5.1(RELEASE) (GENERICAH) #0]. I used "./configure" to configure the distribution and i386-unknown-freebsd was found to be the description of my system (it is actually a 486). I used the following command line to build the stage 2 compiler: nice +20 make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O" LANGUAGES="c c++ proto" | & nice +20 tee .err2 Here is the end of the output of make: stage1/xgcc -Bstage1/ -DIN_GCC -g -O -o xgcc gcc.o version.o obstack.o ` case "stage1/xgcc -Bstage1/" in "cc") echo "" ;; esac ` rm -f SYSCALLS.c tmp-SYSCALLS.s cat ./sys-types.h ./sys-protos.h > SYSCALLS.c ./xgcc -B./ -DIN_GCC -g -O -I./include -I. -I. -I./config -aux-info SYSCALLS.c.X -S -o tmp-SYSCALLS.s SYSCALLS.c SYSCALLS.c:923: parse error before `wchar_t' SYSCALLS.c:923: `mbftowc' declared as function returning a function SYSCALLS.c:923: parse error before `int' SYSCALLS.c:925: parse error before `*' SYSCALLS.c:926: parse error before `*' SYSCALLS.c:1153: warning: parameter names (without types) in function declaration SYSCALLS.c:1481: parse error before `*' SYSCALLS.c:1482: parse error before `wchar_t' SYSCALLS.c:1499: warning: parameter names (without types) in function declaration *** Error code 1 Stop. All those errors are due to the presence of "wchar_t" in function prototypes. It seems like the #include <stddef.h> directive in SYSCALLS.c somehow doesn't produce a definition for wchar_t. What could be the best way to correct that? -- Pierre Sarrazin <sarrazin@iro.umontreal.ca>