I'd like to follow up on this - the real issue is that when building iml the libraries are hardcoded to reside at /lib, but in multilib systems this may not be the case. Specifically, in Slackware we have lib for 32-bit and lib64 for 64-bit. I fixed this by changing this line in build/pkgs/iml/ spkg-install.in:
SAGE_GMP_LIB="`echo "$SAGE_GMP_INCLUDE" | sed 's|/include|/lib|'`" to this: SAGE_GMP_LIB="`echo "$SAGE_GMP_INCLUDE" | sed 's|/include|/lib{$LIBDIRSUFFIX}|'`" where LIBDIRSUFFIX is specified by our build to be null for 32-bit or 64 for 64-bit. I've attached our patch here for reference, but I would appreciate a fix in the Sage build directly. Thanks. On Thu, Mar 19, 2020 at 11:37 PM Matthias Koeppe <matthiaskoe...@gmail.com> wrote: > Thanks. I have recreated a similar configuration (slackware-14.2-standard > - https://trac.sagemath.org/ticket/29354), but cannot seem to reproduce > the error. iml installs correctly for me. > > Looking at your log files, these lines look rather suspicious: > > /usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: > skipping incompatible ///usr/lib/libm.so when searching for -lm > /usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: > skipping incompatible ///usr/lib/libm.a when searching for -lm > /usr/lib/libgmp.so: error adding symbols: File in wrong format > > > Did you install libraries for cross compilation to other architecture > (including 32bit) by any chance? > > It would be worth checking when reinstalling the slackware "gmp" package > fixes this problem. > > > > On Wednesday, March 18, 2020 at 4:16:59 PM UTC-4, Christopher Duston wrote: >> >> I ran those two commands, and piped the output to a file, attached here. >> >> Thanks. >> >> On Tue, Mar 17, 2020 at 5:53 PM Matthias Koeppe <matthia...@gmail.com> >> wrote: >> >>> On Tuesday, March 17, 2020 at 3:56:49 PM UTC-4, Christopher Duston wrote: >>>> >>>> I've got an error when compiling SageMath 9.0 from source on a >>>> Slackware 14.2 machine. >>>> >>> >>> I have set up a test environment for Slackware (tox -e >>> docker-slackware-14.2) at https://trac.sagemath.org/ticket/29354 >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "sage-devel" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/sage-devel/WshDn3e_l3k/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> sage-...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/sage-devel/53f714b5-be91-4a06-9a4d-640363820e1d%40googlegroups.com >>> <https://groups.google.com/d/msgid/sage-devel/53f714b5-be91-4a06-9a4d-640363820e1d%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "sage-devel" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sage-devel/WshDn3e_l3k/unsubscribe. > To unsubscribe from this group and all its topics, 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/e43d858d-dab5-49a5-ad14-8d507e7484ca%40googlegroups.com > <https://groups.google.com/d/msgid/sage-devel/e43d858d-dab5-49a5-ad14-8d507e7484ca%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPDCXq0Fsx1ofnab9f4kqXLit4NJC7ST95zQnOOfqbmqxy9OuA%40mail.gmail.com.
--- build/pkgs/iml/spkg-install.in 2020-05-20 18:33:41.000000000 -0400 +++ build/pkgs/iml/spkg-install-fixed.in 2020-06-04 09:36:51.650934268 -0400 @@ -10,7 +10,7 @@ # When using GMP from a standard system location it shouldn't really # matter what we put here, but iml's configure script requires we # provide *something*, and this should be reasonable in most cases -SAGE_GMP_LIB="`echo "$SAGE_GMP_INCLUDE" | sed 's|/include|/lib|'`" +SAGE_GMP_LIB="`echo "$SAGE_GMP_INCLUDE" | sed 's|/include|/lib{$LIBDIRSUFFIX}|'`" sdh_configure --enable-shared \ --with-default="$SAGE_LOCAL" \