This is the mail archive of the gcc@gcc.gnu.org mailing list for the EGCS project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[FAQ patch] Re: GCC 2.95 Build succesful on hppa2.0-hp-hpux10.20


On Aug  4, 1999, "Jussi Lassila" <jussi.lassila@comptel.com> wrote:

> For some reason though, when I used the --with-gnu-as option, it did
> not find/use the gnu assembler

--with-gnu-as does not tell gcc to *look* for GNU as, it just tells it
to assume the assembler it will find is GNU as.  As stated in the FAQ,
gcc -print-search-dirs tells which directories it searches, and only
if it does not find an assembler in any of those directories will it
search the PATH.  So you have to create links before you start
building, or create them in the build directories too, as explained
in the patch below.

Index: faq.html
===================================================================
RCS file: /egcs/carton/cvsfiles/wwwdocs/htdocs/faq.html,v
retrieving revision 1.139
*** faq.html	1999/07/30 05:30:55	1.139
--- faq.html	1999/08/05 01:27:15
***************
*** 398,403 ****
--- 398,410 ----
  
  <hr>
  <h2><a name="gas">GCC can not find GNU as/GNU ld</a></h2>
+ <p>GCC searches the PATH for an assembler and a loader, but it only
+ does so after searching a directory list hard-coded in the gcc
+ executables.  Since, on most platforms, the hard-coded list includes
+ directories in which the system asembler and loader can be found, you
+ may have to take one of the following actions to arrange that gcc uses
+ the GNU versions of those programs.</p>
+ 
  <p>To ensure that GCC finds the GNU assembler (the GNU loader), which
  are required by <a href="install/specific.html">some configurations</A>,
  you should configure these with the same --prefix option as you used
***************
*** 407,422 ****
  <p>Another alternative is to create links to GNU as and ld in any of
  the directories printed by the command `<tt>gcc -print-search-dirs |
  grep '^programs:'</tt>'.  The link to `<tt>ld</tt>' should be named
! `<tt>real-ld</tt>' if `<tt>ld</tt>' already exists.</p>
  
! <p>GCC 2.95 allows you to specify the full pathname of
! the assembler and the linker to use.  The configure flags are
  `<tt>--with-as=/path/to/as</tt>' and `<tt>--with-ld=/path/to/ld</tt>'.
  GCC will try to use these pathnames before looking for `<tt>as</tt>'
  or `<tt>(real-)ld</tt>' in the standard search dirs.  If, at
  configure-time, the specified programs are found to be GNU utilities,
  `<tt>--with-gnu-as</tt>' and `<tt>--with-gnu-ld</tt>' need not be
! used; these flags will be auto-detected.</p>
  
  <hr>
  <h2><a name="environ">cpp: Usage:... Error</a></h2>
--- 414,435 ----
  <p>Another alternative is to create links to GNU as and ld in any of
  the directories printed by the command `<tt>gcc -print-search-dirs |
  grep '^programs:'</tt>'.  The link to `<tt>ld</tt>' should be named
! `<tt>real-ld</tt>' if `<tt>ld</tt>' already exists.  If such links do
! not exist while you're compiling GCC, you may have to create them in
! the build directories too, within the <tt>gcc</tt> directory
! <em>and</em> in all the <tt>gcc/stage*</tt> subdirectories.</p>
  
! <p>GCC 2.95 allows you to specify the full pathname of the assembler
! and the linker to use.  The configure flags are
  `<tt>--with-as=/path/to/as</tt>' and `<tt>--with-ld=/path/to/ld</tt>'.
  GCC will try to use these pathnames before looking for `<tt>as</tt>'
  or `<tt>(real-)ld</tt>' in the standard search dirs.  If, at
  configure-time, the specified programs are found to be GNU utilities,
  `<tt>--with-gnu-as</tt>' and `<tt>--with-gnu-ld</tt>' need not be
! used; these flags will be auto-detected.  One drawback of this option
! is that it won't allow you to override the search path for assembler
! and linker with command-line options <tt>-B/path/</tt> if the
! specified filenames exist.</p>
  
  <hr>
  <h2><a name="environ">cpp: Usage:... Error</a></h2>

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]