Prentice Bisbal <prent...@ias.edu> 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@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.