[Pharo-project] FFI in Fedora
Hi Folks... I'm having some troubles with FFI in Fedora x86_64. I tried to execute some OS functions. I have all the libreries needed for that, but I always have the same error. In the *stack top *into FFICallbackThunk class when I send the allocateExcecutablePage message i got this: *#'insufficient C memory' * Has anyone had this kind of error before? This is the stack trace in my terminal. PrimitiveFailed: primitive #allocateExecutablePage in FFICallbackThunk class failed FFICallbackThunk class(Object)>>primitiveFailed: FFICallbackThunk class(Object)>>primitiveFailed FFICallbackThunk class>>allocateExecutablePage FFICallbackThunk class>>unusedBlockInExecutablePage in Block: [ExecutablePages add: self allocateExecutablePage]...etc... Semaphore>>critical: in Block: [caught := true.... BlockClosure>>ensure: Semaphore>>critical: FFICallbackThunk class>>unusedBlockInExecutablePage FFICallbackThunk class>>privateFinalizingNew FFICallbackThunk class>>newCCall -- Adriel Paredes E-Mail: adriel.paredes@gmail.com Twitter: @adrielparedes Skype: adriel.paredes
Does FFI even support 64-bit binaries? On 9 May 2012 20:42, Adriel Paredes <adriel.paredes@gmail.com> wrote:
Hi Folks...
I'm having some troubles with FFI in Fedora x86_64. I tried to execute some OS functions. I have all the libreries needed for that, but I always have the same error. In the *stack top *into FFICallbackThunk class when I send the allocateExcecutablePage message i got this: *#'insufficient C memory' *
Has anyone had this kind of error before?
This is the stack trace in my terminal.
PrimitiveFailed: primitive #allocateExecutablePage in FFICallbackThunk class failed FFICallbackThunk class(Object)>>primitiveFailed: FFICallbackThunk class(Object)>>primitiveFailed FFICallbackThunk class>>allocateExecutablePage FFICallbackThunk class>>unusedBlockInExecutablePage in Block: [ExecutablePages add: self allocateExecutablePage]...etc... Semaphore>>critical: in Block: [caught := true.... BlockClosure>>ensure: Semaphore>>critical: FFICallbackThunk class>>unusedBlockInExecutablePage FFICallbackThunk class>>privateFinalizingNew FFICallbackThunk class>>newCCall
-- Adriel Paredes E-Mail: adriel.paredes@gmail.com Twitter: @adrielparedes Skype: adriel.paredes
-- Milan Mimica http://sparklet.sf.net
I have the 32 bits libraries... It works in ubuntu, but not in fedora On Wed, May 9, 2012 at 4:15 PM, Milan Mimica <milan.mimica@gmail.com> wrote:
Does FFI even support 64-bit binaries?
On 9 May 2012 20:42, Adriel Paredes <adriel.paredes@gmail.com> wrote:
Hi Folks...
I'm having some troubles with FFI in Fedora x86_64. I tried to execute some OS functions. I have all the libreries needed for that, but I always have the same error. In the *stack top *into FFICallbackThunk class when I send the allocateExcecutablePage message i got this: *#'insufficient C memory' *
Has anyone had this kind of error before?
This is the stack trace in my terminal.
PrimitiveFailed: primitive #allocateExecutablePage in FFICallbackThunk class failed FFICallbackThunk class(Object)>>primitiveFailed: FFICallbackThunk class(Object)>>primitiveFailed FFICallbackThunk class>>allocateExecutablePage FFICallbackThunk class>>unusedBlockInExecutablePage in Block: [ExecutablePages add: self allocateExecutablePage]...etc... Semaphore>>critical: in Block: [caught := true.... BlockClosure>>ensure: Semaphore>>critical: FFICallbackThunk class>>unusedBlockInExecutablePage FFICallbackThunk class>>privateFinalizingNew FFICallbackThunk class>>newCCall
-- Adriel Paredes E-Mail: adriel.paredes@gmail.com Twitter: @adrielparedes Skype: adriel.paredes
-- Milan Mimica http://sparklet.sf.net
-- Adriel Paredes E-Mail: adriel.paredes@gmail.com Twitter: @adrielparedes Skype: adriel.paredes
On 09-05-2012 16:17, Adriel Paredes wrote:
I have the 32 bits libraries... It works in ubuntu, but not in fedora This stuff of FFI has been discussed in the VM-dev list. Making FFI work in linux x86_64 is a real pain. First, CogVM as it comes with Pharo distribution or as you get from Eliot's repositories are 32bits. Then you have to have all 32bit libraries installed <and> LD_LIBRARY_PATH adjusted to point first to the /usr/lib instead of /usr/lib64. But even so, things just don't work plainly.
I am having trouble with OpenGL, Fann and some other libraries. Also, currently FFI doesn't support 64bit binaries. CdAB
On Wed, May 9, 2012 at 4:15 PM, Milan Mimica <milan.mimica@gmail.com <mailto:milan.mimica@gmail.com>> wrote:
Does FFI even support 64-bit binaries?
On 9 May 2012 20:42, Adriel Paredes <adriel.paredes@gmail.com <mailto:adriel.paredes@gmail.com>> wrote:
Hi Folks...
I'm having some troubles with FFI in Fedora x86_64. I tried to execute some OS functions. I have all the libreries needed for that, but I always have the same error. In the *stack top *into FFICallbackThunk class when I send the allocateExcecutablePage message i got this: *#'insufficient C memory' *
Has anyone had this kind of error before?
This is the stack trace in my terminal.
PrimitiveFailed: primitive #allocateExecutablePage in FFICallbackThunk class failed FFICallbackThunk class(Object)>>primitiveFailed: FFICallbackThunk class(Object)>>primitiveFailed FFICallbackThunk class>>allocateExecutablePage FFICallbackThunk class>>unusedBlockInExecutablePage in Block: [ExecutablePages add: self allocateExecutablePage]...etc... Semaphore>>critical: in Block: [caught := true.... BlockClosure>>ensure: Semaphore>>critical: FFICallbackThunk class>>unusedBlockInExecutablePage FFICallbackThunk class>>privateFinalizingNew FFICallbackThunk class>>newCCall
-- Adriel Paredes E-Mail: adriel.paredes@gmail.com <mailto:adriel.paredes@gmail.com> Twitter: @adrielparedes Skype: adriel.paredes
-- Milan Mimica http://sparklet.sf.net
-- Adriel Paredes E-Mail: adriel.paredes@gmail.com <mailto:adriel.paredes@gmail.com> Twitter: @adrielparedes Skype: adriel.paredes
participants (3)
-
Adriel Paredes -
Casimiro de Almeida Barreto -
Milan Mimica