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

Re: swig: srcdir vs. blddir

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-12-16 20:57:48 CET

Philip Martin <philip@codematters.co.uk> writes:

> A more annoying problem is that the 'make -j4 swig-py' parallel build
> is broken, it sometimes fails with
>
> /usr/local/swig-1.3.24/bin/swig -I/home/pm/sw/subversion/obj/../svn/subversion/include -I/home/pm/sw/subversion/obj/../svn/subversion/bindings/swig -I/home/pm/sw/subversion/obj/../svn/subversion/bindings/swig/include -I/home/pm/sw/subversion/obj/../svn/subversion/bindings/swig/proxy -I/home/pm/sw/subversion/obj/subversion/bindings/swig/proxy -I/usr/local/apache2/include -I/usr/local/apache2/include -python -classic -w451 -w305 -o ../svn/subversion/bindings/swig/python/svn_client.c ../svn/subversion/bindings/swig/svn_client.i
> Traceback (most recent call last):
> File "build/generator/swig/external_runtime.py", line 107, in ?
> gen.write()
> File "build/generator/swig/external_runtime.py", line 99, in write
> self.write_long_long_fix()
> File "build/generator/swig/external_runtime.py", line 82, in write_long_long_fix
> self.checkout("python","python.swg")
> File "/home/pm/sw/subversion/svn/build/generator/swig/__init__.py", line 56, in checkout
> shutil.copy("%s/%s/%s" % (self.swig_libdir, dir, file), out)
> File "/usr/lib/python2.3/shutil.py", line 73, in copy
> copymode(src, dst)
> File "/usr/lib/python2.3/shutil.py", line 52, in copymode
> os.chmod(dst, mode)
> OSError: [Errno 2] No such file or directory: 'subversion/bindings/swig/proxy/python.swg'

Even more annoying is that the perl bindings don't build at all. I've
build the perl bindings in the past, so this is a recent breakage.
'make swig-pl' creates the generated C files in the source dir, but no
attempt is made to compile them, and then a link command fails because
the object is not found:

  
Writing Makefile.wc for SVN::_Wc
cd /home/pm/sw/subversion/obj/subversion/bindings/swig/perl/native; make
make[1]: Entering directory `/home/pm/sw/subversion/obj/subversion/bindings/swig/perl/native'
cp ../../../../../../svn/subversion/bindings/swig/perl/native/Core.pm blib/lib/SVN/Core.pm
cp ../../../../../../svn/subversion/bindings/swig/perl/native/Repos.pm blib/lib/SVN/Repos.pm
cp ../../../../../../svn/subversion/bindings/swig/perl/native/Base.pm blib/lib/SVN/Base.pm
cp ../../../../../../svn/subversion/bindings/swig/perl/native/Client.pm blib/lib/SVN/Client.pm
cp ../../../../../../svn/subversion/bindings/swig/perl/native/Fs.pm blib/lib/SVN/Fs.pm
cp ../../../../../../svn/subversion/bindings/swig/perl/native/Ra.pm blib/lib/SVN/Ra.pm
cp ../../../../../../svn/subversion/bindings/swig/perl/native/Wc.pm blib/lib/SVN/Wc.pm
cp ../../../../../../svn/subversion/bindings/swig/perl/native/Delta.pm blib/lib/SVN/Delta.pm
Running Mkbootstrap for SVN::_Core ()
chmod 644 _Core.bs
rm -f blib/arch/auto/SVN/_Core/_Core.so
LD_RUN_PATH="/home/pm/sw/subversion/obj/subversion/libsvn_client/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_delta/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_fs/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_ra/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_repos/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_wc/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_diff/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_subr/.libs:/home/pm/sw/subversion/obj/subversion/bindings/swig/perl/libsvn_swig_perl/.libs" cc -shared -L/usr/local/lib core.o -o blib/arch/auto/SVN/_Core/_Core.so -L/home/pm/sw/subversion/obj/subversion/bindings/swig/perl/libsvn_swig_perl/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_client/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_delta/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_fs/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_ra/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_repos/.libs -L/home/pm/sw/subversion/obj/subver
sion/libsvn_wc/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_diff/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_subr/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_ra_local/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_ra_svn/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_ra_dav/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_fs_base/.libs -L/home/pm/sw/subversion/obj/subversion/libsvn_fs_fs/.libs -lsvn_client-1 -lsvn_delta-1 -lsvn_fs-1 -lsvn_ra-1 -lsvn_repos-1 -lsvn_wc-1 -lsvn_diff-1 -lsvn_subr-1 -lsvn_swig_perl-1
cc: core.o: No such file or directory
make[1]: *** [blib/arch/auto/SVN/_Core/_Core.so] Error 1
make[1]: Leaving directory `/home/pm/sw/subversion/obj/subversion/bindings/swig/perl/native'
make: *** [swig-pl] Error 2

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 16 21:03:01 2005

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.