Unisoft_bug 1.1 KB

123456789101112131415161718192021222324252627
  1. The following modifications to the file-system are required when
  2. installing ACK under UniSoft Unix:
  3. 1) Create a writable directory /tmp (if not present already)
  4. mkdir /tmp
  5. chmod 777 /tmp
  6. 2) Install the file "assert.h" in /usr/include (this file is not
  7. included in the Unisoft distribution, although it is standard V7 Unix).
  8. The file can be copied from the ACK-tree:
  9. cp /usr/em/include/assert.h /usr/include
  10. The UniSoft C compiler we used contains a bug that will cause
  11. incorrect translations of the files getline.c and putline.c in
  12. the directory util/opt (which contains the EM Peephole Optimizer).
  13. To get around this bug, act as follows (after having compiled
  14. the entire kit):
  15. 1) compile the files getline.c and putline.c by hand to assembly code
  16. (cc -S getline.c putline.c)
  17. 2) edit the files getline.s and putline.s. Look for the instruction:
  18. add.l #em_flag+ .... ,a0
  19. which appears TWICE in both files
  20. and change it into:
  21. add.l #em_flag-1,a0
  22. 3) do cc -c getline.s
  23. cc -c putline.s
  24. to create new object files getline.o and putline.o
  25. 4) throw away the file "opt" and type make