Re: amd64 and libffi

2008-02-29 Thread Manuel Guesdon
On Mon, 25 Feb 2008 15:12:34 -0500
Hubert Chathi [EMAIL PROTECTED] wrote:
HC | ffcall doesn't seem to play well with the NX bit,
HC | apparently.)

I've got a problem few monthes ago. here is my mail on this:

For the records, after 3 days of investigations, I found the problem:
One should do a su before ffcall 1.10 configure 

In config.h, you should have 

/* CL_MPROTECT */
/* Define if you have the mprotect() function. */
#define HAVE_MPROTECT 1
/* Define if you have a working mprotect() function. */
#define HAVE_WORKING_MPROTECT 


/* CL_CODEEXEC */
/* Define if code in malloc'ed memory is executable. */
/* #undef CODE_EXECUTABLE */

for Intel(R) Xeon(R) CPU5120  
with flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm (nx is the
point, afaik).



Manuel 


___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: amd64 and libffi

2008-02-29 Thread Hubert Chathi
On Mon, 25 Feb 2008 15:12:34 -0500, Hubert Chathi [EMAIL PROTECTED] said:

[...]

 (On the other hand, GNUstep programs apparently don't work with ffcall
 on Opterons, since ffcall doesn't seem to play well with the NX bit,
 apparently.)

Apparently, I may be wrong about this.  The problems with Opterons are
probably something completely different, and ffcall apparently does work
on them (at least as much as GNUstep needs).

I'm still interested in peoples' experiences with libffi on Opterons,
though.

-- 
Hubert Chathi - Email/Jabber: [EMAIL PROTECTED] - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA   (Key available at wwwkeys.pgp.net)
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA



___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: amd64 and libffi

2008-02-27 Thread Gregory John Casamento
I'm seeing a similar failure on my x86_64 (essentially amd64) machine.   Could 
either of you send a backtrace?

Thanks, GJC
--
Gregory Casamento -- Principal Consultant - OLC, Inc 
# GNUstep Chief Maintainer

- Original Message 
From: Pete French [EMAIL PROTECTED]
To: gnustep-dev@gnu.org; [EMAIL PROTECTED]
Sent: Tuesday, February 26, 2008 11:29:25 AM
Subject: Re: amd64 and libffi

 I got a report from a Debian user that GNUstep programs segfault on the
 amd64 architecture when gnustep-base is compiled with libffi.  (On the
 other hand, GNUstep programs apparently don't work with ffcall on
 Opterons, since ffcall doesn't seem to play well with the NX bit,
 apparently.)

 Unfortunately, I don't have an amd64 to try things out for myself.  Does
 anyone have any experience with libffi under amd64?

I've just switched (yesterday) to an amd64 based desktop at work - currently
I can't get GNUstep running att all :-( Am using ffcall here, I havent
tried with libffi yet.

Does anyone have GNustep running under amd64 ?




___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev





___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: amd64 and libffi

2008-02-27 Thread Gregory John Casamento
DO works just fine.
 
--
Gregory Casamento -- Principal Consultant - OLC, Inc 
# GNUstep Chief Maintainer

- Original Message 
From: Thomas Gamper [EMAIL PROTECTED]
To: gnustep-dev@gnu.org
Sent: Tuesday, February 26, 2008 12:52:27 PM
Subject: amd64 and libffi

Hi!

I am running GNUstep on amd64, for the time being I had no problems. There were 
a couple warnings during compile (pointersize differences)
of the core packages and Gorm. Probabyl that's something that has to be 
adressed in future. I don't recall which of ffi or ffcall I used,
I will give details to tomorrow, since I don't have an amd64 machine here at 
home. During the next couple of weeks I intend to start using DO eventually,
so I think I will run into trouble regarding amd64 and foreign function calls. 
How's the actual status of DO in GNUstep?

TOM

 I got a report from a Debian user that GNUstep programs segfault on the
 amd64 architecture when gnustep-base is compiled with libffi.  (On the
 other hand, GNUstep programs apparently don't work with ffcall on
 Opterons, since ffcall doesn't seem to play well with the NX bit,
 apparently.)

 Unfortunately, I don't have an amd64 to try things out for myself.  Does
 anyone have any experience with libffi under amd64?

I've just switched (yesterday) to an amd64 based desktop at work - currently
I can't get GNUstep running att all :-( Am using ffcall here, I havent
tried with libffi yet.

Does anyone have GNustep running under amd64 ?

-Inline Attachment Follows-

___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev




___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: amd64 and libffi

2008-02-26 Thread Pete French
 I got a report from a Debian user that GNUstep programs segfault on the
 amd64 architecture when gnustep-base is compiled with libffi.  (On the
 other hand, GNUstep programs apparently don't work with ffcall on
 Opterons, since ffcall doesn't seem to play well with the NX bit,
 apparently.)

 Unfortunately, I don't have an amd64 to try things out for myself.  Does
 anyone have any experience with libffi under amd64?

I've just switched (yesterday) to an amd64 based desktop at work - currently
I can't get GNUstep running att all :-( Am using ffcall here, I havent
tried with libffi yet.

Does anyone have GNustep running under amd64 ?




___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev