[mpich-discuss] VA_ARGS support

James Long jlong at iarc.uaf.edu
Tue Feb 25 19:04:26 CST 2014


$ 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 <jlong at iarc.uaf.edu> wrote:
> 
>> hydra_config.h:
>> 
>> http://pastebin.com/SMZhvP1j
>> 
>> 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" <jlong at iarc.uaf.edu> 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" <jlong at iarc.uaf.edu> 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     discuss at mpich.org
>>>>>> To manage subscription options or unsubscribe:
>>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>>>> 
>>>>> _______________________________________________
>>>>> discuss mailing list     discuss at mpich.org
>>>>> 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     discuss at mpich.org
>>>> To manage subscription options or unsubscribe:
>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>> 
>>> _______________________________________________
>>> discuss mailing list     discuss at mpich.org
>>> 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     discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
> 
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%







More information about the discuss mailing list