[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freeon-users] cross-compile?
From: |
Jeff Hammond |
Subject: |
Re: [Freeon-users] cross-compile? |
Date: |
Thu, 21 Jan 2010 09:59:34 -0600 |
Nick,
I tried again in full emulation mode (the shell sits inside, so
everything will be PPC32) and that fails to help. The C test works
but the F77 one fails. This almost certainly means it is an
integer/pointer size mismatch problem that cannot be resolved.
I'm just going to hack configure until it works. I know exactly what
I'm doing so configure's safety checks are unnecessary.
It would be good to support cross-compiling in the configure script
for the future. Currently it is hard-coded to "no".
Thanks,
Jeff
On Thu, Jan 21, 2010 at 9:10 AM, Nicolas Bock <address@hidden> wrote:
> Hi Jeff,
>
> the configure script fails when it tries to run a short test program
> produced by the compilers it identified. We had put that test in so we can
> verify that the optimization flags we add to the compiler command line are
> actually working. While this is possibly a good idea when target and host
> are the same, it now seems a little bit questionable when cross compiling.
>
> I am surprised though that you can't get past this test in configure when
> you enter PPC32 emulation mode. How do you use this emulation mode? Maybe
> the script does not run in PPC32 mode for some reason?
>
> I will have to rethink this part of the configure script a little. In the
> meantime, we can hopefully get past the test in emulation mode.
>
> nick
>
>
>
> On Thu, Jan 21, 2010 at 01:11, Jeff Hammond <address@hidden> wrote:
>>
>> I am trying to build FreeON on BlueGene/P. The front-end is PPC64 and
>> the back-end is PPC32 with extra instructions. Hence, when configure
>> attempts to execute back-end code on the front-end, it fails due to
>> illegal instructions in the F77 test code. The config.log is
>> attached.
>>
>> Usually --host=powerpc-bgp-linux fixes the cross-compile issue in
>> configure. Using PPC32 emulation on the front-end did not help,
>> either in configure or with the isolated F77 test code build and
>> execution. I am configuring as follows.
>>
>> ./configure FC=mpixlf95_r F77=mpixlf77_r CC=mpixlc_r
>> --prefix=/home/jhammond/FreeON/freeon-1.0-alpha-2010-01-14-build
>> --host=powerpc-bgp-linux --enable-MPI
>>
>> If you need/want machine-access, it can be arranged.
>>
>> Thanks,
>>
>> Jeff
>>
>> --
>> Jeff Hammond
>> Argonne Leadership Computing Facility
>> address@hidden / (630) 252-5381
>> http://www.linkedin.com/in/jeffhammond
>
>
--
Jeff Hammond
Argonne Leadership Computing Facility
address@hidden / (630) 252-5381
http://www.linkedin.com/in/jeffhammond