[Mono-list] Cross compiling mono 2.4 to PowerPC
DusharaJ at optiscan.com
Sun Jun 28 20:19:52 EDT 2009
Hi Andreas, thanks for the response.
> > I tried version 2.4.2-rc1 (http://anonsvn.mono-
> > ). I still had to tweak configure.in:
> > checking for working __thread... configure: error: cannot run test
> > program while cross compiling
> > and Makefile.am (build breaks after entering the docs subdir).
> Did you read `./configure -h` output? ...
> ... There's not only the --disable-
> mcs-build option but also --with-mcs-docs=no. That should in theory
> take care of the latter, without any Makefile modification.
The option --with-mcs-docs doesn't exist in the version I'm using. Maybe I need to look at a later version then (perhaps rc2)? The reason I didn't checkout the tip was because of the comment in the download page stating that the daily SVN tarballs are not guaranteed to build.
> For the other one, there's --with-tls=__thread or --with-tls=pthread.
> Please read for yourself.
I invoke configure as
./configure --prefix=/usr --cache-file=cis2.cache --with-sigaltstack=no --with-tls=__thread --disable-mcs-build --host=ppc-linux
I still get the error. That's why I had to hack configure.in to add a caching variable 'mono_cv_workingthread'.
> > The mono:arm page (http://www.mono-project.com/Mono:ARM) recommends
> > using scratchbox. Does this mean that mono can't be built using
> > cross compilers?
> It can, it's just not for the feint-hearted and not well documented.
> You need to understand autoconf and you may need to know details of
> the target platform.
Well at least now I know that it's possible. Thanks.
Now if I may assume that I've got the build working properly, I wonder if anyone could provide any clues as to why mscorlib.dll is rejected? On the x86 dev environment the DLL is parsed properly by pedump. On the target (the PPC), the same DLL is rejected. Could the endienness of the 2 architectures be causing some sort of problem?
Thanks again for all your help.
More information about the Mono-list