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


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

Using GNU as with EGCS 1.1.1 on HP/UX 10.20? (small patch)



Hm, not sure which mailing-list to send this to.  I hope the generic
list is OK. :-)

BTW:  I'm not on the list, so please send any replies with copies to
me. :-)

How do I get EGCS 1.1.1 to choose GNU as instead of the native as on
HP/UX?  GNU as (binutils 2.9.1) and GNU CC (gcc 2.8.1) is installed
with --prefix=/store, and to avoid conflicts, I want to install EGCS
with --prefix=/store/opt/egcs.  When I do this I am unable to get it
to find GNU as.  This also failed with v1.1b.

I use this to compile the compiler

  CC='cc -Ae' ./configure --prefix=/store/opt/egcs --with-as=/store/bin/gas
  gmake bootstrap

As usual the output from two stages differ.  (HP/UX adds timestamp to
the object files).

Anyway.  It still is unable to find GNU as.  During compile I get lots
of 'cc1: warning: -g is only supported when using GAS on this
processor' and it still seems to search /usr/ccs/bin instead of
/store/bin:

  ./stage2/xgcc  -print-search-dirs | grep   '^programs:'|tr : "\n"
  programs
  /store/opt/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.60/
  /store/opt/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/
  /usr/lib/gcc/hppa1.1-hp-hpux10.20/egcs-2.91.60/
  /usr/lib/gcc/hppa1.1-hp-hpux10.20/
  /store/opt/egcs/hppa1.1-hp-hpux10.20/bin/hppa1.1-hp-hpux10.20/egcs-2.91.60/
  /store/opt/egcs/hppa1.1-hp-hpux10.20/bin/
  /usr/ccs/bin/hppa1.1-hp-hpux10.20/egcs-2.91.60/
  /usr/ccs/bin/

Any clues?

I need a working EGCS compiler to get KDE (with KOffice) to compile,
so I'm not ready to quit yet. :-)

Here is a patch I had to apply to get it to compile with the native
compiler.  It seems to beleave that
'func(short name)' and 'func(name) short name' are different!

diff -ru src-1.1.1/gcc/except.c src-1.1.1-hppa20ux10/gcc/except.c
--- src-1.1.1/gcc/except.c      Sun Nov  8 11:44:50 1998
+++ src-1.1.1-hppa20ux10/gcc/except.c   Thu Dec  3 21:23:01 1998
@@ -1952,15 +1952,15 @@
 static short version_code = 0; 
 
 /* This routine will set the language code for exceptions. */
-void set_exception_lang_code (code)
-     short code;
+void set_exception_lang_code (short code)
+/*     short code; */
 {
   language_code = code;
 }
 
 /* This routine will set the language version code for exceptions. */
-void set_exception_version_code (code)
-     short code;
+void set_exception_version_code (short code)
+/*      short code; */
 {
   version_code = code;
 }

Happy hacking,
-- 
##>  Petter Reinholdtsen <##    | pere@td.org.uit.no
 O-  <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/    | Go Mozilla, go! Go!


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