Discussion:
cross compiling a linux application for zlinux using debian
(too old to reply)
m***@emc.com
2009-12-22 13:40:01 UTC
Permalink
I am new to linux and am attempting to rebuild an existing linux i386
application to run on zlinux by making small modifications to the build
by having it cross compile on a vmware debian linux image. When an ar
command is run in the build, I am getting an error:

emulation options:
No emulation specific options
ar: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32
elf32-little elf32-big elf64-alpha ecoff-littlealpha elf64-little
elf64-big elf32-littlearm elf32-bigarm elf32-hppa-linux elf32-hppa
elf64-x86-64 elf64-ia64-little elf64-ia64-big efi-app-ia64 elf32-m68k
a.out-m68k-linux coff-m68k versados ieee a.out-zero-big
elf32-tradbigmips elf32-tradlittlemips ecoff-bigmips ecoff-littlemips
elf32-ntradbigmips elf64-tradbigmips elf32-ntradlittlemips
elf64-tradlittlemips elf32-powerpc aixcoff-rs6000 elf32-powerpcle
ppcboot elf64-powerpc elf64-powerpcle aixcoff64-rs6000 elf32-s390
elf64-s390 elf32-shbig-linux elf32-sh-linux elf32-sh64-linux
elf32-sh64big-linux elf64-sh64-linux elf64-sh64big-linux elf32-sparc
a.out-sparc-linux elf64-sparc a.out-sunos-big efi-app-x86_64
elf32-m32r-linux elf32-m32rle-linux elf32-spu srec symbolsrec tekhex
binary ihex trad-core

What does ar want as syntax for emulation options?

ar elf32-s390 -r ...... does not work

I am executing the "ar" that is part of the s390-linux-gnu/bin so I
assume it knows that it is in cross compilation mode..... but I suppose
ar needs to know whether it is 32 or 64 bit mode...

thank you,

Daniel Moshief
EMC Corp.
--
To UNSUBSCRIBE, email to debian-s390-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Stephen Powell
2009-12-22 15:20:02 UTC
Permalink
Post by m***@emc.com
I am new to linux and am attempting to rebuild an existing linux i386
application to run on zlinux by making small modifications to the build
by having it cross compile on a vmware debian linux image. When an ar
No emulation specific options
ar: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32
elf32-little elf32-big elf64-alpha ecoff-littlealpha elf64-little
elf64-big elf32-littlearm elf32-bigarm elf32-hppa-linux elf32-hppa
elf64-x86-64 elf64-ia64-little elf64-ia64-big efi-app-ia64 elf32-m68k
a.out-m68k-linux coff-m68k versados ieee a.out-zero-big
elf32-tradbigmips elf32-tradlittlemips ecoff-bigmips ecoff-littlemips
elf32-ntradbigmips elf64-tradbigmips elf32-ntradlittlemips
elf64-tradlittlemips elf32-powerpc aixcoff-rs6000 elf32-powerpcle
ppcboot elf64-powerpc elf64-powerpcle aixcoff64-rs6000 elf32-s390
elf64-s390 elf32-shbig-linux elf32-sh-linux elf32-sh64-linux
elf32-sh64big-linux elf64-sh64-linux elf64-sh64big-linux elf32-sparc
a.out-sparc-linux elf64-sparc a.out-sunos-big efi-app-x86_64
elf32-m32r-linux elf32-m32rle-linux elf32-spu srec symbolsrec tekhex
binary ihex trad-core
What does ar want as syntax for emulation options?
ar elf32-s390 -r ...... does not work
I am executing the "ar" that is part of the s390-linux-gnu/bin so I
assume it knows that it is in cross compilation mode..... but I suppose
ar needs to know whether it is 32 or 64 bit mode...
thank you,
Daniel Moshief
EMC Corp.
I have never used ar directly. It may have been invoked "under the covers"
from a script that I have run, but I've never invoked it directly from
the command line. However, the man page for GNU ar has this info in it:

ar ignores an initial option spelt -X32_64, for compatibility with AIX.
The behaviour produced by this option is the default for GNU ar. ar
does not support any of the other -X options; in particular, it does
not support -X32 which is the default for AIX ar.

I don't know if this is what its looking for or not. Maybe you need a leading -X?

Other than that I don't know what to suggest.
I've never run into anything like that before.
--
To UNSUBSCRIBE, email to debian-s390-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
The Fungi
2009-12-22 18:40:02 UTC
Permalink
Post by Stephen Powell
I have never used ar directly. It may have been invoked "under
the covers" from a script that I have run, but I've never invoked
it directly from the command line.
[...]

DEBs are packed using GNU ar, so this is quite possibly why it's
getting run. As to the cross-compile questions, I'm afraid I'm not
much help there...
--
{ IRL(Jeremy_Stanley); PGP(9E8DFF2E4F5995F8FEADDC5829ABF7441FB84657);
SMTP(***@yuggoth.org); IRC(***@irc.yuggoth.org#ccl); ICQ(114362511);
AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(***@yuggoth.org);
MUD(***@katarsis.mudpy.org:6669); WWW(http://fungi.yuggoth.org/); }
--
To UNSUBSCRIBE, email to debian-s390-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Loading...