#11359: ECL does not fully recover from relocation
--------------------------------------+-------------------------------------
Reporter: nbruin | Owner: GeorgSWeber
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-5.10
Component: packages: standard | Resolution:
Keywords: ecl relocation | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
--------------------------------------+-------------------------------------
Comment (by nbruin):
I think the c-flags are still a problem. Try this
{{{
sage -ecl
> (defun f (x y) (+ x y))
> (compile 'f) ;; make sure the compiler package is loaded and initialized
> c::*cc-flags*
" -I/usr/local/sage/5.9b4/local/include
-I/usr/local/sage/5.9b4/local/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-g -O2 -fPIC -Dlinux"
> c::*ld-flags*
" -L/usr/local/sage/5.9b4/local/lib -Wl,--
rpath,/usr/local/sage/5.9b4/local/lib -L/usr/local/sage/5.9b4/local/lib
-lecl -lgmp -lgc -ldl -lm "
}}}
I didn't check, but I assume these paths are still hardcoded and hence not
adjusted by relocation. We're putting the "-I" and I think also the "-L"
directives into those paths upon ecl config-and-build time. They are just
not the right spot to put those. We'd be better off letting the
environment be so that these things are found automatically, e.g. via
setting the appropriate link paths (already done) and include search paths
(for instance via `C_INCLUDE_PATH`).
Failing that, we need to patch ECL so that these paths get set relative to
`$SAGE_ROOT`, evaluated at ecl invokation time rather than during ecl
package build.
As explained above, we can now also avoid patching sage and instead
configure sage to include our own customized ecl boot routine to set up
the environment with the appropriate path information during ecl
invokation.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11359#comment:18>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.