[mpich-discuss] how to specify CFLAGS in configuring mpich

Pavan Balaji balaji at mcs.anl.gov
Wed Jul 24 20:21:47 CDT 2013


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
>

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji



More information about the discuss mailing list