This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


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

Re: Q: -fhonor-std / how to include "gas"


>>>>> "N8TM" == N8TM  <N8TM@aol.com> writes:

N8TM> In that case, you will need links such as

[...]

Yes, I have such links.

N8TM> Now it says you are trying to build using a gcc which is
N8TM> configured to use gnu-as but can't find it.

Thanks. I corrected that with my gcc-2.8.1, and could configure, build
and install egcs 1.1.2.

% ../egcs-1.1.2/configure --prefix=/tools/contrib/HP-UX/B.10.20/hppa1.1/packages/egcs --enable-shared --enable-haifa --with-as=/tools/contrib/HP-UX/B.10.20/hppa1.1/bin/gas
Configuring for a hppa1.1-hp-hpux10.20 host.
Created "Makefile" in /tools/contrib/gen/src/egcs-1.1.2-hppa1.1-bld using "mh-frag" and "mt-frag"
Links are now set up to build a native compiler for hppa1.1-hp-hpux10.20
% make
[ warnings about -g for cc1, and the for cc1plus ]
% make install
[...]
%

However, the situation with it is still the same as previously: with
the new gcc (egcs-2.91.66), I cannot build debuggable code, and
playing with it the same trick I did with 2.8.1, i.e. linking
gnu/bin/as to the first directory pointed by the "programs" filed in
the output of "gcc -print-search-dirs", does not affect:

% bash
% cd $(gcc -print-search-dirs | grep programs | cut -d : -f 2)
% ./as --version
GNU assembler 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `hppa1.1-hp-hpux10.20'.
% echo "int main() {return 0;}" > /tmp/foo.C
% gcc -c -g /tmp/foo.C -o /tmp/foo.o
cc1plus: warning: -g is only supported when using GAS on this processor,
cc1plus: warning: -g option disabled.
% gcc -c -g -mgas /tmp/foo.C -o /tmp/foo.o
% 

So, something is still wrong, but what?
Shouldn't I need to access gas during the interndiate stages of the
building of gcc?

Best Regards!
Marc

-- 
Marc Girod                Hiomo 5/1          Voice:  +358-9-511 23746
Nokia Telecommunications  P.O. Box 320       Mobile: +358-40-569 7954
NWS/NMS/NMS for Data      00045 NOKIA Group  Fax:    +358-9-511 23580
                          Finland            marc.girod@ntc.nokia.com