comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: compiling external programs 64 bit OS X
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: compiling external programs 64 bit OS X [message #63188] Fri, 31 October 2008 14:11
karo03de is currently offline  karo03de
Messages: 21
Registered: March 2007
Junior Member
Tscha, I have used the make_dll routine on my macpro, so ...

Am Fri, 31 Oct 2008 17:48:20 +0100 schrieb richardjcool@gmail.com
<richardjcool@gmail.com>:

> I have compiled it on 64bit LINUX machines, so I don't think that's
> the case. I will do some digging to see if I can find any obvious
> problems.



--
Erstellt mit Operas revolutionᅵrem E-Mail-Modul: http://www.opera.com/m2/
Re: compiling external programs 64 bit OS X [message #63195 is a reply to message #63188] Fri, 31 October 2008 09:48 Go to previous message
richardjcool@gmail.co is currently offline  richardjcool@gmail.co
Messages: 2
Registered: October 2008
Junior Member
I have compiled it on 64bit LINUX machines, so I don't think that's
the case. I will do some digging to see if I can find any obvious
problems.
Re: compiling external programs 64 bit OS X [message #63214 is a reply to message #63195] Fri, 31 October 2008 02:43 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
richardjcool@gmail.com wrote:

> I have done some searching and didn't see anything obvious, so please
> forgive if I missed something previously posted. I recently upgraded
> to idl 7.0.4 with Leopard on my mac and I'd like to take advantage of
> the 64 bit capabilites. The problem I am having is that any compiled
> external programs that I call using CALL_EXTERNAL crash with a bus
> error or seg fault. Specifically, I am compiling the IDLUTILS
> package software using the following cc and gcc flags:
>
> cc -c -arch x86_64 -m64 -O2 -DCHECK_LEAKS
> gcc -arch x86_64 -m64 -dynamiclib -undefined dynamic_lookup -
> single_module
>
> If I drop the arch x86_64 and -m64 flags to compile at 32bit and then
> using idl in 32 mode, things work, so this is what I have been using
> as a temporary workaround.
>
> I'd love any insight anyone has.

I don't know what IDLUTILS is, but are you certain that it can be compiled in
64bit mode and work correctly? The most likely explanation is that the code is
not 64bit safe, usually because it makes assumptions about the size of pointers
which are not valid in 64bit. with the typical result being bus errors and seg.
faults.

--
Nigel Wade
Re: compiling external programs 64 bit OS X [message #63221 is a reply to message #63214] Thu, 30 October 2008 15:03 Go to previous message
karo03de is currently offline  karo03de
Messages: 21
Registered: March 2007
Junior Member
No further insight but the same symptom and the same workaround!
I have sent a support request to Creaso (German IDL dist). Seemingly
ittvis is still searching for an explanation.

Karsten

Am Thu, 30 Oct 2008 18:25:56 +0100 schrieb richardjcool@gmail.com
<richardjcool@gmail.com>:

> I have done some searching and didn't see anything obvious, so please
> forgive if I missed something previously posted. I recently upgraded
> to idl 7.0.4 with Leopard on my mac and I'd like to take advantage of
> the 64 bit capabilites. The problem I am having is that any compiled
> external programs that I call using CALL_EXTERNAL crash with a bus
> error or seg fault. Specifically, I am compiling the IDLUTILS
> package software using the following cc and gcc flags:
>
> cc -c -arch x86_64 -m64 -O2 -DCHECK_LEAKS
> gcc -arch x86_64 -m64 -dynamiclib -undefined dynamic_lookup -
> single_module
>
> If I drop the arch x86_64 and -m64 flags to compile at 32bit and then
> using idl in 32 mode, things work, so this is what I have been using
> as a temporary workaround.
>
> I'd love any insight anyone has.



--
Erstellt mit Operas revolutionᅵrem E-Mail-Modul: http://www.opera.com/m2/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: error: subscript range values of the form low:high must be >= 0, < size
Next Topic: Re: UNIX Resize Problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:11:26 PDT 2025

Total time taken to generate the page: 0.00752 seconds