Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] PGI problems
From: Dave Love (d.love_at_[hidden])
Date: 2010-05-11 05:43:03


Prentice Bisbal <prentice_at_[hidden]> writes:

> Since I was successful compiled 1.4.1 with PGI 9 and 1.4.2 with PGI
> 10.4,

Thanks. The difference appears to be the compiler versions.

> I suspect the problem is local to you. Can you go through your
> environment and make sure you don't have any settings that are incorrect
> for this build that the configure script is picking up, like an
> incorrect CPPFLAGS, LDFLAGS, or something like that?
>
> I didn't see your exact configure command. If you're not already doing
> so, I'd make sure you explicitly list the CC, CXX, FC and F77 variables,
> including the full path to them if necessary to remove ambiguity about
> what compiler you're really using.

It's using the right compiler. configure's test program simply fails
with pgcc (but not with pgCC):

  # cat a.c
  #include<stddef.h>
  int
  main ()
  {
  struct foo {int a, b;}; size_t offset = offsetof(struct foo, b);
    ;
    return 0;
  }
  # pgcc -DNO_PGI_OFFSET a.c
  PGC-S-0037-Syntax error: Recovery attempted by deleting keyword struct (a.c: 5)
  PGC-S-0039-Use of undeclared variable foo (a.c: 5)
  PGC-S-0039-Use of undeclared variable b (a.c: 5)
  PGC/x86-64 Linux 10.1-0: compilation completed with severe errors
  # pgcc a.c
  PGC-S-0037-Syntax error: Recovery attempted by deleting keyword struct (a.c: 5)
  PGC-S-0039-Use of undeclared variable foo (a.c: 5)
  PGC-S-0039-Use of undeclared variable b (a.c: 5)
  PGC/x86-64 Linux 10.1-0: compilation completed with severe errors
  [root_at_lv1fn tmp]# pgCC a.c
  "a.c", line 5: warning: variable "offset" was declared but never referenced
    struct foo {int a, b;}; size_t offset = offsetof(struct foo, b);
                                   ^
  
   
  # pgcc -V
  
  pgcc 10.1-0 64-bit target on x86-64 Linux -tp k8-64e
  Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
  Copyright 2000-2010, STMicroelectronics, Inc. All Rights Reserved.

I'll see if we can get a compiler update and report back.