Compiling FFTB

#1

Does anyone manage to compile FFTB? I am trying to make it work with the last ACE 0.9.30 without any success so far. I am blocked in the compilation of web.c

What is this liba.h file?

$ make
gcc -O2 -g   -c -o web.o web.c
web.c:16:10: fatal error: liba.h: No such file or directory
#include <liba.h>
         ^~~~~~~~
compilation terminated.
<builtin>: recipe for target 'web.o' failed
make: *** [web.o] Error 1

Help!

0 Likes

#2

For this, you will need liba compiled and installed first:

svn co http://sweaglesw.org/svn/liba/trunk liba

Best,

Woodley

0 Likes

#3

hi Woodley,

could you add the link to this page (which says liba is not available) please?

0 Likes

#4

Thank you @sweaglesw, now a new problem:

$ make
gcc -g -O -shared -fPIC -pthread   -c -o sql.o sql.c
sql.c:6:10: fatal error: postgresql/libpq-fe.h: No such file or directory
 #include <postgresql/libpq-fe.h>
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'sql.o' failed
make: *** [sql.o] Error 1

As you can see from the other posts, I am trying to compile fftb in the Linux system in parallel with my tests with fftb pre-compied to MacOS.

0 Likes

#5

@arademaker, you can either remove sql.o from the liba Makefile (I think that will work, and fftb does not use it) or install the libpq-dev package (postgres libraries) that liba depends on.

0 Likes

#7

Hi @sweaglesw

Not sure the best place to make this comment, I will make it here and also in the developers@ list. Using the last version of fftb from http://sweaglesw.org/linguistics/acetools/ I am getting a Segmentation fault when I try to accept or reject the final analysis.

BTW, I solved my problem with my docker (https://github.com/own-pt/docker-logon) using the nginx server to intermediate the connection between my browser in the host machine (MacOS), the VM created by the Docker App on Mac and the fftb process inside the container.

$ ./fftb -g ~/ace-0.9.30-x86-64/erg-2018-x86-64-0.9.30.dat --webdir ~/fftb-osx/assets/ ~/repsol/repsol-100-ff/
grammar image: /home/user/ace-0.9.30-x86-64/erg-2018-x86-64-0.9.30.dat
listening on http://127.0.0.1:9080/private/
should GET    /private/
should GET    /private/parse?profile=/&id=34
item id 34 -> input 'Average ultimate production per acre for these fields is 3.7 MMCFG.'
profile parse id 34
-> loaded stored forest
found stored forest (1153 edges connected to 21 roots).<br/>
UCSTAT: input 1153 edges, output 1133 edges
should GET    /private/session?0
should GET    /private/assets/render.js
should GET    /private/assets/control.js
should POST    /session?0;1;;
should POST    /session?0;0;9:10;_olddecs=
should POST    /session?0;0;10:11;_olddecs=
should POST    /session?0;0;9:10;_olddecs=
should POST    /session?0;0;;_olddecs=
should POST    /comment?0&
Segmentation fault

Can you reproduce it? I can share the profile if you need.

0 Likes