[mpich-discuss] Make testing--Failed to build threads

Jeff Hammond jhammond at alcf.anl.gov
Fri Nov 2 00:08:34 CDT 2012


Try providing the appropriate compiler flags to enable PGI to work
with Pthreads.

Jeff

On Fri, Nov 2, 2012 at 2:48 AM, liuhaoyan <hyliu.nju at hotmail.com> wrote:
> Hi,
> I have tried some versions of mpich2. Each time when I make testing, I get
> Errors like this:
>
> Failed to build threads; make[3]: Entering directory
> `/home/hyliu/software/mpich2/mpich2-1.4/test/mpi/threads/pt2pt'
>   CC              threads.c
> (cd ../util && make mtestthread.o)
> make[4]: Entering directory
> `/home/hyliu/software/mpich2/mpich2-1.4/test/mpi/threads/util'
>   CC              mtestthread.c
> PGC-S-0040-Illegal use of symbol, pthread_barrier_t (mtestthread.c: 185)
> PGC-W-0156-Type not specified, 'int' assumed (mtestthread.c: 185)
> PGC/x86-64 Linux 10.6-0: compilation completed with severe errors
> make[4]: *** [mtestthread.o] Error 2
> make[4]: Leaving directory
> `/home/hyliu/software/mpich2/mpich2-1.4/test/mpi/threads/util'
> make[3]: *** [../util/mtestthread.o] Error 2
> make[3]: Leaving directory
> `/home/hyliu/software/mpich2/mpich2-1.4/test/mpi/threads/pt2pt'
>
> My environment variables:
>  CC="pgcc"
>  CXX="pgCC"
>  FC="pgf77"
>  F90="pgf90"
>  CPP="pgCC -E"
>  CFLAGS="-mcmodel=medium"
>  FFLAGS="-mcmodel=medium"
>
> Thank you very much for your attention and help.
> Haoyan.
>
>
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>



-- 
Jeff Hammond
Argonne Leadership Computing Facility
University of Chicago Computation Institute
jhammond at alcf.anl.gov / (630) 252-5381
http://www.linkedin.com/in/jeffhammond
https://wiki.alcf.anl.gov/parts/index.php/User:Jhammond


More information about the mpich-discuss mailing list