all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ccall mechanism in Julia
@ 2015-03-06 15:48 Ricardo Wurmus
  2015-03-06 22:25 ` Andreas Enge
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2015-03-06 15:48 UTC (permalink / raw)
  To: Guix-devel

Hi Guix,

I'm currently packaging up Julia, a programming language for technical
computing.  When I configure the build process such that system
libraries are used instead of the bundled copies I run into a problem.

Julia's bindings to these libraries use the ccall mechanism; ccall
builds a map from library names to paths by parsing the output of
"ldconfig -p" at runtime.  I worked around this problem by patching the
sources to include a static map of library names to store paths.  Then I
noticed, however, that my patch effectively cripples the FFI.  It is no
longer possible to call a function that is exported by a shared library
unless it happens to be in the static map that is created at build time.

Before I hack a little more on the sources to implement a solution that
also considers libraries that happen to lie around in
~/.guix-profile/lib I would like to ask for comments.

Would it be a very bad idea if I wrote a simple replacement for
"ldconfig -p" that returned all libraries in the user's profile?  I
don't think this would be as bad as breaking the FFI and hard-coding
build-time paths to inputs.

What do you think?

~~ Ricardo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-09  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 15:48 ccall mechanism in Julia Ricardo Wurmus
2015-03-06 22:25 ` Andreas Enge
2015-03-08 14:35   ` Ricardo Wurmus
2015-03-09  9:09     ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.