This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Re: as-2.9.1: unrecognized option '-Qy' with gcc 2.95.1 with binutils 2.9.1


On Fri, 22 Oct 1999 15:58:01 +0200, "Georg Meszaros"
<georg.meszaros@siemens.at> wrote:

>I am trying to use binutils 2.9.1 (as, ln) with gcc 2.95.1 on Unixware 7.

 Ok, you have UnixWare7, but the binutils-2.9.1 configure shouldn't
know 'i586-unixware7' or anything like that... So which target name
you used for it? Or did you just let configure to guess the name or to
solve it itself?

 Probably you mean 'ld' (the command to link objects into
executables), not 'ln' (the command to make hard and symbolic links
between files)...
 
>Actually compiling gcc, as and ln did not make any problems

 So it built easily the binutils for some unknown target, but for
which one? What does your linker say with './ld --help' ?  Does it
list the '-Qy' option? Does it even say that it supports the UW7
native 'elf32-i386' format?

 Here are snapshots from the 'ld --help' output of a Linux/x86-target
linker (for the 'elf-i386' and 'a.out-i386-linux' formats) :

------------- clip -------------------------
  -qmagic                     Ignored for Linux compatibility
  -Qy                         Ignored for SVR4 compatibility
  --relax                     Relax branches on certain targets
  --retain-symbols-file FILE  Keep only symbols listed in FILE
  -rpath PATH                 Set runtime shared library search path
  -rpath-link PATH            Set link time shared library search path
  -shared, -Bshareable        Create a shared library
 .....
  <snip>
 .....
ld: supported targets: elf32-i386 a.out-i386-linux srec symbolsrec
tekhex binary ihex
ld: supported emulations: elf_i386 i386linux
------------- clip -------------------------

> - but using the combination of both (gcc finds versions 2.9.1 before
> older versions or the native Unixware assembler and linker) results
> in the following error:
>
>as-2.9.1: unrecognized option '-Qy'

 Probably your 'ld' is now made for SVR3, i386-aout or something else
than the expected 'i586-sysv4' or 'i586-sysv5' target and it really
doesn't know the '-Qy' option...
 
>Since the native "as" and GNU as-2.8.1 seem to recognize the option -Qy, I
>was wondering if I missed something during installation of the binutils or
>if this is a problem with version 2.9.1?

 I remember that UW7 must be called so that it fits into the
'i[34567]86-*-sysv5*' templates in the configure-scripts for the GNU
tools, so using something like:

  ./configure --build=i586-sysv5 --host=i586-sysv5 --target=i586-sysv5

to configure (not any kind of guessing allowed) should be quite
foolproof... 

 If one lets configure to guess what a 'i586-unixware7.1' or something
like that is, the result may simply be a match with a
'i[34567]86-*-unix*' template, which can then be the name for a
SVR2/x86....

Cheers, Kai


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