<div dir="ltr"><div dir="ltr" class="gmail_msg">Here's the notes I took when I compiled ACE. I don't know if any of these steps address the problem you're facing.<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg"> sudo apt install libboost-regex-dev</div><div class="gmail_msg"> sudo apt install libpvm3</div><div class="gmail_msg"> wget <a href="http://sweaglesw.com/linguistics/repp-0.2.2.tar.gz" class="gmail_msg" target="_blank">http://sweaglesw.com/linguistics/repp-0.2.2.tar.gz</a></div><div class="gmail_msg"> tar xf repp-0.2.2.tar.gz</div><div class="gmail_msg"> cd repp-0.2.2/</div><div class="gmail_msg"> ./configure && make all</div><div class="gmail_msg"> sudo make install</div><div class="gmail_msg"> cd</div><div class="gmail_msg"> mkdir itsdb_libraries</div><div class="gmail_msg"> cd itsdb_libraries</div><div class="gmail_msg"> wget <a href="http://lingo.delph-in.net/latest/itsdb_libraries.tgz" class="gmail_msg" target="_blank">http://lingo.delph-in.net/latest/itsdb_libraries.tgz</a></div><div class="gmail_msg"> tar xf itsdb_libraries.tgz</div><div class="gmail_msg"> sudo cp include/* /usr/local/include/</div><div class="gmail_msg"> sudo cp lib/linux.x86.64/* /usr/local/lib/ # maybe change if arch is diff</div><div class="gmail_msg"> cd</div><div class="gmail_msg"> svn co <a href="http://sweaglesw.org/svn/ace/trunk/" class="gmail_msg" target="_blank">http://sweaglesw.org/svn/ace/trunk/</a> ace</div><div class="gmail_msg"> cd ace/</div><div class="gmail_msg"> make all # see note below</div><div class="gmail_msg"> sudo make install</div><div class="gmail_msg"><br class="gmail_msg"></div></div><div class="gmail_msg">Also, the last time I compiled, I had to do an additional step because there was some problem statically compiling libutil on my system. Change the following line in Makefile in the ace/ directory before running `make all`.</div><div class="gmail_msg"><span style="color:rgb(33,33,33);font-size:13px"><br></span></div><div class="gmail_msg"><span style="color:rgb(33,33,33);font-size:13px">POST_LIBS=-Wl,-Bstatic -lutil -Wl,-Bdynamic</span><br></div><div class="gmail_msg"><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px"><br class="gmail_msg"></div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">to this:</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px"><br class="gmail_msg"></div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">POST_LIBS=-Wl,-Bdynamic <span class="gmail_msg" style="line-height:1.5">-lutil</span></div></div><div class="gmail_msg"><br></div><div class="gmail_msg">One more possible problem is that ACE calls the mmap() function with a flag that Windows doesn't (or didn't) support (e.g. MAP_SHARED or MAP_FIXED or something). This was one blocking reason ACE couldn't be compiled directly on a Windows machine. I don't know if it's still the case, or if it applies under the WSL (Windows Subsystem for Linux).</div></div><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Wed, Nov 16, 2016 at 10:26 AM Joshua Crowgey <<a href="mailto:jcrowgey@u.washington.edu" class="gmail_msg" target="_blank">jcrowgey@u.washington.edu</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As it turns out, that same include dir where I found itsdb.h for you<br class="gmail_msg">
also has pvm3.h. So, I've attached it here. However, the fact that ld<br class="gmail_msg">
can't find itsdb means that you need to tell gcc where to find it, maybe<br class="gmail_msg">
it's -L /path/to/include/with/these/dot/h/files, as an arg to gcc.<br class="gmail_msg">
<br class="gmail_msg">
I suppose the C ppl on this list will be able to provide more insightful<br class="gmail_msg">
comments. Good luck!<br class="gmail_msg">
<br class="gmail_msg">
--Joshua<br class="gmail_msg">
<br class="gmail_msg">
On 11/16/2016 10:07 AM, Guy Emerson wrote:<br class="gmail_msg">
> If I leave the two itsdb lines of the makefile commented out, it still<br class="gmail_msg">
> throws an error saying capi_printf is undefined (itsdb.o, in function<br class="gmail_msg">
> "captured_capi_printf", itsdb.c line 20).<br class="gmail_msg">
><br class="gmail_msg">
> If I uncomment those two lines, it says:<br class="gmail_msg">
><br class="gmail_msg">
> /usr/bin/ld: cannot find -litsdb<br class="gmail_msg">
> /usr/bin/ld: cannot find -lpvm3<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> (And I don't want to install the entire Logon tree just to build ACE.)<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> 2016-11-16 17:31 GMT+00:00 Joshua Crowgey <<a href="mailto:jcrowgey@u.washington.edu" class="gmail_msg" target="_blank">jcrowgey@u.washington.edu</a><br class="gmail_msg">
> <mailto:<a href="mailto:jcrowgey@u.washington.edu" class="gmail_msg" target="_blank">jcrowgey@u.washington.edu</a>>>:<br class="gmail_msg">
><br class="gmail_msg">
> Hi Guy,<br class="gmail_msg">
><br class="gmail_msg">
> Re building ACE, I have itsdb.h in logon/lingo/lkb/include/, but I've<br class="gmail_msg">
> attached it here. Maybe you just need to tell your compiler where to<br class="gmail_msg">
> find it. I think it's gcc -L (or -l, I can't recall).<br class="gmail_msg">
><br class="gmail_msg">
> Hope this helps!<br class="gmail_msg">
><br class="gmail_msg">
> --Joshua<br class="gmail_msg">
><br class="gmail_msg">
> On 11/16/2016 08:47 AM, Guy Emerson wrote:<br class="gmail_msg">
> > I used the precompiled binary and grammar - I didn't realise that<br class="gmail_msg">
> > librepp was only for compiling from source.<br class="gmail_msg">
> ><br class="gmail_msg">
> > Running gdb, I get:<br class="gmail_msg">
> ><br class="gmail_msg">
> > Program received signal SIGSEGV, Segmentation fault.<br class="gmail_msg">
> > 0x00007fffdec22300 in ?? ()<br class="gmail_msg">
> > (gdb) backtrace<br class="gmail_msg">
> > #0 0x00007fffdec22300 in ?? ()<br class="gmail_msg">
> > #1 0x000000000046290a in visit_lexicon (stem=<optimized out>,<br class="gmail_msg">
> > visitor=0x7fffdec22300) at lexicon.c:137<br class="gmail_msg">
> > #2 0x00000000004845fc in lexical_lookup (tc=0x7f27168d0000) at<br class="gmail_msg">
> morpho.c:283<br class="gmail_msg">
> > #3 0x00000000004df9b1 in lexical_lookup_into_chart<br class="gmail_msg">
> > (token_chart=0x7f27168d0000) at lexical-parse.c:64<br class="gmail_msg">
> > #4 0x00000000004c0ff8 in parse_with_token_chart<br class="gmail_msg">
> > (token_chart=0x7f27168d0000, start=46875) at parse.c:481<br class="gmail_msg">
> > #5 0x00000000004c37e1 in parse_line1 (line=0x7fffdec22540 "Hello") at<br class="gmail_msg">
> > parse.c:743<br class="gmail_msg">
> > #6 0x00000000004c3936 in parse_line (line=0x6005692cfc ",-i\005`") at<br class="gmail_msg">
> > parse.c:768<br class="gmail_msg">
> > #7 0x0000000000516677 in main_input_loop (fin=0x7f271708f640<br class="gmail_msg">
> > <_IO_2_1_stdin_>) at main.c:443<br class="gmail_msg">
> > #8 0x0000000000517561 in main (argc=4, argv=0x7fffdec276c8) at<br class="gmail_msg">
> main.c:653<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > If I try to compile the ERG image (using the precompiled binary),<br class="gmail_msg">
> I also<br class="gmail_msg">
> > get a seg fault:<br class="gmail_msg">
> ><br class="gmail_msg">
> > Program received signal SIGSEGV, Segmentation fault.<br class="gmail_msg">
> > 0x00007fffcea82cd8 in ?? ()<br class="gmail_msg">
> > (gdb) backtrace<br class="gmail_msg">
> > #0 0x00007fffcea82cd8 in ?? ()<br class="gmail_msg">
> > #1 0x00000000004ccfbe in iterate_conf_list (key=<optimized out>,<br class="gmail_msg">
> > callback=0x7fffcea82cd8) at conf.c:534<br class="gmail_msg">
> > #2 0x00000000004ce9aa in load_preprocessor () at preprocessor.c:58<br class="gmail_msg">
> > #3 0x0000000000472772 in load_grammar (path=0x7fffcea831fc<br class="gmail_msg">
> > "/home/Guy/delphin/erg/trunk/ace/config.tdl") at tdl.c:1660<br class="gmail_msg">
> > #4 0x0000000000515dbe in initialize_engine () at main.c:523<br class="gmail_msg">
> > #5 0x000000000051735d in main (argc=6, argv=0x7fffcea82fb8) at<br class="gmail_msg">
> main.c:620<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > If I try to compile ACE from source, without any changes, there is an<br class="gmail_msg">
> > error that itsdb.h is not found.<br class="gmail_msg">
> ><br class="gmail_msg">
> > If I try to compile ACE after commenting out the two lines in the<br class="gmail_msg">
> > Makefile for itsdb, there is an error that capi_printf is not<br class="gmail_msg">
> defined in<br class="gmail_msg">
> > itsdb.o.<br class="gmail_msg">
> ><br class="gmail_msg">
> > If I also remove itsdb.o from the Makefile, many things are undefined.<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > As I'm not a C developer, I have very little sense about how easy this<br class="gmail_msg">
> > would be to debug or to fix... I'm quite happy to be told this is not<br class="gmail_msg">
> > worth the effort!<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > 2016-11-15 17:12 GMT+00:00 Woodley Packard<br class="gmail_msg">
> <<a href="mailto:sweaglesw@sweaglesw.org" class="gmail_msg" target="_blank">sweaglesw@sweaglesw.org</a> <mailto:<a href="mailto:sweaglesw@sweaglesw.org" class="gmail_msg" target="_blank">sweaglesw@sweaglesw.org</a>><br class="gmail_msg">
> > <mailto:<a href="mailto:sweaglesw@sweaglesw.org" class="gmail_msg" target="_blank">sweaglesw@sweaglesw.org</a> <mailto:<a href="mailto:sweaglesw@sweaglesw.org" class="gmail_msg" target="_blank">sweaglesw@sweaglesw.org</a>>>>:<br class="gmail_msg">
> ><br class="gmail_msg">
> > Out of curiousity, Guy, were you able to use the precompiled binary<br class="gmail_msg">
> > for ACE or did you have to compile your own? I wouldn’t have<br class="gmail_msg">
> > thought you would need to install the librepp and boost dependencies<br class="gmail_msg">
> > if using the binaries. It looks like you are using the precompiled<br class="gmail_msg">
> > ERG image though. You could be getting a crash if you are using a<br class="gmail_msg">
> > stock 0.9.24 grammar image with SVN trunk ACE source code. On the<br class="gmail_msg">
> > off chance that you are doing that, please try compiling the ERG<br class="gmail_msg">
> > image with the same ACE binary you are using. It *might* be helpful<br class="gmail_msg">
> > to recompile the ERG image anyway.<br class="gmail_msg">
> ><br class="gmail_msg">
> > Regards,<br class="gmail_msg">
> > -Woodley<br class="gmail_msg">
> ><br class="gmail_msg">
> > > On Nov 15, 2016, at 6:33 AM, Guy Emerson <<a href="mailto:gete2@cam.ac.uk" class="gmail_msg" target="_blank">gete2@cam.ac.uk</a><br class="gmail_msg">
> <mailto:<a href="mailto:gete2@cam.ac.uk" class="gmail_msg" target="_blank">gete2@cam.ac.uk</a>> <mailto:<a href="mailto:gete2@cam.ac.uk" class="gmail_msg" target="_blank">gete2@cam.ac.uk</a><br class="gmail_msg">
> <mailto:<a href="mailto:gete2@cam.ac.uk" class="gmail_msg" target="_blank">gete2@cam.ac.uk</a>>>> wrote:<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > I am trying to run ACE on Windows 10's new Linux Subsystem.<br class="gmail_msg">
> I can<br class="gmail_msg">
> > run ACE with the ERG, but whatever input I give, I get the message<br class="gmail_msg">
> > "ERROR: DEADLY SIGNAL!"<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > It looks like it finishes the token mapping, and fails when<br class="gmail_msg">
> > applying a syntactic rule. Verbose output is below.<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > I've already installed repp-0.2.2 (which required me to also<br class="gmail_msg">
> > install libboost), and I've set the TMPDIR environment<br class="gmail_msg">
> variable, as<br class="gmail_msg">
> > suggested on the ACE homepage.<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > Any ideas on what else I would need to do? Could there be other<br class="gmail_msg">
> > dependencies I need to install?<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > Best,<br class="gmail_msg">
> > > Guy<br class="gmail_msg">
> > ><br class="gmail_msg">
> > ><br class="gmail_msg">
> > ><br class="gmail_msg">
> > > ./ace -g erg-1214-x86-64-0.9.24.dat -1Tf -vvv<br class="gmail_msg">
> > > NOTE: loading frozen grammar ERG (1214)<br class="gmail_msg">
> > > NOTE: semantic index hash contains 28857 entries in 65536 slots<br class="gmail_msg">
> > > NOTE: max-ent model hash contains 659414 entries in 1048576<br class="gmail_msg">
> slots<br class="gmail_msg">
> > > NOTE: 9280 types, 38259 lexemes, 293 rules, 47 orules, 101<br class="gmail_msg">
> > instances, 48101 strings, 216 features<br class="gmail_msg">
> > > permanent RAM: 4k<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > Hello<br class="gmail_msg">
> > > Hello/UH<br class="gmail_msg">
> > > token #12 le 0x7f07295d7fcc vtx [0-1] char [0-5] string 'hello'<br class="gmail_msg">
> > dag #D[token +FORM: #D["hello"] +FROM: <1>= #D["0"] +TO: #D["5"]<br class="gmail_msg">
> > +ID: #D[*diff-list* LIST: #D[*list*] LAST: #D[*list*] ] +TNT:<br class="gmail_msg">
> > #D[null_tnt +TAGS: #D[*null*] +PRBS: #D[*null*] +MAIN: #D[tnt_main<br class="gmail_msg">
> > +TAG: #D["UH"] +PRB: #D["1.0"] ] ] +CLASS: #D[alphabetic +INITIAL:<br class="gmail_msg">
> > #D[+] +CASE: #D[capitalized+lower] ] +TRAIT: #D[token_trait +UW:<br class="gmail_msg">
> > #D[-] +IT: #D[italics] +LB: #D[bracket_null] +RB: #D[bracket_null]<br class="gmail_msg">
> > +HD: #D[token_head +LL: #D[ctype -CTYPE-: #D[string] ] +TG:<br class="gmail_msg">
> > #D[string] +TI: <1> ] ] +PRED: #D[predsort] +CARG: #D["Hello"]<br class="gmail_msg">
> > +TICK: #D[bool] ]<br class="gmail_msg">
> > > token #13 le 0x7f07295d87e0 vtx [0-1] char [0-5] string 'hello'<br class="gmail_msg">
> > dag #D[token +FORM: #D["hello"] +FROM: <1>= #D["0"] +TO: #D["5"]<br class="gmail_msg">
> > +ID: #D[*diff-list* LIST: #D[*list*] LAST: #D[*list*] ] +TNT:<br class="gmail_msg">
> > #D[null_tnt +TAGS: #D[*null*] +PRBS: #D[*null*] +MAIN: #D[tnt_main<br class="gmail_msg">
> > +TAG: #D[string] +PRB: #D[string] ] ] +CLASS: #D[bridge_class]<br class="gmail_msg">
> > +TRAIT: #D[token_trait +UW: #D[+] +IT: #D[italics] +LB:<br class="gmail_msg">
> > #D[bracket_null] +RB: #D[bracket_null] +HD: #D[token_head +LL:<br class="gmail_msg">
> > #D[ctype -CTYPE-: #D[string] ] +TG: #D[string] +TI: <1> ] ] +PRED:<br class="gmail_msg">
> > #D["_hello_u_bridge_rel"] +CARG: #D["Hello"] +TICK: #D[bool] ]<br class="gmail_msg">
> > > finished token mapping<br class="gmail_msg">
> > > hello -> hello [2 ways]<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > non_third_sg_fin_v_rbst<br class="gmail_msg">
> > > hello -> hello [2 ways]<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > non_third_sg_fin_v_rbst<br class="gmail_msg">
> > > ERROR: DEADLY SIGNAL! sent = `Hello'<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
</blockquote></div></div>