This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Binutils Solaris -> HPUX Questions
- To: oberbdg at stamps dot stortek dot com, law at redhat dot com
- Subject: Re: Binutils Solaris -> HPUX Questions
- From: David G Oberbeck 622369 <oberbdg at stamps dot stortek dot com>
- Date: Wed, 3 Jan 2001 14:32:23 -0700 (MST)
- Cc: binutils at sources dot redhat dot com
- Reply-To: David G Oberbeck 622369 <oberbdg at stamps dot stortek dot com>
Greetings Mr. Law,
Thank you for responding.
> > Context: The desired outcome is a gcc cross compiler from Solaris
> > to HPUX 10.2. I understand that ld does not work on the cross target
> > platform - I had, however, high hopes for gcc; As I understand it part
> > of that platform gcc support requires a working cross assembler.
> GCC can work as a cross compiler for this target; however, none of the
> binutils tools will work as crosses for this target.
>
>
> jeff
I understood that gcc as a cross for that group of targets only
worked with the configuration option --with-gnu-as ; if that is not
the case then what gcc configuration options should I be using?
When I attempted to just configure gcc as
./configure --target=hppa2.0-hp-hpux10.20
as opposed to:
./configure --target=hppa2.0-hp-hpux10.20 --with-gnu-as
then, when the xgcc is run to build libiberty it attempted to invoke a
non-existent assembler (e.g. the missing cross to HPPA gas) as shown
in the snippet below, specifically the cc1 phase warnings:
<snip>
gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -I. -I.
-I./config -I./../include underscore.c
rm -f collect2
gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -o collect2
collect2.o tlink.o hash.o intl.o underscore.o version.o obstack.o
../libiberty/libiberty.a
cp xgcc gcc-cross
/proj/twolf/tools/x_hpux_10/src/gcc-2.95.2/gcc/xgcc
-B/proj/twolf/tools/x_hpux_10/src/gcc-2.95.2/gcc/
-B/usr/local/hppa2.0-hp-hpux10.20/bin/ -I/usr/local/hppa2.0-hp-hpux10.20/include
-dumpspecs > tmp-specs
mv tmp-specs specs
touch stmp-headers
echo "void __foo () {}" > dummy.c
/proj/twolf/tools/x_hpux_10/src/gcc-2.95.2/gcc/xgcc
-B/proj/twolf/tools/x_hpux_10/src/gcc-2.95.2/gcc/
-B/usr/local/hppa2.0-hp-hpux10.20/bin/ -I/usr/local/hppa2.0-hp-hpux10.20/include
-DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -I./include -c dummy.c
cc1: warning: -g is only supported when using GAS on this processor,
cc1: warning: -g option disabled.
/tmp/ccY1QO85.s: Assembler messages:
/tmp/ccY1QO85.s:1: Error: Unknown pseudo-op: `.level'
/tmp/ccY1QO85.s:3: Error: Unknown pseudo-op: `.subspa'
/tmp/ccY1QO85.s:4: Error: Unknown pseudo-op: `.subspa'
/tmp/ccY1QO85.s:6: Error: Unknown pseudo-op: `.subspa'
/tmp/ccY1QO85.s:7: Error: Unknown pseudo-op: `.subspa'
/tmp/ccY1QO85.s:8: Error: Unknown pseudo-op: `.import'
/tmp/ccY1QO85.s:9: Error: Unknown pseudo-op: `.import'
/tmp/ccY1QO85.s:12: Error: Unknown pseudo-op: `.subspa'
/tmp/ccY1QO85.s:15: Error: Unknown pseudo-op: `.export'
/tmp/ccY1QO85.s:16: Error: invalid character '_' in mnemonic
/tmp/ccY1QO85.s:17: Error: Unknown pseudo-op: `.proc'
/tmp/ccY1QO85.s:18: Error: Unknown pseudo-op: `.callinfo'
/tmp/ccY1QO85.s:19: Error: Unknown pseudo-op: `.entry'
/tmp/ccY1QO85.s:20: Error: invalid character ',' in mnemonic
/tmp/ccY1QO85.s:21: Error: Unknown pseudo-op: `.exit'
/tmp/ccY1QO85.s:22: Error: Unknown pseudo-op: `.procend'
make[1]: *** [libgcc1.null] Error 1
make[1]: Leaving directory `/proj/twolf/tools/x_hpux_10/src/gcc-2.95.2/gcc'
make: *** [all-gcc] Error 2
<snip>
What am I doing wrong? Any pointers would be greatly appreciated.
Regards,
David
David Oberbeck
StorageTek Library Development Engineering
Voice: (303) 673-8817
Fax: (303) 661-5379
oberbdg@stamps.stortek.com <mailto: oberbdg@stamps.stortek.com>
"Entropy Requires No Maintenance"