[omniORB] Problem cross compiling for ppc-linux

Klaus Hoeppner klaus.hoeppner at gmx.de
Thu Jul 15 15:53:19 BST 2004


Hi,

can someone give me a hint on the following problem:

I try to cross compile OmniORB for a PowerPC board running linux on
a x86 linux machine.

I configure omniORB using ./configure --host=ppc-linux.
It finds the compilers provided by the embedded linux devel kit
(ppc-linux-gcc, ppc-linux-g++ ...).
Running make works fine untill the point

-----
make[3]: Entering directory `/opt/eldk/usr/src/misc/omniORB-4.0.3/src/lib/omniORB'
../../../bin/omniidl -bcxx -Wba -p../../../src/lib/omniORB -Wbdebug -v -ComniORB4 ../../../idl/Naming.idl

omniidl: ERROR!

omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory /opt/eldk/usr/src/misc/omniORB-4.0.3/lib
omniidl: (or set the PYTHONPATH environment variable)

omniidl: (The error was '/opt/eldk/usr/src/misc/omniORB-4.0.3/lib/_omniidlmodule.so: ELF file data encoding not little-endian')
------

The _omniidlmodule was compiled with:

ppc-linux-g++ -shared -Wl,-soname,_omniidlmodule.so.1 -o _omniidlmodule.so.1.0
 -L../../../../lib -L../../../../lib y.tab.o lex.yy.o idlerr.o idlutil.o idltype
.o idlrepoId.o idlscope.o idlexpr.o idlast.o idlvalidate.o idldump.o idlconfig.o
 idlfixed.o idlpython.o


Here I am a bit lost.
omniidl uses python, but this doesn't like the _omniidlmodule.so since it
is build for ppc. But if I cross compile python is doesn't run on x86
during make process...  sounds like the problem with the chicken and the
egg to me.

Any hint?

Regards
Klaus



More information about the omniORB-list mailing list