Rob McMahon wrote:
Solaris 10 SPARC, with libffi and libiconv installed on the system
already for other purposes. Having worked around the iconv issue
(special case for solaris in iconv*/src/src/Makefile.in, make now dies
compiling ecl with:
if [ -f CROSS-COMPILER ]; then \
touch ecl_min; \
else \
gcc -L($HOME)/sage-5.9/local/lib
-Wl,-R,($HOME)/sage-5.9/local/lib -L($HOME)/sage-5.9/local/lib -o
ecl_min cinit.o c/all_symbols.o -L./ libeclmin.a -lgmp -lgc -lffi -ldl
-lm -lsocket -lnsl -lintl;\
fi
sed -e 's,@ecldir\\@,($HOME)/sage-5.9/local/lib/ecl-12.12.1/,g' \
-e 's,@libdir\\@,($HOME)/sage-5.9/local/lib/,g' <
compile.pre > compile.lsp
echo "#" `uname -a` > build-stamp
head -8 config.log | tail -6 >> build-stamp
if [ -f CROSS-COMPILER ]; then \
./CROSS-COMPILER compile; \
else \
ECLDIR=`pwd`/ ./ecl_min compile; \
fi
ld.so.1: ecl_min: fatal: libffi.so.4: open failed: No such file or
directory
/bin/bash: line 4: 13128 Killed ECLDIR=`pwd`/ ./ecl_min compile
Although it is finding the installed libffi at compile time, it is not
finding it at run time ... the -L flags can't be matching the -R flags.
I haven't had coffee yet, but if the dynamic linker picks up the
system-wide(?) libffi from some "default" directory during linking, why
doesn't the runtime linker? (Except for '.', there are no directories
outside the Sage tree explicitly specified with '-L' in the link
command, so probably something is wrong with your [environment variable]
setup. You *may* be able to add further '-Wl,-R,...' to LDFLAGS to work
around this though, without changing any *PATH vars.)
Putting symlinks to in .../sage-5.9/local/lib lets it find the
libraries, but then I need to do the same for libintl:
ld.so.1: ecl_min: fatal: libintl.so.8: open failed: No such file or
directory
/bin/bash: line 4: 23381 Killed ECLDIR=`pwd`/ ./ecl_min compile
make[4]: *** [bin/ecl] Error 137
After putting the links in for this library too, the build is getting
*much* further. Next stop lapack.
(I hope these reports are useful ...
Surely they are. (And even more if you'd put Solaris [SPARC] into the
subject... ;-) )
I know this machine is not standard
out of the box. This could be a call for a binary release. If you're
building it anyway to check ...)
Unfortunately we don't have Solaris machines suitable (I think) for
building binary distributions of Sage; cf. some recent thread here on
sage-devel ("Solaris binaries?", of April 20th).
-leif
P.S.: Another way to get around the iconv issue is to simply 'touch
spkg/installed/iconv-<version>' prior to building Sage (in this case
spkg/installed/iconv-1.13.1.p4, i.e., without the '.spkg'), such that
Sage thinks it was already installed. (This /should/^TM work, probably
modulo issues similar to your libffi/library path problems above.)
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail
--
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 post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.