Problem building hpux 11.0 cross gas on Linux RH 5.20

Steve Meyer sjmeyer@crl.com
Mon May 24 04:39:00 GMT 1999


I am trying to make a linux Redhat 5.2 to hpux 11.0 egcs 1.1.2 cross compiler
but am having trouble building gas.  FAQ says to build binutils before
building egcs cross compiler.

In binutils 2.9 directory, I used following configure command:

  ./configure --target=hppa1.1-hp-hpux11.0 --prefix=/cross/hpux11

Here is make command for gas (make install of libiberty and bfd worked fine):

make CFLAGS="-O2 -pipe" \
	CROSS_INCLUDE_DIR="/cross/hpux11/hppa1-hp-hpux11.0/sys-include"

The constants in "./config/tc-hppa.c" are defiend in sys-include which
in /usr/include from hpux 11.0 system.  I also tried copying all of
sys-include contents into "/cross/hpux11/include".

Below are warning and error message output of make:

Any suggestions?
/Ssteve

---------------------
make all-recursive
make[1]: Entering directory `/cross/src/SOURCES/binutils-2.9.1.0.15/gas'
Making all in doc
make[2]: Entering directory `/cross/src/SOURCES/binutils-2.9.1.0.15/gas/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cross/src/SOURCES/binutils-2.9.1.0.15/gas/doc'
make[1]: Leaving directory `/cross/src/SOURCES/binutils-2.9.1.0.15/gas'
gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd  -O2 -pipe -c app.c
In file included from ../bfd/../bfd/sysdep.h:26,
                 from ../bfd/som.h:26,
                 from config/obj-som.h:29,
                 from obj-format.h:1,
                 from config/te-hppa.h:26,
                 from targ-env.h:1,
                 from as.h:599,
                 from app.c:29:
../bfd/../bfd/config.h:5: warning: `PACKAGE' redefined
config.h:33: warning: this is the location of the previous definition
../bfd/../bfd/config.h:8: warning: `VERSION' redefined
config.h:36: warning: this is the location of the previous definition

<... same warnings repeated for lots of -c file compiles .. > 
<... then following errors occurred ... >

gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd  -O2 -pipe -c ./config/tc-hppa.c
In file included from ../bfd/../bfd/sysdep.h:26,
                 from ../bfd/som.h:26,
                 from config/obj-som.h:29,
                 from obj-format.h:1,
                 from config/te-hppa.h:26,
                 from targ-env.h:1,
                 from as.h:599,
                 from ./config/tc-hppa.c:27:
../bfd/../bfd/config.h:5: warning: `PACKAGE' redefined
config.h:33: warning: this is the location of the previous definition
../bfd/../bfd/config.h:8: warning: `VERSION' redefined
config.h:36: warning: this is the location of the previous definition
./config/tc-hppa.c: In function `fix_new_hppa':
./config/tc-hppa.c:1223: `R_ENTRY' undeclared (first use in this function)
./config/tc-hppa.c:1223: (Each undeclared identifier is reported only once
./config/tc-hppa.c:1223: for each function it appears in.)
./config/tc-hppa.c:1223: `R_EXIT' undeclared (first use in this function)
./config/tc-hppa.c: In function `cons_fix_new_hppa':
./config/tc-hppa.c:1260: `R_DP_RELATIVE' undeclared (first use in this function)
./config/tc-hppa.c:1262: `R_COMP1' undeclared (first use in this function)
./config/tc-hppa.c:1264: `R_CODE_ONE_SYMBOL' undeclared (first use in this function)
./config/tc-hppa.c: In function `md_assemble':
./config/tc-hppa.c:1376: `R_ENTRY' undeclared (first use in this function)
./config/tc-hppa.c:1398: `R_NO_RELOCATION' undeclared (first use in this function)
./config/tc-hppa.c: In function `pa_ip':
./config/tc-hppa.c:1478: `R_NO_RELOCATION' undeclared (first use in this function)
./config/tc-hppa.c:2059: `R_DP_RELATIVE' undeclared (first use in this function)
./config/tc-hppa.c:2061: `R_PCREL_CALL' undeclared (first use in this function)
./config/tc-hppa.c:2063: `R_CODE_ONE_SYMBOL' undeclared (first use in this function)
./config/tc-hppa.c:2214: `R_ABS_CALL' undeclared (first use in this function)
./config/tc-hppa.c: In function `tc_gen_reloc':
./config/tc-hppa.c:2712: `R_COMP2' undeclared (first use in this function)
./config/tc-hppa.c:2717: warning: assignment from incompatible pointer type
./config/tc-hppa.c:2729: warning: assignment from incompatible pointer type
./config/tc-hppa.c:2733: warning: assignment from incompatible pointer type
./config/tc-hppa.c:2738: `R_PCREL_CALL' undeclared (first use in this function)
./config/tc-hppa.c:2739: `R_ABS_CALL' undeclared (first use in this function)
./config/tc-hppa.c:2716: warning: unreachable code at beginning of switch statement
./config/tc-hppa.c:2744: `R_DATA_PLABEL' undeclared (first use in this function)
./config/tc-hppa.c:2745: `R_CODE_PLABEL' undeclared (first use in this function)
./config/tc-hppa.c:2758: `R_N_MODE' undeclared (first use in this function)
./config/tc-hppa.c:2759: `R_S_MODE' undeclared (first use in this function)
./config/tc-hppa.c:2760: `R_D_MODE' undeclared (first use in this function)
./config/tc-hppa.c:2761: `R_R_MODE' undeclared (first use in this function)
./config/tc-hppa.c:2762: `R_FSEL' undeclared (first use in this function)
./config/tc-hppa.c:2763: `R_LSEL' undeclared (first use in this function)
./config/tc-hppa.c:2764: `R_RSEL' undeclared (first use in this function)
./config/tc-hppa.c:2765: `R_BEGIN_BRTAB' undeclared (first use in this function)
./config/tc-hppa.c:2766: `R_END_BRTAB' undeclared (first use in this function)
./config/tc-hppa.c:2767: `R_BEGIN_TRY' undeclared (first use in this function)
./config/tc-hppa.c:2775: `R_END_TRY' undeclared (first use in this function)
./config/tc-hppa.c:2776: `R_ENTRY' undeclared (first use in this function)
./config/tc-hppa.c:2777: `R_EXIT' undeclared (first use in this function)
./config/tc-hppa.c: In function `md_apply_fix':
./config/tc-hppa.c:2927: `R_ENTRY' undeclared (first use in this function)
./config/tc-hppa.c:2928: `R_EXIT' undeclared (first use in this function)
./config/tc-hppa.c:2929: `R_BEGIN_BRTAB' undeclared (first use in this function)
./config/tc-hppa.c:2930: `R_END_BRTAB' undeclared (first use in this function)
./config/tc-hppa.c:2930: `R_BEGIN_TRY' undeclared (first use in this function)
./config/tc-hppa.c:2936: `R_END_TRY' undeclared (first use in this function)
./config/tc-hppa.c:2955: `R_NO_RELOCATION' undeclared (first use in this function)
./config/tc-hppa.c:3058: `R_PCREL_CALL' undeclared (first use in this function)
./config/tc-hppa.c: In function `pa_brtab':
./config/tc-hppa.c:4091: `R_BEGIN_BRTAB' undeclared (first use in this function)
./config/tc-hppa.c:4091: `R_END_BRTAB' undeclared (first use in this function)
./config/tc-hppa.c: In function `pa_try':
./config/tc-hppa.c:4116: `R_BEGIN_TRY' undeclared (first use in this function)
./config/tc-hppa.c:4116: `R_END_TRY' undeclared (first use in this function)
./config/tc-hppa.c: In function `pa_entry':
./config/tc-hppa.c:4541: `R_ENTRY' undeclared (first use in this function)
./config/tc-hppa.c: In function `process_exit':
./config/tc-hppa.c:4606: `R_EXIT' undeclared (first use in this function)
./config/tc-hppa.c: In function `pa_procend':
./config/tc-hppa.c:5096: `R_ENTRY' undeclared (first use in this function)
./config/tc-hppa.c: In function `hppa_fix_adjustable':
./config/tc-hppa.c:6392: `R_CODE_ONE_SYMBOL' undeclared (first use in this function)
./config/tc-hppa.c:6432: `R_ABS_CALL' undeclared (first use in this function)
./config/tc-hppa.c: In function `hppa_force_relocation':
./config/tc-hppa.c:6456: `R_ENTRY' undeclared (first use in this function)
./config/tc-hppa.c:6457: `R_EXIT' undeclared (first use in this function)
./config/tc-hppa.c:6458: `R_BEGIN_BRTAB' undeclared (first use in this function)
./config/tc-hppa.c:6459: `R_END_BRTAB' undeclared (first use in this function)
./config/tc-hppa.c:6460: `R_BEGIN_TRY' undeclared (first use in this function)
./config/tc-hppa.c:6461: `R_END_TRY' undeclared (first use in this function)
./config/tc-hppa.c:6482: `R_PCREL_CALL' undeclared (first use in this function)
./config/tc-hppa.c:6485: `R_ABS_CALL' undeclared (first use in this function)
make: *** [tc-hppa.o] Error 1
-- 
Steve Meyer				Phone: (415) 296-7017
Pragmatic C Software Corp.		Fax:   (415) 296-0946
220 Montgomery St., Suite 925		email: sjmeyer@crl.com
San Francisco, CA 94104
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.


More information about the crossgcc mailing list