I see it now. Without that redirection - macro replacement of __INSDIR__ is not hapenning :(
Satish -------- __INSDIR__/home/balay/petsc.clone/include/../src/vec/vec/utils/vpscat.h:22: __FUNCT__="VecScatterBegin_BS" does not agree with PETSC_FUNCTION_NAME="VecScatterBegin_4" __INSDIR__/home/balay/petsc.clone/include/../src/vec/vec/utils/vpscat.h:22: __FUNCT__="VecScatterBegin_BS" does not agree with PETSC_FUNCTION_NAME="VecScatterBegin_4" __INSDIR__/home/balay/petsc.clone/include/../src/vec/vec/utils/vpscat.h:171: __FUNCT__="VecScatterEnd_BS" does not agree with PETSC_FUNCTION_NAME="VecScatterEnd_4" __INSDIR__/home/balay/petsc.clone/include/../src/vec/vec/utils/vpscat.h:171: __FUNCT__="VecScatterEnd_BS" does not agree with PETSC_FUNCTION_NAME="VecScatterEnd_4" __INSDIR__/home/balay/petsc.clone/include/../src/vec/vec/utils/vpscat.h:22: __FUNCT__="VecScatterBegin_BS" does not agree with PETSC_FUNCTION_NAME="VecScatterBegin_4" On Thu, 23 May 2013, Satish Balay wrote: > > Lisandro, > > Any idea why this redirection from PetscStringize() -> PetscStringizeArg() > was needed? > > https://bitbucket.org/petsc/petsc/commits/59aaf35543f238554406f60a2c099071dfa3cd67 > > This breaks on windows when empty 'LOCDIR' is used with -D__INSDIR__=${LOCDIR} > [but reverting the above gets the compile going.] > > Thanks, > Satish > > ----------- > > $ make -f gmakefile PETSC_ARCH=arch-gmake > /home/balay/petsc.clone/bin/win32fe/win32fe cl -c -MT -wd4996 -Z7 > -I/home/balay/petsc.clone/include > -I/home/balay/petsc.clone/arch-gmake/include -I/cygdrive/c/Program\ > Files/Microsoft\ HPC\ Pack\ 2012/Inc -D__INSDIR__= > src/sys/info/verboseinfo.c -o arch-gmake/obj-gmake/src/sys/info/verboseinfo.o > verboseinfo.c > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(202) : warning C4003: not > enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(202) : warning C4003: not > enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(202) : error C2059: > syntax error : ';' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(202) : error C2059: > syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(204) : warning C4003: not > enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(204) : error C2059: > syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(215) : error C2143: > syntax error : missing ')' before '*' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(215) : error C2143: > syntax error : missing '{' before '*' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(215) : error C2059: > syntax error : ')' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(325) : warning C4003: not > enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(325) : error C2059: > syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(326) : warning C4003: not > enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(326) : error C2059: > syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(458) : error C2061: > syntax error : identifier 'PetscIntStackCreate' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(458) : error C2059: > syntax error : ';' > C:\cygwin\home\balay\PETSC~1.CLO\include\petsclog.h(458) : error C2059: > syntax error : 'type' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1618) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1618) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1618) : error C2059: > syntax error : ';' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1618) : error C2059: > syntax error : ',' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1619) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1619) : error C2059: > syntax error : ',' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1620) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1620) : error C2059: > syntax error : ',' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1628) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1628) : error C2059: > syntax error : ',' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1677) : error C2061: > syntax error : identifier 'PetscMemzero' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1677) : error C2059: > syntax error : ';' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1677) : error C2059: > syntax error : 'type' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1681) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1932) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1932) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1932) : error C2059: > syntax error : ';' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1932) : error C2059: > syntax error : ',' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1942) : error C2061: > syntax error : identifier 'PetscMPIIntCast' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1942) : error C2059: > syntax error : ';' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1942) : error C2059: > syntax error : 'type' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1944) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > c:\cygwin\home\balay\petsc.clone\include\petscsys.h(1944) : warning C4003: > not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(52) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(52) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(52) : error > C2059: syntax error : ';' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(52) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(54) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(54) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(55) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(55) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(57) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(57) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(58) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(58) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(59) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(59) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(85) : error > C2061: syntax error : identifier 'PetscInfoDeactivateClass' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(85) : error > C2059: syntax error : ';' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(85) : error > C2059: syntax error : 'type' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(87) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(87) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(116) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(116) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(116) : error > C2059: syntax error : ';' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(116) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(127) : error > C2143: syntax error : missing '{' before '*' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(179) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(179) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(179) : error > C2059: syntax error : ';' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(179) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(180) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(180) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(180) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(180) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(180) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(180) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(180) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(180) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(181) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(181) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(181) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(181) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(187) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(187) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(191) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(191) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(194) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(194) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(195) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(195) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(196) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(196) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(198) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(198) : error > C2059: syntax error : ',' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(201) : warning > C4133: 'function' : incompatible types - from 'int *' to 'FILE *' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(201) : warning > C4003: not enough actual parameters for macro 'PetscStringizeArg' > C:\cygwin\home\balay\PETSC~1.CLO\src\sys\info\verboseinfo.c(201) : error > C2059: syntax error : ',' > gmakefile:100: recipe for target > `arch-gmake/obj-gmake/src/sys/info/verboseinfo.o' failed > make: *** [arch-gmake/obj-gmake/src/sys/info/verboseinfo.o] Error 2 > >
