build error on interrogate

I’m trying to build from latest cvs (on debian wheezy i386), but I’ve got this error:

built/bin/interrogate -srcdir panda/src/linmath -Ipanda/src/linmath -Dvolatile -Dmutable -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -D__const=const -D__i386__ -oc built/tmp/libp3linmath_igate.cxx -od built/pandac/input/ -fnames -string -refcount -assert -python-native -Sbuilt/include/parser-inc -Ipanda/src/linmath -Sbuilt/tmp -Sbuilt/include -S/usr/include/python2.7 -DBUILDING_PANDA -module panda -library libp3linmath aa_luse.h compose_matrix.h compose_matrix_src.h config_linmath.h coordinateSystem.h dbl2fltnames.h dblnames.h deg_2_rad.h flt2dblnames.h fltnames.h lcast_to.h lcast_to_src.h lmatrix.h lmatrix3_ext_src.h lmatrix3_src.h lmatrix4_ext_src.h lmatrix4_src.h lmatrix_ext.h lorientation.h lorientation_src.h lpoint2.h lpoint2_ext.h lpoint2_ext_src.h lpoint2_src.h lpoint3.h lpoint3_ext.h lpoint3_ext_src.h lpoint3_src.h lpoint4.h lpoint4_ext.h lpoint4_ext_src.h lpoint4_src.h lquaternion.h lquaternion_src.h lrotation.h lrotation_src.h lsimpleMatrix.h luse.h lvec2_ops.h lvec2_ops_src.h lvec3_ops.h lvec3_ops_src.h lvec4_ops.h lvec4_ops_src.h lvecBase2.h lvecBase2_ext.h lvecBase2_ext_src.h lvecBase2_src.h lvecBase3.h lvecBase3_ext.h lvecBase3_ext_src.h lvecBase3_src.h lvecBase4.h lvecBase4_ext.h lvecBase4_ext_src.h lvecBase4_src.h lvector2.h lvector2_ext.h lvector2_ext_src.h lvector2_src.h lvector3.h lvector3_ext.h lvector3_ext_src.h lvector3_src.h lvector4.h lvector4_ext.h lvector4_ext_src.h lvector4_src.h mathNumbers.h p3linmath_composite1.cxx p3linmath_composite2.cxx vector_LPoint2f.h
  *** Error in lmatrix3_ext_src.h near line 23, column 19:
  syntax error, unexpected '<'
Error parsing file: 'lmatrix3_ext_src.h'
Process exited with exit status 1 and signal code 0

The arguments are

--threads 1
--optimize 3

Any idea about what might be wrong?
Thanks for help

I’m getting the same error …

Sorry, I’ve been working on that code. I’ve just checked in some things that should fix it.

I got some more build errors on arch 64 with: python2 makepanda/ --everything --no-opencv --no-ode --no-ffmpeg --no-maya2012 --no-fmodex --no-gles2 --no-vision --use-bullet --threads 5

    [T2] Linking executable built/bin/apply_patch
    built/lib/ undefined reference to `PyExc_BufferError'
    built/lib/ undefined reference to `PyObject_GetBuffer'
    built/lib/ undefined reference to `PyMemoryView_FromObject'
    built/lib/ undefined reference to `PyBuffer_Release'
    collect2: error: ld returned 1 exit status
    The following command returned a non-zero value: g++ -o built/bin/apply_patch -Lbuilt/lib -Lbuilt/tmp -L/usr/X11R6/lib built/tmp/apply_patch_apply_patch.o built/lib/ built/lib/ built/lib/ built/lib/ built/lib/libp3pystub.a -pthread -L/usr/lib -lssl -lcrypto -lz -ldl
    Storing dependency cache.
    Elapsed Time: 3 min 8 sec
    Build process aborting.
    Build terminated.

Checked in fixes for that as well.

I was still getting an error

The problem was a typo (looked 3 times before noticing it, lol) in the line 78 of pystub.cxx. It should be

 EXPCL_PYSTUB int PyMemoryView_FromObject(...);

instead of

 EXPCL_PYSTUB int PyModuleView_FromObject(...);

Thanks. Sorry about that, it was late and I was rather tired…