<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi all,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I'm getting similar errors to Alexandre. I successfully compiled and installed liba, repp-0.2.2, and then ace, but I'm getting the error that it cannot find <tsdb.h> I try "make all" for libtsdb. I noticed that tsdb.h is provided by libtsdb, and `#include <tsdb.h>` seems to look in my system libraries. Changing all these to `#include "tsdb.h"` (thinking it might use the file in the current directory) did not work, so I reverted those changes and ran the following:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> make libtsdb.a # required for 'make install'<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> make libtsdb.so # required for 'make install'<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> make install # copies the above 2 things plus tsdb.h to /usr/local/lib/<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Then I tried running "make all" again and now I see this:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> [...]<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> test.c: In function ‘main’:<br> test.c:599:2: warning: implicit declaration of function ‘ace_load_grammar’ [-Wimplicit-function-declaration]<br> 599 | ace_load_grammar("/home/sweaglesw/cdev/ace-regression/comparison.dat");<br> | ^~~~~~~~~~~~~~~~<br> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.31.a(e_exp.o): in function `__ieee754_exp_ifunc':<br> (.text+0x246): undefined reference to `_dl_x86_cpu_features'<br> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm-2.31.a(e_log.o): in function `__ieee754_log_ifunc':<br> (.text+0x2c6): undefined reference to `_dl_x86_cpu_features'<br> collect2: error: ld returned 1 exit status<br> make: *** [Makefile:45: test.static] Error 1<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">It seems there's some incompatibility in glibc versions. This SO question seems relevant: <a href="https://stackoverflow.com/q/56415996/1441112">https://stackoverflow.com/q/56415996/1441112</a> ; maybe it's a static vs. dynamic linking issue? Other than test.static, I was able to make other targets, such as art and mkprof, but I see errors when I try to run them:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> $ ./art -h<br> ./art: error while loading shared libraries: libace.so: cannot open shared object file: No such file or directory<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">But I have libace.so at /usr/local/lib/libace.so, so I'm not sure what went wrong here. My end goal is to compile FFTB, and if I carry on with the current setup I see the same errors as when compiling test.static when I do "make fftb" for the FFTB source code. Does anybody know how to get around these issues?<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Some context:<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">* For compiling ACE I copied itsdb_libraries.tgz as described here: <a href="http://moin.delph-in.net/AceInstall#Missing_itsdb.h">http://moin.delph-in.net/AceInstall#Missing_itsdb.h</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">* I'm running Pop!_OS 20.04 (similar to Ubuntu), with glibc version 2.31</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 19, 2019 at 10:38 PM Woodley Packard <<a href="mailto:sweaglesw@sweaglesw.org">sweaglesw@sweaglesw.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It looks like you are trying to compile the "liba" dependency. MacOS does shared libraries quite differently from Linux. it will probably be easiest to do it as a static library; try "make liba.a"?<br>
<br>
-Woodley<br>
<br>
<br>
> On Jul 19, 2019, at 6:02 AM, Alexandre Rademaker <<a href="mailto:arademaker@gmail.com" target="_blank">arademaker@gmail.com</a>> wrote:<br>
> <br>
> <br>
> Hi Woodley,<br>
> <br>
> Once I follow the proper order for compile the dependencies (liba, libace, libtsdb, fftb), I got everything to work at Linux. But no success o Mac OS yet!! :-( <br>
> <br>
> Any direction?<br>
> <br>
> I found that gcc-9 is the gcc installed from brew<br>
> <br>
> $ gcc-9 --version<br>
> gcc-9 (Homebrew GCC 9.1.0) 9.1.0<br>
> Copyright (C) 2019 Free Software Foundation, Inc.<br>
> This is free software; see the source for copying conditions. There is NO<br>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
> <br>
> <br>
> These where my changes in the Makefile but I could not compile. <br>
> <br>
> $ svn diff Makefile<br>
> Index: Makefile<br>
> ===================================================================<br>
> --- Makefile (revision 40)<br>
> +++ Makefile (working copy)<br>
> @@ -1,6 +1,6 @@<br>
> -HDRS=net.h timer.h http.h web.h sql.h server.h aisle-rpc.h asta-rpc.h background.h daemon.h aside-rpc.h escape.h<br>
> -OBJS=net.o timer.o http.o web.o sql.o server.o aisle-rpc.o asta-rpc.o background.o daemon.o aside-rpc.o escape.o<br>
> -CC=gcc<br>
> +HDRS=net.h timer.h http.h web.h server.h aisle-rpc.h asta-rpc.h background.h daemon.h aside-rpc.h escape.h<br>
> +OBJS=net.o timer.o http.o web.o server.o aisle-rpc.o asta-rpc.o background.o daemon.o aside-rpc.o escape.o<br>
> +CC=gcc-9<br>
> CFLAGS=-g -O -shared -fPIC -pthread<br>
> #CFLAGS=-g -pg -O -shared -fPIC -pthread<br>
> <br>
> @@ -16,13 +16,13 @@<br>
> cp liba.h /usr/local/include/<br>
> <br>
> tests: ${OBJS} liba.h<br>
> - gcc -g -isystem . test.c ${OBJS} -lpq -lpthread -o test<br>
> + ${CC} -g -isystem . test.c ${OBJS} -lpthread -o test<br>
> <br>
> shared-tests:<br>
> - gcc -g test.c -la -o test<br>
> + ${CC} -g test.c -la -o test<br>
> <br>
> liba.so: ${OBJS} liba.h Makefile<br>
> - ld -shared ${OBJS} -o liba.so -lpq -lpthread<br>
> + ld ${OBJS} -o liba.so -lpthread<br>
> <br>
> <br>
> The error is:<br>
> <br>
> $ make<br>
> ld net.o timer.o http.o web.o server.o aisle-rpc.o asta-rpc.o background.o daemon.o aside-rpc.o escape.o -o liba.so -lpthread<br>
> ld: warning: No version-min specified on command line<br>
> Undefined symbols for architecture x86_64:<br>
> "_main", referenced from:<br>
> implicit entry/start for main executable<br>
> ld: symbol(s) not found for inferred architecture x86_64<br>
> make: *** [liba.so] Error 1<br>
> <br>
> <br>
> <br>
> Best,<br>
> <br>
> --<br>
> Alexandre Rademaker<br>
> <a href="http://arademaker.github.io" rel="noreferrer" target="_blank">http://arademaker.github.io</a><br>
> <br>
> <br>
> <br>
<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">-Michael Wayne Goodman</div>