You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Branko Čibej <br...@apache.org> on 2019/01/04 15:22:33 UTC

Swig bindings builds are failing

The following just started appearing on the macos build slave, and
similar errors are being emitted on the Windows bots:

(see https://ci.apache.org/builders/svn-x64-macosx-full/builds/2275)

/bin/sh "/Volumes/svn-x64-macosx-full/libtool" --tag=CC --silent --mode=compile cc -arch i386 -arch x86_64 -pipe -O1 -g3 -fno-omit-frame-pointer -fno-inline -Werror=unknown-warning-option -DSVN_DEBUG -DAP_DEBUG   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10  -I/Volumes/svn-x64-macosx-full/subversion -I/srv/buildbot/slave/svn-x64-macosx-full/build/subversion/include -I/srv/buildbot/slave/svn-x64-macosx-full/build/subversion/bindings/swig -I/srv/buildbot/slave/svn-x64-macosx-full/build/subversion/bindings/swig/include -I/srv/buildbot/slave/svn-x64-macosx-full/build/subversion/bindings/swig/proxy -I/Volumes/svn-x64-macosx-full/subversion/bindings/swig/proxy -I/usr/local/opt/apr/libexec/include/apr-1  -I/usr/local/opt/apr-util/libexec/include/apr-1 -I/usr/local/opt/openssl/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/srv/buildbot/slave/svn-x64-macosx-full/build/subversion/bindings/swig/python/libsvn_swig_py -prefer-pic -c -o subversion/bindings/swig/python/core.lo subversion/bindings/swig/python/core.c
subversion/bindings/swig/python/core.c:38841:91: error: cannot take the address of an rvalue of type 'int'
  SWIG_Python_SetConstant(d, "SWIG_SVN_INVALID_REVNUM",SWIG_NewPointerObj(SWIG_as_voidptr(&-1),SWIGTYPE_p_svn_revnum_t, 0 ));
                                                                                          ^~~
subversion/bindings/swig/python/core.c:3175:52: note: expanded from macro 'SWIG_as_voidptr'
#define SWIG_as_voidptr(a) (void *)((const void *)(a)) 
                                                   ^
subversion/bindings/swig/python/core.c:1164:89: note: expanded from macro 'SWIG_NewPointerObj'
#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
                                                                                        ^~~
subversion/bindings/swig/python/core.c:38842:91: error: cannot take the address of an rvalue of type 'int'
  SWIG_Python_SetConstant(d, "SWIG_SVN_IGNORED_REVNUM",SWIG_NewPointerObj(SWIG_as_voidptr(&-1),SWIGTYPE_p_svn_revnum_t, 0 ));
                                                                                          ^~~
subversion/bindings/swig/python/core.c:3175:52: note: expanded from macro 'SWIG_as_voidptr'
#define SWIG_as_voidptr(a) (void *)((const void *)(a)) 
                                                   ^
subversion/bindings/swig/python/core.c:1164:89: note: expanded from macro 'SWIG_NewPointerObj'
#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
                                                                                        ^~~
2 errors generated.
make: *** [subversion/bindings/swig/python/core.lo] Error 1


-- Brane



Re: Swig bindings builds are failing

Posted by Branko Čibej <br...@apache.org>.
On 04.01.2019 16:22, Branko Čibej wrote:
> The following just started appearing on the macos build slave, and
> similar errors are being emitted on the Windows bots:
>
> (see https://ci.apache.org/builders/svn-x64-macosx-full/builds/2275)


It turns out this was caused by r1850344, which introduced two new
public headers. A list of these headers is well hidden deep in our Swig
bindings code and Swig apparently doesn't follow header dependencies.

Should be fixed in r1850612.

-- Brane