On Fri, May 14, 2021 at 11:21 AM Jan Groenewald <j...@aims.ac.za> wrote: > > Hi > > On Fri, 14 May 2021 at 11:26, François Bissey <frp.bis...@gmail.com> wrote: >> >> It looks like maxima.fas has not been built. Last time I saw that happen >> in sage-on-gentoo was because the patch to build it was missing. >> Not sure how it could happen on your setup, the log needs further inspection. >> >> > On 14/05/2021, at 21:18, John Cremona <john.crem...@gmail.com> wrote: >> > >> > I have been installing sage-9.3 from the tarball on a few ubuntu >> > machines, just doing ./configure and then make. On one machine >> > running ubuntu 20.04.02 LTS maxima fails to build. I have attached >> > the log files. >> > >> > This is a machine on which I tried a few weeks ago to help the build >> > process by installing as many of the dependencies as possible. My >> > experience so far has been that this has caused so many things to go >> > wrong that I prefer the old way -- build everything -- since that just >> > takes more computer time, while the new way (so far) uses a lot more >> > of my time. > > > config.log: > ## Checking whether SageMath should install SPKG libffi... ## > ## ------------------------------------------------------- ## > configure:24887: checking for LIBFFI > configure:24894: $PKG_CONFIG --exists --print-errors "libffi" > configure:24897: $? = 0 > configure:24911: $PKG_CONFIG --exists --print-errors "libffi" > configure:24914: $? = 0 > configure:25100: result: yes > configure:25108: will use system package and not install SPKG libffi > > maxima log: > Condition of type: SIMPLE-ERROR > Error code 1 when executing > (EXT:RUN-PROGRAM "gcc" ("-o" "binary-ecl/maxima-package.fas" > "-L/usr/local/sage/sage-9.3/local/lib/" "/tmp/eclinit8GQbdq.o" > "binary-ecl/maxima-package.o" > "-Wl,--rpath,/usr/local/sage/sage-9.3/local/lib/" "-shared" > "-Wl,-rpath-link,/usr/local/sage/sage-9.3/local/lib" > "-L/usr/local/sage/sage-9.3/local/lib" > "-Wl,-rpath,/usr/local/sage/sage-9.3/local/lib" > "-Wl,-rpath-link,/usr/local/sage/sage-9.3/local/lib" > "-L/usr/local/sage/sage-9.3/local/lib" > "-Wl,-rpath,/usr/local/sage/sage-9.3/local/lib" "-lecl" "-lgmp" "-lgc" ...)): > /usr/bin/ld: cannot find -lffi > collect2: error: ld returned 1 exit status > Available restarts: > > 1. (CONTINUE) Continues anyway. > 2. (RESTART-TOPLEVEL) Go back to Top-Level REPL. > > Broken at DO-COMPILE-ECL. > File: > #P"/usr/local/sage/sage-9.3/local/var/tmp/sage/build/maxima-5.44.0/src/src/maxima.system" > (Position #1601) > > > > Do you perhaps need to sudo apt install libffi-dev?
One way I can explain this is a broken system-wide install of libffi-dev I don't know how this can be achieved, other than having multiple system-wide copies of libffi, or stuff manually removed. The other possibility is that the linker is told not to look for system-wide libffi - can this be achieved with -L and -Wl,-rpath ? On the other hand, it's a bug in maxima, which does not try to check for presense of libffi, just assumes it's there. > It is listed as a dependency here: > https://doc.sagemath.org/html/en/installation/source.html > > (also see https://bugzilla.redhat.com/show_bug.cgi?id=837102 from 2012) > > Regards, > Jan > > -- > .~. > /V\ Jan Groenewald > /( )\ www.aims.ac.za > ^^-^^ > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/CAAg%3Dp_33NMuyuZ_zQn8%2B3oQjDhR%3DCAMAcausjD7TYoi_x9EoXQ%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq2gFHukombrSGYFc61uLPXyyDM-SoSYdUrx-KuGA%2BeD7w%40mail.gmail.com.