home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / apollo / 3413 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  2.0 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!ucbvax!cel.cummins.com!philip
  2. From: philip@cel.cummins.com (Philip D. Pokorny)
  3. Newsgroups: comp.sys.apollo
  4. Subject: Re: DSEE and f77
  5. Message-ID: <9209011609.AA01733@cel.cummins.com>
  6. Date: 1 Sep 92 16:09:50 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 42
  11.  
  12. Bill Smith asks:
  13. >                  It looks like when I do a build that the f77 compiler
  14. > either dies on the combination of options I give it or if it does work
  15. > it puts the binary files into the working directory instead of the
  16. > system where they belong.  Then when it tries to link it looks to the
  17. > system for the object modules,can not find them, and fails.  I can
  18. > manually link the object modules outside DSEE and they seem to work OK
  19. > so I think it is probably a problem with my model.
  20. >      DEFAULT FOR ?* =
  21. >           SHELL '/bin/csh -f';
  22. >           TRANSLATE               
  23. >                f77  -c -g -Asystype,sys5.3 -WO,-nuc -o %RESULT %SOURCE 
  24.                       ^^                              ^^^
  25. Here's the problem.  The man pag for f77 says that -o is where
  26. to put the FINAL executable (instead of calling it a.out) 
  27. Since you are only compiling (-c) not linking, f77 ignores the
  28. -o option.  What you need to do is use the (-W0,-bx,%RESULT.o)
  29. option.  This uses the -W0 option to pass a "special" option to
  30. the compiler.  The -bx option tells the compiler to place the
  31. object file in a file with EXACTLY the name %RESULT.o (after
  32. DSEE substitution...)
  33.  
  34.      SHELL '/bin/csh -f';
  35.      TRANSLATE
  36.           ld %RESULT_OF(?*.f).o -o %RESULT
  37.           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  38. Warning...  This is HORIZONTAL expansion.  It is very easy to
  39. overflow the DSEE/shell line length limits.  It's much safer to
  40. do something like:
  41.  
  42.           ld \
  43.             %VERTICAL %RESULT_OF(?*.f).o \
  44.             -o %RESULT
  45.  
  46. > I have called HP/Apollo about the problem but was wondering if any other
  47. They usually do a pretty good job...
  48. Sincerely,
  49. Philip D. Pokorny
  50. philip@cel.cummins.com
  51. :)
  52.  
  53.