Cross-compiler build failure (unrecognized option '-Qy')

Jason Luttrell jluttrel@hpbs2850.boi.hp.com
Tue Jul 25 09:18:00 GMT 2000


I'm trying to build a cross compiler with a HP-UX 10.20 (HP-PA 2.0) host and
a linux (i386-redhat-linux) target.  I'm using the following configure:

./configure -target=i386-redhat-linux -with-local-prefix=/local/gcc/localinc
ludes -with-headers=/local/gcc/linuxincludes -with-libs=/local/gcc/linuxlibs
 -with-gnu-as

Here's the error:

>>-----------------------------------

	Rm -f cpp
	ln cccp cpp
(cd intl && make all)
	cp -p ./fixinc/fixincl ./fixincl
	if [ -f libgcc2.ready ] ; then \
		true; \
	else \
		touch libgcc2.ready; \
	fi
	rm -f tmplibgcc2.a
	for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2  _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2  _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
_floatdidf _floatdisf  _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
_fixunssfdi _fixsfdi  _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi  _fixtfdi
_fixunstfdi _floatditf  __gcc_bcmp _varargs __dummy _eprintf  _bb _shtab
_clear_cache _trampoline __main _exit  _ctors _pure; \
	do \
	  echo ${name}; \



/local/gcc-jluttrel/src/hpdepot/gcc-2.95.2/gcc/xgcc -B/local/gcc-jluttrel/sr
c/hpdepot/gcc-2.95.2/gcc/ -B/opt/gcc-2.95.2/i386-redhat-linux/bin/ -I/opt/gc
c-2.95.2/i386-redhat-linux/include -O2  -DCROSS_COMPILE -DIN_GCC      -I./in
clude  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I./config
 -I./../include -I./cp/inc -c -DL${name} \
	       ./libgcc2.c -o ${name}.o; \
	  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
	  i386-redhat-linux-ar rc tmplibgcc2.a ${name}.o; \
	  rm -f ${name}.o; \
	done
_muldi3
/local/gcc-jluttrel/src/hpdepot/gcc-2.95.2/gcc/as: unrecognized option `-Qy'
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

>>-----------------------------------

I've been struggling with this problem for quite a while now.  I know the
gnu assembler (gas) is being used.  I've set this thing up every way
possible to make sure it is using gas.  It will build fine if I don't set it
up as a cross-compiler.  I am compiling with gcc (2.95.2).  The assembler
I'm using is 2.9.1 (also tried the one that comes with gcc 2.95.2).  I'm
using a ported version of gcc for HP-UX, and the 'as' that's causing the
problem (under the source tree) is just a symlink to the binutils/bin
directory on my system.  The HP Port sets this up for some reason.  I've
tried to build with 'make cross' and 'make', they act the same.  If anyone
knows the difference between these two variants, that would be helpful
because I don't know which I'm supposed to use for a cross compiler.  Any
help on this issue would be GREATLY APPRECIATED.

Thanks, Jason



More information about the Gcc-bugs mailing list