[mpich-discuss] how to specify CFLAGS in configuring mpich
Syed. Jahanzeb Maqbool Hashmi
jahanzeb.maqbool at gmail.com
Wed Jul 24 20:22:29 CDT 2013
Thanks for the help
On Thu, Jul 25, 2013 at 10:21 AM, Pavan Balaji <balaji at mcs.anl.gov> wrote:
>
> You don't need any of these flags if you are building mpich on an armv7
> platform. Just do ./configure.
>
> -- Pavan
>
>
> On 07/24/2013 07:26 PM, Syed. Jahanzeb Maqbool Hashmi wrote:
>
>> Hello
>>
>> Sorry if I am being so noob in asking this.
>>
>> I want to build mpich for armv7 and in doing so, I want to specify arm
>> related flags specifically, CFLAGS="-O2 –march=armv7-a –mtune=cortex-a8
>> –mfpu=neon
>> –mfloat-abi=hard –fomit-frame-pointer"
>>
>> But when I configure mpich and specify CFLAGS it fails to start by
>> throwing this error.
>>
>> linaro at weiser1:/mnt/nfs/**install/mpich-3.0.4$ ./configure
>> --prefix=/mnt/nfs/install/**mpich-install/4.8/ CFLAGS="-O2
>> -march=armv7-a -mtune=cortex-a9 -mfpu=neon -float-abi=hard
>> -fomit-frame-pointer"
>> Configuring MPICH version 3.0.4 with
>> '--prefix=/mnt/nfs/install/**mpich-install/4.8/' 'CFLAGS=-O2
>> -march=armv7-a -mtune=cortex-a9 -mfpu=neon -float-abi=hard
>> -fomit-frame-pointer' 'CXXFLAGS=-O2 -march=armv7-a
>> -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard
>> -funsafe-math-optimizations -ffast-math -fomit-frame-pointer'
>> Running on system: Linux weiser1 3.6.0-rc5 #1 SMP PREEMPT Wed
>> Sep 12 16:25:07 KST 2012 armv7l armv7l armv7l GNU/Linux
>> checking for icc... no
>> checking for pgcc... no
>> checking for xlc... no
>> checking for xlC... no
>> checking for pathcc... no
>> checking for cc... cc
>> checking whether the C compiler works... no
>> configure: error: in `/mnt/nfs/install/mpich-3.0.4'**:
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details
>>
>>
>> Any help?
>>
>> Thanks
>>
>>
>> ______________________________**_________________
>> discuss mailing list discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/**mailman/listinfo/discuss<https://lists.mpich.org/mailman/listinfo/discuss>
>>
>>
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130725/49056458/attachment.html>
More information about the discuss
mailing list