home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / g / help / 1639 < prev    next >
Encoding:
Text File  |  1993-01-06  |  3.5 KB  |  107 lines

  1. Newsgroups: gnu.g++.help,gnu.g++
  2. Path: sparky!uunet!panther!mothost!white!fwmnm38!fwhnm0f!sscott
  3. From: sscott@fwhnm0f.fwrdc.rtsg.mot.com (Steve Scott)
  4. Subject: Parse errors during build of gcc-2.3.3
  5. Reply-To: sscott@mot.com
  6. Organization: Motorola, Inc. Fort Worth Research and Development Center
  7. Date: Wed, 6 Jan 1993 20:41:59 GMT
  8. Message-ID: <sscott.726352919@fwhnm0f>
  9. Summary: Parse errors during build of gcc-2.3.3
  10. Keywords: g++ parse errors SysVR4
  11. Sender: news@fwnmn38@fwrdc.rtsg.mot.com (News Accnt.)
  12. Nntp-Posting-Host: fwhnm0f.fwrdc.rtsg.mot.com
  13. Lines: 92
  14.  
  15.  
  16. Configuration:
  17.  
  18. Motorola 187 (88100 single board CPU), 32 Mbytes, 1.2 Gbyte disk, etc.
  19. SysV R4 V3 operating system (V3 is Motorola's internal version number).
  20.  
  21. I am attempting to build gcc-2.3.3.  I have configured gcc via:
  22.  
  23. ./configure m88k-motorola-sysv4
  24.  
  25. The problem comes (quite a ways into the build) with a prototype found in
  26. /usr/include/stdio.h.
  27.  
  28. Following is the error prone portion of the output from the build:
  29.  
  30.     for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2  _lshrdi3 _lshldi3 _ashldi3 _ashrdi3   _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf  _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi  __gcc_bcmp _varargs _eprintf _builtin_new _caps_New _builtin_del  _bb _shtab _clear_cache _trampoline __main _exit _ctors; \
  31.     do \
  32.       echo ${name}; \
  33.       ./xgcc -B./ -O2  -DIN_GCC -DNO_BUGS -D__STDC__=0  -g  -g1 -I. -I. -I./config -c -DL${name} \
  34.           ./libgcc2.c -o ${name}.o; \
  35.       if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  36.       ar rc tmplibgcc2.a ${name}.o; \
  37.       rm -f ${name}.o; \
  38.     done
  39. _muldi3
  40. _divdi3
  41. _moddi3
  42. _udivdi3
  43. _umoddi3
  44. _negdi2
  45. _lshrdi3
  46. _lshldi3
  47. _ashldi3
  48. _ashrdi3
  49. _udiv_w_sdiv
  50. _udivmoddi4
  51. _cmpdi2
  52. _ucmpdi2
  53. _floatdidf
  54. _floatdisf
  55. _fixunsdfsi
  56. _fixunssfsi
  57. _fixunsdfdi
  58. _fixdfdi
  59. _fixunssfdi
  60. _fixsfdi
  61. __gcc_bcmp
  62. _varargs
  63. _eprintf
  64. In file included from ./libgcc2.c:1155:
  65. /usr/include/stdio.h:200: parse error before `__gnuc_va_list'
  66. /usr/include/stdio.h:201: parse error before `__gnuc_va_list'
  67. /usr/include/stdio.h:205: parse error before `__gnuc_va_list'
  68. *** Error code 1 (bu21)
  69. current working directory is: = /usr1/src/gcc-2.3.3
  70.  
  71. make: fatal error.
  72.  
  73.  
  74. Following is the significant lines from /usr/include/stdio.h:
  75.  
  76. #if __GNUC__ > 1
  77. #define __need___va_list
  78. #include <stdarg.h>
  79. extern int      vfprintf(FILE *, const char *, __gnuc_va_list);
  80. extern int      vprintf(const char *, __gnuc_va_list);
  81. #if __BSD__
  82. extern char     *vsprintf(char *, const char *, __gnuc_va_list);
  83. #else
  84. extern int      vsprintf(char *, const char *, __gnuc_va_list);
  85. #endif
  86.  
  87.  
  88. I COULD use -D__GNUC__=0 (for example) to force the use of the non-ANSI
  89. style prototypes (not shown here for brevity).  But, what I really would
  90. like to know is why the standard cc compiler expects that there is a
  91. parse error before __gnuc_va_list).  I SUSPECT that it has something to
  92. do with a typedef or macro expansion.
  93.  
  94. Have any of you out there built gcc-2.3.3 on a system similar to mine?
  95.  
  96. Thanks,
  97.  
  98. --
  99. +----------------------------------------------------------------------------+
  100. | Steve Scott                                | Internet: sscott@mot.com      |
  101. | Fort Worth Research and Development Center | UUCP:     uunet!motcid!sscott |
  102. | Cellular Infrastructure Group              | Internal: TX14/1D             |
  103. | Radio Telephone Systems Group              | Voice:    (817) 232-6317      |
  104. | Motorola, Inc.                             | Fax:      (817) 232-6148      |
  105. |               The opinions contained herein are STRICTLY my own            |
  106. +----------------------------------------------------------------------------+
  107.