This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Q: -fhonor-std / how to include "gas"
- To: egcs at egcs dot cygnus dot com
- Subject: Re: Q: -fhonor-std / how to include "gas"
- From: Marc Girod <girod at stybba dot ntc dot nokia dot com>
- Date: 28 Mar 1999 19:22:45 +0200
- Distribution: Local
- References: <nms.mail.egcs/2afddf14.36fcfc92@aol.com>
>>>>> "N8TM" == N8TM <N8TM@aol.com> writes:
N8TM> The preferred procedure is to build the code in a directory
N8TM> separate from the source; e.g. a new directory just below the
N8TM> source. If you use the --with- gas, it points to the installed
N8TM> as:
N8TM> % ../configure --with-gas=<pathname of installed as>
OK. I did that, and it looked promising:
% ../egcs-1.1.2/configure --prefix=/tools/contrib/HP-UX/B.10.20/hppa2.0/packages/egcs --enable-shared --enable-haifa --with-gnu-as --with-gas=/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
%
Then, following the instructions, I did:
% make bootstrap
This went well until the first place where it attempted to build with
-g (but not with -mgas: maybe I should overwrite some default CFLAGS?)
where it gave the usual warnings:
gcc -DIN_GCC -g -DHAVE_CONFIG_H -DHAIFA -I. -I../../egcs-1.1.2/gcc -I../../egcs-1.1.2/gcc/config \
-DGCC_INCLUDE_DIR=\"/tools/contrib/HP-UX/B.10.20/hppa2.0/packages/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.66/include\" \
-DGPLUSPLUS_INCLUDE_DIR=\"/tools/contrib/HP-UX/B.10.20/hppa2.0/packages/egcs/include/g++\" \
-DOLD_GPLUSPLUS_INCLUDE_DIR=\"/tools/contrib/HP-UX/B.10.20/hppa2.0/packages/egcs/lib/g++-include\" \
-DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
-DCROSS_INCLUDE_DIR=\"/tools/contrib/HP-UX/B.10.20/hppa2.0/packages/egcs/hppa1.1-hp-hpux10.20/sys-include\" \
-DTOOL_INCLUDE_DIR=\"/tools/contrib/HP-UX/B.10.20/hppa2.0/packages/egcs/hppa1.1-hp-hpux10.20/include\" \
-c `echo ../../egcs-1.1.2/gcc/cccp.c | sed 's,^\./,,'`
cc1: warning: -g is only supported when using GAS on this processor,
cc1: warning: -g option disabled.
Anyway, later it did use the HP as (I guess) and failed:
./xgcc -B./ -DIN_GCC -g -I./include -c dummy.c
as: "/var/tmp/cciX40UP.s", line 10: error 1052: Directive name not recognized - FILE
[more errors]
make[2]: *** [libgcc1.null] Error 1
make[2]: Leaving directory `/tmp_mnt/tools/contrib/gen/src/egcs-1.1.2-hppa1.1-bld/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/tmp_mnt/tools/contrib/gen/src/egcs-1.1.2-hppa1.1-bld/gcc'
make: *** [bootstrap] Error 2
I did then a plain make.
I got a few errors for fix-header missing one intermediate directory:
fix-header: fixing SC/Pool.h
mkdir: cannot make directory `/tools/contrib/gen/src/egcs-1.1.2-hppa1.1-bld/gcc/include/././.unsupp/sys': No such file or directory
[more errors about the same .unsupp directory]
and then another batch of assembly errors:
/tools/contrib/gen/src/egcs-1.1.2-hppa1.1-bld/gcc/xgcc -B/tools/contrib/gen/src/egcs-1.1.2-hppa1.1-bld/gcc/ -DIN_GCC -O2 -I./include -I. -I../../egcs-1.1.2/gcc -I../../egcs-1.1.2/gcc/config \
-c ../../egcs-1.1.2/gcc/objc/hash.c -o objc/hash.o
as: "/var/tmp/cckOfSmc.s", line 24: error 1052: Directive name not recognized - NSUBSPA
[more errors]
make[1]: *** [objc/hash.o] Error 1
make[1]: Leaving directory `/tmp_mnt/tools/contrib/gen/src/egcs-1.1.2-hppa1.1-bld/gcc'
make: *** [all-gcc] Error 2
That's all for now.
--
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