You're right, taking out "-V" solves the problem! "-V" gives the version; due to the number of machines managed, it is an old habit to include it so there is a record of what version was used, and/or know if updates are needed: $ pgcc -V pgcc 14.2-0 64-bit target on x86-64 Linux -tp istanbul The Portland Group - PGI Compilers and Tools Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. Thanks, Jim On Feb 25, 2014, at 5:26 PM, Balaji, Pavan wrote:
Never mind, I found the problem.
MPICH checks to make sure the compiler doesn’t spit warnings during its configure checks. With your flags settings, it is dumping unnecessary output which MPICH is treating as warnings and is therefore disabling VA_ARGS.
This should fail with mpich-3.0.x as well, but maybe we added additional checks after that.
Why do you want to use the -V flags?
— Pavan
On Feb 25, 2014, at 7:04 PM, James Long <[email protected]> wrote:
$ pgcc foo.c $ ./a.out foo $
On Feb 25, 2014, at 3:51 PM, Balaji, Pavan wrote:
Thanks. Can you try compiling the below program with your pgi compiler:
#include <stdio.h> #define conftest_va_arg_macro(...) printf(__VA_ARGS__)
int main() { conftest_va_arg_macro("foo\n"); return 0; }
Thanks,
— Pavan
On Feb 25, 2014, at 5:23 PM, James Long <[email protected]> wrote:
hydra_config.h:
On Feb 25, 2014, at 2:13 PM, Balaji, Pavan wrote:
This is weird. Configure detected VA_ARGS correctly:
configure:13475: checking for variable argument list macro functionality configure:13520: pgcc -o conftest -O2 -V -O2 -DNDEBUG -DpgiFortran -I/home/boss/mpich-3.1/src/mpl/include -I/home/boss/mpich-3.1/src/mpl/include -I/home/boss/mpich-3.1/src/openpa/src -I/home/boss/mpich-3.1/src/openpa/src -I/home/boss/mpich-3.1/src/mpi/romio/include conftest.c > pac_test.log 2>&1 configure:13520: $? = 0
Can you send us your src/pm/hydra/include/hydra_config.h file?
— Pavan
On 2/25/14, 3:43 PM, "James Long" <[email protected]> wrote:
In two parts:
http://pastebin.com/zip0pYB5 http://pastebin.com/qj0xNh7s
On Feb 25, 2014, at 11:27 AM, Balaji, Pavan wrote:
Is there a compiler that actually does not support VA_ARGS in 2014?
You’ll need to send us the config.log in src/pm/hydra.
— Pavan
On 2/25/14, 2:06 PM, "James Long" <[email protected]> wrote:
Under debian 7.4, trying to compile mpich-3.1 with Portland Group 13.6, or 14.2, same error results in both cases:
make[3]: Entering directory `/home/user/mpich-3.1/src/pm/hydra' CC utils/alloc/alloc.lo PGC/x86-64 Linux 13.6-0 Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. Copyright 2000-2013, STMicroelectronics, Inc. All Rights Reserved. PGC-F-0249-#error -- "hydra requires VA_ARGS support" (./include/hydra.h: 79) PGC/x86-64 Linux 13.6-0: compilation aborted
environment variables used: $ unset F90 $ export CC=pgcc $ export FC=pgf90 $ export CXX=pgCC $ export CPPFLAGS="-DNDEBUG -DpgiFortran" $ export CFLAGS="-O2 -V" $ export FFLAGS="-O2 -w -V"
Thanks,
Jim --
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% James Long International Arctic Research Center University of Alaska Fairbanks jlong|at|alaska.edu (907) 474-2440 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% James Long International Arctic Research Center University of Alaska Fairbanks jlong|at|alaska.edu (907) 474-2440 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% James Long International Arctic Research Center University of Alaska Fairbanks jlong|at|alaska.edu (907) 474-2440 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% James Long International Arctic Research Center University of Alaska Fairbanks jlong|at|alaska.edu (907) 474-2440 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% James Long International Arctic Research Center University of Alaska Fairbanks jlong|at|alaska.edu (907) 474-2440 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%