On 23 December 2012 15:07, Michael Goffioul <address@hidden> wrote:
> I have a compilation failure (Fedora 17, gcc-4.7.2) because of undeclared
> functions Fenable_jit_debugging/Fenable_jit_compiler in
> libinterp/octave.cc. These were introduced by change
> http://hg.savannah.gnu.org/hgweb/octave/rev/3f447bcc8488, which is quite
> old. So if there was a compilation problem, it would have spotted already.
> Am I missing something?
I don't build with JITC very often because I run Debian stable and its
llvm is too old. However, I just tried building that with the same gcc
version on a Debian unstable chroot, and I had no problems. Are you
seeing this on a clean build tree? My tree wasn't quite clean, so
perhaps I'm keeping around something old that is helping me build.
Thanks, Jordi. It turned out to be a problem on my side, at least partially. I was trying to compile classdef branch, prior this changeset:
The build failed because of misplaced source files. I simply tried "hg move" to move the files to the right location, then "make -j2" and this is when the problem occurred. Apparently, pt-jit.df was incomplete and didn't have any reference to enable_jit_debugging and enable_jit_compiler. This lead to missing declaration in builtin-defun-decls.h and the compilation error I got. I didn't investigate much, I simply re-ran the full compilation procedure (bootstrap, configure and make) and it worked fine.
Michael.