[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix differences of SWIG_PY_OPTS between Unix and Windows

From: Jun Omae <jun66j5_at_gmail.com>
Date: Sun, 3 May 2020 08:28:10 +0900

Hi,

Building Subversion trunk with SWIG 4 on Windows, the following errors occur:

C:\usr\apps\python38\include\pytime.h(123,67): warning C4115: 'timeval': named type definition in parentheses [C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_core.vcxproj]
C:\usr\src\subversion\trunk\subversion\bindings\swig\python\core.c(3636,39): warning C4152: nonstandard extension, function/data pointer conversion in expression [C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_core.vcxproj]
C:\usr\src\subversion\trunk\subversion\bindings\swig\python\core.c(3726,9): error C2065: 'svn_argnum_swig_obj': undeclared identifier [C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_core.vcxproj]
C:\usr\src\subversion\trunk\subversion\bindings\swig\python\core.c(3726,9): error C2109: subscript requires array or pointer type [C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_core.vcxproj]
C:\usr\src\subversion\trunk\subversion\bindings\swig\python\core.c(3726,9): error C2198: 'SWIG_Python_ArgFail': too few arguments for call [C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_core.vcxproj]
....
C:\usr\src\subversion\trunk\subversion\bindings\swig\python\core.c(4832,9): error C2065: 'svn_argnum_swig_obj': undeclared identifier [C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_core.vcxproj]
C:\usr\src\subversion\trunk\subversion\bindings\swig\python\core.c(4832,9): error C2109: subscript requires array or pointer type [C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_core.vcxproj]
C:\usr\src\subversion\trunk\subversion\bindings\swig\python\core.c(4832,9): fatal error C1003: error count exceeds 100; stopping compilation [C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_core.vcxproj]
   The command exited with code 2.
Done executing task "CL" -- FAILED.
Done building target "ClCompile" in project "python_core.vcxproj" -- FAILED.
Done Building Project "C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_core.vcxproj" (default targets) -- FAILED.

Done executing task "MSBuild" -- FAILED.
Done building target "ResolveProjectReferences" in project "python_client.vcxproj" -- FAILED.
Done Building Project "C:\usr\src\subversion\trunk\build\win32\vcnet-vcproj\python_client.vcxproj" (default targets) -- FAILED.

...

     87 Warning(s)
     102 Error(s)

Time Elapsed 00:01:26.67

Investigating the issue, I noticed generated SWIG_PY_OPTS differs between Unix and Windows.

     <SWIG_PY_OPTS>-python -py3</SWIG_PY_OPTS>

should be "-python -py3 -nofastunpack" when SWIG 4 is used.

After attached patch, no differences of SWIG_PY_OPTS between Unix and Windows.

-- 
Jun Omae <jun66j5_at_gmail.com> (大前 潤)

Received on 2020-05-03 01:28:19 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.