[omniORB] Problem cross compiling for ppc-linux
Alex Tingle
alex.tingle at bronermetals.com
Thu Jul 15 15:16:00 BST 2004
Hi Klaus,
> 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.
Nasty! That same problem has caused me loads of headaches in the past.
The root cause of the problem is that the build system considers
omniidl to be an integral part of the system, rather than a stand-alone
utility. You need to be able to build omniidl (and omkdepend)
separately from the omniORB libraries.
Do you have any enthusiasm for attacking the makefiles to implement
that change?
-Alex Tingle
--
Dammit Jim, I'm a programmer... not a mind reader!
On 15 Jul 2004, at 13:53, Klaus Hoeppner wrote:
> 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
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
More information about the omniORB-list
mailing list