public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: John Baron <john.baron@schneider-electric.com>
To: linux-audit@redhat.com
Subject: cross-compiling difficulty with on-the-fly gen/build/use paradigm
Date: Fri, 17 Aug 2012 20:19:48 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120817T220540-441@post.gmane.org> (raw)

I'm having a problem trying to cross-compile audit.  The problem is that 
gen_actiontabs_h is built using the cross-compiler (for ARM), and then it's 
asked to run on the host (x86_64).  [I've seen some discussion of cross-
compiling, but this issue hasn't been brought up, AFAICT]

make  all-recursive
make[1]: Entering directory `/src/blah-blah/external-3rdparty/audit'
Making all in lib
make[2]: Entering directory `/src/blah-blah/external-3rdparty/audit/lib'
arm_v5t_le-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../auparse  -I/include -
I/include -L/lib -fPIC -DPIC -D_GNU_SOURCE '-DTABLE_H="actiontab.h"' -g -O2 -MT 
gen_actiontabs_h-gen_tables.o -MD -MP -MF .deps/gen_actiontabs_h-gen_tables.Tpo 
-c -o gen_actiontabs_h-gen_tables.o `test -f 'gen_tables.c' || echo 
'./'`gen_tables.c
mv -f .deps/gen_actiontabs_h-gen_tables.Tpo .deps/gen_actiontabs_h-gen_tables.Po
/bin/sh ../libtool --tag=CC   --mode=link arm_v5t_le-gcc -fPIC -DPIC -
D_GNU_SOURCE '-DTABLE_H="actiontab.h"' -g -O2  -L/lib -L/lib -o gen_actiontabs_h 
gen_actiontabs_h-gen_tables.o  
libtool: link: arm_v5t_le-gcc -fPIC -DPIC -D_GNU_SOURCE -
DTABLE_H=\"actiontab.h\" -g -O2 -o gen_actiontabs_h gen_actiontabs_h-
gen_tables.o  -L/lib
./gen_actiontabs_h --lowercase --i2s --s2i action > actiontabs.h
/bin/sh: ./gen_actiontabs_h: cannot execute binary file
make[2]: *** [actiontabs.h] Error 126
make[2]: Leaving directory `/src/blah-blah/external-3rdparty/audit/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/blah-blah/external-3rdparty/audit'
make: *** [all] Error 2

Is there a simple way around this?  A complex way, perhaps?  Extra points for 
simple!

Thanks
- John

             reply	other threads:[~2012-08-17 20:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-17 20:19 John Baron [this message]
2012-08-18 13:10 ` cross-compiling difficulty with on-the-fly gen/build/use paradigm Steve Grubb
2012-08-20 16:47 ` Miloslav Trmac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20120817T220540-441@post.gmane.org \
    --to=john.baron@schneider-electric.com \
    --cc=linux-audit@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox