home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14038 < prev    next >
Encoding:
Text File  |  1992-12-14  |  11.9 KB  |  401 lines

  1. Xref: sparky comp.sys.hp:14038 gnu.gcc.help:2737
  2. Newsgroups: comp.sys.hp,gnu.gcc.help
  3. Path: sparky!uunet!utcsri!torn!nott!emr1!mathieu
  4. From: mathieu@geod.emr.ca (Pierre Mathieu)
  5. Subject: GNU Tools on HP9000/700: what works and what doesn't list - V1.2
  6. Message-ID: <mathieu.724354014@gdim>
  7. Summary: A list of GNU successes and failures on HP
  8. Keywords: GNU HP
  9. Sender: news@emr1.emr.ca
  10. Nntp-Posting-Host: gdim.geod.emr.ca
  11. Organization: Dept. of Energy, Mines, and Resources, Ottawa
  12. Date: Mon, 14 Dec 1992 17:26:54 GMT
  13. Lines: 386
  14.  
  15.  
  16. Due to the recent coming out of GCC 2.3.2, here is revision 1.2 of the list.
  17.  
  18. For those who may be interested in getting the GNU products for the
  19. HP9000 Series 700 systems HP-UX 8.07, here is a list of the results
  20. I have obtained with the packages available at prep.ai.mit.edu.
  21.  
  22. All of the results are based on compilation with GCC 2.3.2 and
  23. not on the use of the HP C compiler. A section is included
  24. in the list for applications that did not compile with
  25. GCC but did with HP C.
  26.  
  27. The last part of the listing contains the applications I can't get to
  28. compile. If you got them to compile with GCC 2.3.2 and can send
  29. me fixes, I'll include them in this list.
  30.  
  31. Note: To compile GCC 2.3.2 with debugging support, you must have the
  32.       UTAH GAS 1.36 version from jaguar.cs.utah.edu: pa-gas.u3.tar.Z.
  33.  
  34. Note also that for most of the products that fail to compile below, the fault 
  35. lies with the compiled package and not with GCC 2.3.2. Some of these packages
  36. are getting a bit out of date. ;-)
  37.  
  38. Furthermore, note that all the packages tested below are available from
  39. my archive site at geod.emr.ca (132.156.33.33) in the /pub/gnu directory
  40. and in the /pub/hp directory for HP specific items including jaguar
  41. packages and HP specific patch kits.
  42.  
  43. Finally, hats off to the guys at UTAH for their porting efforts!
  44.  
  45.  
  46. GNU products that compile fine:
  47. ------------------------------
  48.  
  49. bison-1.19
  50. c-torture-test     (a few warnings, but nothing serious)
  51. cpio-2.2
  52. diff-2.0
  53. emacs-18.58
  54. emacs-18.59        (had troubles with installation although it compiles OK)
  55. fileutils-3.4
  56. find-3.7
  57. flex-2.3.7
  58. fontutils-0.6 
  59. gas-1.36.utah      (from jaguar.cs.utah.edu pa-gas.u3.tar.Z)
  60. gcc-2.3.2
  61. gdb-4.6            (with pa-gdb-4.6.tar.Z patches from jaguar.cs.utah.edu)
  62. ghostview-1.4
  63. gmp-1.2
  64. gnugo-1.1
  65. gptx-0.2
  66. grep-1.6
  67. hello-1.1
  68. indent-1.6
  69. ispell-eeadfa-p0+9 (available from our site geod.emr.ca in /pub/hp or from
  70.                     its mother sites in Australia: 
  71.                     mirriwinni.ee.adfa.oz.au or evans.ee.adfa.oz.au
  72.                     care of Phillip Musumeci, phillip@mirriwinni.ee.adfa.oz.au)
  73. libg++-2.3
  74. patch-2.0.12u8
  75. perl-4.035
  76. sed-1.11
  77. shellutils-1.8
  78. tar-1.10
  79. termcap-1.1
  80. texi2roff-2.0
  81. texinfo-2.16
  82. textutils-1.3
  83. xinfo-1.01.01
  84.  
  85.  
  86. GNU products that compile fine with notes:
  87. -----------------------------------------
  88.  
  89. 1) rcs-5.6
  90.  
  91. Paul Eggert (eggert@twinsun.com) adds:
  92. "Note that you must set has_mmap to 0 manually in
  93. rcs/src/conf.h to work around a kernel bug in HP-UX 8.07 that
  94. causes the kernel to crash whenever you use RCS on NFSed files.
  95. HP patch PHKL_0942 fixes this kernel bug."
  96.  
  97.  
  98. 2) ghostscript-2.5.2  (and fonts)
  99.  
  100. The executable doesn't work properly.
  101.  
  102.  
  103. 3) tar-1.11
  104.  
  105. Executable is buggy; dumps a lot of stuff to screen.
  106.  
  107.  
  108.  
  109. GNU products that don't support (yet?) HP9000/700:
  110. -------------------------------------------------
  111.  
  112. dld-3.2.3
  113. gas-1.38.1
  114. gdb-4.7
  115. glibc-1.05
  116.  
  117.  
  118.  
  119. GNU products that don't compile because another product doesn't:
  120. ---------------------------------------------------------------
  121.  
  122. autoconf-1.2    (m4-1.0)
  123.  
  124.  
  125.  
  126. GNU products not yet examined (don't have time right now):
  127. ---------------------------------------------------------
  128.  
  129. ae
  130. f2c-3.2.90
  131. finger-1.37
  132. gnuplot-3.2
  133. ms-0.06
  134. mtools-2.0.7
  135. nihcl-2.2
  136. smalltalk-1.1.1
  137. tile-forth-2.1
  138. xboard-2.0
  139.  
  140.  
  141.  
  142. GNU products not examined (and I don't plan to):
  143. -----------------------------------------------
  144.  
  145. button.3.00
  146. dirent
  147. elvis-1.6       (fine on PC; don't care on HP)
  148. fax-3.2.1       (don't have a FAX modem)
  149. fgrep-1.1       (too old to be interesting)
  150. iostream-0.50
  151. ispell-2.0.02   (use ispell-eeadfa-p0+9 instead)
  152. malloc-0.1
  153. oleo-0.03.2     (too old to be interesting)
  154. readline-1.1    (GDB 4.6 readline lib compiles just fine)
  155. uucp-1.03       (UUCP on HP is Honey-Danber)
  156. vh-1.3
  157.  
  158.  
  159.  
  160. GNU products that don't compile with GCC 2.3.1 but do with HP C:
  161. ---------------------------------------------------------------
  162.  
  163. bash-1.12
  164. bc-1.02
  165. binutils-2.0
  166. m4-1.0
  167. screen-3.2b
  168. time-1.4
  169. tput-1.0
  170.  
  171.  
  172. And now for the fun stuff.
  173.  
  174.  
  175. GNU products that compile with easy fixes:
  176. -----------------------------------------
  177.  
  178. 1) cperf-2.1
  179.  
  180. gcc -DLO_CAL -DGATHER_STATISTICS  -O -fstrength-reduce -fomit-frame-pointer -fdelayed-branch -finline-functions  -o gperf options.o iterator.o main.o perfect.okeylist.o listnode.o xmalloc.o hashtable.o boolarray.o readline.o stderr.o version.o getopt.o
  181. ld: Unsatisfied symbols:
  182.    srandom (code)
  183.    random (code)
  184. collect: /bin/ld returned 1 exit status
  185.  
  186. FIX:
  187.  
  188. Add 
  189.  
  190. #define random rand
  191. #define srandom srand
  192.  
  193. to options.h
  194.  
  195.  
  196. 2) cvs-1.3
  197.  
  198. gcc -O -g -DDIRENT -DSTDC_HEADERS -DPOSIX -I. -I../lib    -c subr.c -o subr.o
  199. In file included from subr.c:11:
  200. cvs.h:282: conflicting types for `gethostname'
  201. /usr/include/sys/unistd.h:265: previous declaration of `gethostname'
  202.  
  203. Fix:
  204.  
  205. Comment out the line
  206.  
  207. int gethostname (char *name, int namelen);
  208.  
  209. in cvs.h
  210.  
  211.  
  212. 3) make-3.62
  213.  
  214. gcc -O -DUSG -DUSGr3 -DHPUX -DHAVE_DUP2  -g  -c load.c
  215. In file included from /usr/include/fcntl.h:9, from load.c:181:
  216. /usr/include/sys/fcntl.h:149: conflicting types for `open'
  217. /usr/include/sys/fcntl.h:149: A parameter list with an ellipsis can't match
  218. /usr/include/sys/fcntl.h:149: an empty parameter name list declaration.
  219. make.h:230: previous declaration of `open'
  220.  
  221. Fix: (thanks to Arnaud Fevrier: fevrier@simtoul.fr)
  222.  
  223. Change line 230 in make.h from
  224.  
  225. extern int pipe (), close (), read (), write (), open ();
  226.  
  227. to 
  228.  
  229. #ifdef HPUX
  230. extern int pipe (), close (), read (), write (), open (const char *, int, ...);#else
  231. extern int pipe (), close (), read (), write (), open ();
  232. #endif
  233.  
  234. and compile with
  235.  
  236. defines = -DHPUX -DUSG -DUSGr3 -DHAVE_DUP2 -DKERNEL_FILE_NAME=\"/hp-ux\"
  237.  
  238. You can use alloca.c from the gcc-2.3.1.u2 package.
  239.  
  240.  
  241.  
  242. GNU products that don't compile and associated errors:
  243. -----------------------------------------------------
  244.  
  245.  
  246. A - getopt problems:
  247.  
  248. 2) bc-1.02
  249.  
  250. gcc -O -g -D_POSIX_SOURCE   -c bc.c -o bc.o
  251. In file included from bc.c:33:
  252. proto.h:164: conflicting types for `getopt'
  253. /usr/include/stdlib.h:173: previous declaration of `getopt'
  254.  
  255. 3) m4-1.0 
  256.  
  257. Francois Pinard (pinard@iro.umontreal.ca) promised that this
  258. would be fixed in the next release. :-)
  259.  
  260. gcc -O -g -Ilib -DUSG -DHPUX -c m4.c -o m4.o
  261. In file included from m4.c:22:
  262. lib/getopt.h:99: conflicting types for `getopt'
  263. /usr/include/stdlib.h:173: previous declaration of `getopt'
  264.  
  265. 4) tput-1.0
  266.  
  267. gcc -O -I. -g -DSTDC_HEADERS   -c getopt.c -o getopt.o
  268. getopt.c: In function `getopt':
  269. getopt.c:254: argument `argv' doesn't match prototype
  270.  
  271.  
  272. B - Others:
  273.  
  274. 1) bash-1.12
  275.  
  276. This is the first error to popup but there is also a getopt error.
  277.  
  278. gcc -O -c -g  -DHAVE_VFPRINTF -DHAVE_UNISTD_H -DHAVE_GETGROUPS -DHAVE_RESOURCE -DVOID_SIGHANDLER -DHPUX_70 -DHAVE_WAIT_H  -DHAVE_DUP2 -DHAVE_STRERROR -D"hpux" -DHPUX -DSHELL -DHAVE_ALLOCA  -I/users/root/gnu/src/NotInstalled/bash-1.12 -I/users/root/gnu/src/NotInstalled/bash-1.12/./lib/ -I. -I./lib/ ulimit.c
  279. builtins/ulimit.def: In function `pipesize':
  280. builtins/ulimit.def:474: parse error before `)'
  281. builtins/ulimit.def:555: `mode' undeclared (first use this function)
  282. builtins/ulimit.def:555: (Each undeclared identifier is reported only once
  283. builtins/ulimit.def:555: for each function it appears in.)
  284. builtins/ulimit.def:561: `cmd' undeclared (first use this function)
  285. builtins/ulimit.def:572: parse error before `static'
  286. builtins/ulimit.def:581: parse error at end of input
  287. make[2]: *** [ulimit.o] Error 1
  288. make[1]: *** [builtins/libbuiltins.a] Error 1
  289.  
  290. 2) binutils-2.0
  291.  
  292. gcc -O -c -g -DHOST_SYS=HPPAHPUX_SYS -DSELECT_ARCHITECTURES=bfd_hppa_arch -DUSG -I. -I. -I./../include  hppa.c
  293. hppa.c:636: parse error before `_core_file_failing_command'
  294.  
  295. 3) gawk-2.14
  296.  
  297. Compiles with "configure sysv3" (it would be nice to have a "configure hp" in
  298. the next release) and some touch ups to the config.h file but
  299. bombs when you run "make test". A sample:
  300.  
  301. gawk: swaplns.awk:5: fatal error: internal error
  302. /bin/sh: 11588 abort - core dumped
  303. make[1]: *** [swaplns] Error 134
  304. /bin/sh: 11590 abort - core dumped
  305. make[1]: *** [messages] Error 134
  306. gawk: argarray.awk:7: fatal error: internal error
  307. /bin/sh: 11592 abort - core dumped
  308. make[1]: *** [argarray] Error 134
  309. gawk: longwrds.awk:6: fatal error: internal error
  310. cmp longwrds.good tmp && rm -f tmp
  311. cmp: EOF on tmp
  312. make[1]: *** [longwrds] Error 1
  313. cmp getline.good tmp && rm -f tmp
  314. cmp: EOF on tmp
  315.  
  316.  
  317. 4) gdbm-1.5
  318.  
  319. gcc -g -O -DSYSV   -c gdbmreorg.c -o gdbmreorg.o
  320. In file included from gdbmdefs.h:36, from gdbmreorg.c:31:
  321. systems.h:39: warning: `L_SET' redefined
  322. /usr/include/sys/file.h:121: warning: this is the location of the previous definition
  323. gdbmreorg.c:45: warning: static declaration for `rename' follows non-static
  324. gdbmreorg.c: In function `rename':
  325. gdbmreorg.c:47: argument `old_name' doesn't match prototype
  326. gdbmreorg.c:47: argument `new_name' doesn't match prototype
  327.  
  328.  
  329. 5) gnuchess-4.0
  330.  
  331. gcc -g -DAG4 -DQUIETBACKGROUND -DNOSCORESPACE -DHISTORY -O  -DHASHFILE=\"/usr/local/gnu/games/lib/gnuchess.hash\" -DLANGFILE=\"/usr/local/gnu/games/lib/gnuchess.lang\" -DBOOK=\"/usr/local/gnu/games/lib/gnuchess.book\" -c genmoves.c
  332. sh: Warning!  The following language(s) are not available:
  333.                 LANG=-DLANGFILE=\"$(LIBDIR)/gnuchess.lang\"
  334. Continuing processing using the language "C".
  335. gcc: Internal compiler error: program cc1 got fatal signal 6
  336. make: *** [genmovesN.o] Error 1
  337.  
  338.  
  339. 6) graphics-0.17
  340.  
  341. lots of errors. Samples:
  342.  
  343. gcc -g -O -I/usr/include/X11R4 -I/usr/local/include/X11R4 -o plot2tek plot.o ../getopt/getopt.o ../getopt/getopt1.o libtek.a -lm
  344. ld: Unsatisfied symbols:
  345.    drem (code)
  346. collect: /bin/ld returned 1 exit status
  347.  
  348. gcc -g -O -I/usr/include/X11R4 -I/usr/local/include/X11R4 -o plot2ps plot.o  ../getopt/getopt.o ../getopt/getopt1.o libps.a -lm
  349. ld: Unsatisfied symbols:
  350.    drem (code)
  351. collect: /bin/ld returned 1 exit status
  352.  
  353. gcc -g -O -I/usr/include/X11R4 -I/usr/local/include/X11R4 -o plot2fig plot.o ../getopt/getopt.o ../getopt/getopt1.o libfig.a -lm
  354. ld: Unsatisfied symbols:
  355.    re_exec (code)
  356.    re_comp (code)
  357. collect: /bin/ld returned 1 exit status
  358.  
  359.  
  360. 7) groff-1.06
  361.  
  362. Runing configure gives the following message
  363.  
  364. checking for grops to derive installation directory prefix
  365. checking for gcc
  366. checking if C compiler is also a C++ compiler
  367. checking that C++ compiler can compile very simple C++ program
  368. checking that C++ static constructors and destructors are called
  369. gcc -O is not installed correctly: static constructors and destructors do not work
  370.  
  371.  
  372. 8) screen-3.2b
  373.  
  374. gcc -O -c -g  -I. -DETCSCREENRC=\"/usr/local/gnu/lib/screenrc\" ./screen.c
  375. In file included from ./screen.c:333:
  376. ./extern.h:57: conflicting types for `wait3'
  377. /usr/include/sys/wait.h:81: previous declaration of `wait3'
  378. ./extern.h:73: conflicting types for `crypt'
  379. /usr/include/sys/unistd.h:237: previous declaration of `crypt'
  380. ./extern.h:86: conflicting types for `putenv'
  381. /usr/include/stdlib.h:155: previous declaration of `putenv'
  382. ./screen.c:343: conflicting types for `select'
  383. /usr/include/sys/time.h:146: previous declaration of `select'
  384. ./screen.c: In function `main':
  385. ./screen.c:1054: warning: passing arg 2 of `signal' from incompatible pointer type
  386. etc...
  387.  
  388. 9) time-1.4
  389.  
  390. gcc -O -c -g  -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_STRERROR=1 -DHAVE_DOPRNT=1 -I. time.c
  391. time.c:93: conflicting types for `wait3'
  392. /usr/include/sys/wait.h:81: previous declaration of `wait3'
  393. time.c: In function `run_command':
  394. time.c:636: warning: passing arg 2 of `execvp' from incompatible pointer type
  395. m
  396. --
  397. Pierre Mathieu                          "We have seen the enemy,
  398. Geodetic Survey of Canada                  and the enemy is us."
  399. Ottawa, Canada                                                Pogo
  400. Internet: mathieu@geod.emr.ca
  401.