2008/8/7 Peter <[EMAIL PROTECTED]>: > On Thu, Aug 7, 2008 at 4:49 PM, Laurent Gautier <[EMAIL PROTECTED]> wrote: >> It is looking like the setup script is too picky. >> >> The following patch in setup.py should make work: >> >> >> >> Index: setup.py >> =================================================================== >> --- setup.py (revision 614) >> +++ setup.py (working copy) >> @@ -60,6 +60,9 @@ >> rconfig = rconfig.strip() >> rconfig_m = re.match('^(-L.+) (-l.+)$', rconfig) >> if rconfig_m is None: >> + # MacOSX >> + rconfig_m = re.match('^(-F.+) (-framework.+)$', rconfig) >> + if rconfig_m is None: >> raise Exception(cmd + '\nreturned\n' + rconfig) >> return rconfig_m.groups() > > I added those three lines by hand, and then it does actually try and > do the build - but fails: > > $ python setup.py build > running build > running build_py > creating build > creating build/lib.macosx-10.3-i386-2.5 > creating build/lib.macosx-10.3-i386-2.5/rpy2 > copying rpy/__init__.py -> build/lib.macosx-10.3-i386-2.5/rpy2 > copying rpy/rpy_classic.py -> build/lib.macosx-10.3-i386-2.5/rpy2 > copying rpy/tests.py -> build/lib.macosx-10.3-i386-2.5/rpy2 > creating build/lib.macosx-10.3-i386-2.5/rpy2/rlike > copying rpy/rlike/__init__.py -> build/lib.macosx-10.3-i386-2.5/rpy2/rlike > copying rpy/rlike/container.py -> build/lib.macosx-10.3-i386-2.5/rpy2/rlike > copying rpy/rlike/symbols.py -> build/lib.macosx-10.3-i386-2.5/rpy2/rlike > creating build/lib.macosx-10.3-i386-2.5/rpy2/rlike/tests > copying rpy/rlike/tests/__init__.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rlike/tests > copying rpy/rlike/tests/test_container.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rlike/tests > creating build/lib.macosx-10.3-i386-2.5/rpy2/robjects > copying rpy/robjects/__init__.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects > copying rpy/robjects/numpy.py -> build/lib.macosx-10.3-i386-2.5/rpy2/robjects > creating build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > copying rpy/robjects/tests/__init__.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > copying rpy/robjects/tests/testRArray.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > copying rpy/robjects/tests/testRDataFrame.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > copying rpy/robjects/tests/testREnvironment.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > copying rpy/robjects/tests/testRFormula.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > copying rpy/robjects/tests/testRFunction.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > copying rpy/robjects/tests/testRObject.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > copying rpy/robjects/tests/testRobjects.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > copying rpy/robjects/tests/testRVector.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/robjects/tests > creating build/lib.macosx-10.3-i386-2.5/rpy2/rinterface > copying rpy/rinterface/__init__.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rinterface > creating build/lib.macosx-10.3-i386-2.5/rpy2/rinterface/tests > copying rpy/rinterface/tests/__init__.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rinterface/tests > copying rpy/rinterface/tests/test_EmbeddedR.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rinterface/tests > copying rpy/rinterface/tests/test_EmbeddedR_multithreaded.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rinterface/tests > copying rpy/rinterface/tests/test_Sexp.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rinterface/tests > copying rpy/rinterface/tests/test_SexpClosure.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rinterface/tests > copying rpy/rinterface/tests/test_SexpEnvironment.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rinterface/tests > copying rpy/rinterface/tests/test_SexpVector.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rinterface/tests > copying rpy/rinterface/tests/test_SexpVectorNumeric.py -> > build/lib.macosx-10.3-i386-2.5/rpy2/rinterface/tests > running build_ext > building 'rpy2.rinterface.rinterface' extension > creating build/temp.macosx-10.3-i386-2.5 > creating build/temp.macosx-10.3-i386-2.5/rpy > creating build/temp.macosx-10.3-i386-2.5/rpy/rinterface > gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd > -fno-common -dynamic -DNDEBUG -g -O3 -DR_INTERFACE_PTRS=1 > -DCSTACK_DEFNS=1 -I/Library/Frameworks/R.framework/Resources/include > -Irpy/rinterface > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 > -c rpy/rinterface/array.c -o > build/temp.macosx-10.3-i386-2.5/rpy/rinterface/array.o > rpy/rinterface/array.c:103: error: syntax error before '*' token > rpy/rinterface/array.c: In function 'array_struct_get': > rpy/rinterface/array.c:105: error: 'self' undeclared (first use in > this function) > rpy/rinterface/array.c:105: error: (Each undeclared identifier is > reported only once > rpy/rinterface/array.c:105: error: for each function it appears in.) > rpy/rinterface/array.c:105: warning: initialization makes pointer from > integer without a cast > rpy/rinterface/array.c:103: error: syntax error before '*' token > rpy/rinterface/array.c: In function 'array_struct_get': > rpy/rinterface/array.c:105: error: 'self' undeclared (first use in > this function) > rpy/rinterface/array.c:105: error: (Each undeclared identifier is > reported only once > rpy/rinterface/array.c:105: error: for each function it appears in.) > rpy/rinterface/array.c:105: warning: initialization makes pointer from > integer without a cast > lipo: can't figure out the architecture type of: > /var/folders/oe/oes+MjT+GnSYc8VMX+jRQ++++TI/-Tmp-//ccQERlma.out > error: command 'gcc' failed with exit status 1
Could it happen that gcc is confused by the multiple-lines declaration of the function ? rpy/rinterface/array.c:103: error: syntax error before '*' token (don't ask me why it would choke on that one but not on any other) > This is an intel Mac; I am assuming the default gcc is being used: > > $ gcc -v > Using built-in specs. > Target: i686-apple-darwin9 > Configured with: /var/tmp/gcc/gcc-5465~16/src/configure > --disable-checking -enable-werror --prefix=/usr --mandir=/share/man > --enable-languages=c,objc,c++,obj-c++ > --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ > --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib > --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic > --host=i686-apple-darwin9 --target=i686-apple-darwin9 > Thread model: posix > gcc version 4.0.1 (Apple Inc. build 5465) > > What version of gcc are you using? On Linux: Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) (I can't remember what I have to build the Win32 versions - and I'd have to reboot). > Thanks, > > Peter > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list