Problems with TGeant3 on Mac OS X 64 bit

From: Florian Uhlig <f.uhlig_at_gsi.de>
Date: Mon, 4 Feb 2008 12:44:23 +0100


Hello

In my last mail i forgot to mention that i am using TGeant3 version 1.9 and Root
version 5.18.00.

I found a problem with the TGeant3 libraries on Mac OS X 10.5 (64bit) on an intel
machine (MacBook Pro). I don't know if the error occurs also on 64bit PPC.
Compilation works fine but at run time when the first time accessing the memory of a
common block the program crashes with a wrong memory access ( signal EXC_BAD_ACCESS ). The error is in the Makefile.macosx64 at $ROOTSYS/etc/vmc/. Here the system is defined as 32bit linux system (CERNLIB_LINUX), not as 64bit linux system
(CERNLIB_LXIA64). The results are 32bit pointer to the common block memory.
This results in a crash when the first time accessing the memory from the C++ code.

To remove the problem on has to exchange

CLIBDEFS_TMP = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ by

CLIBDEFS_TMP = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ Also the definition of SHLIB is not necessary for gfortran. It only results in some warnings.

SHLIB := $(shell gfortran -print-file-name=libgfortran.dylib)
SHLIB += $(shell gfortran -print-file-name=libgfortranbegin.a)
SHLIB += -ldl


Hope this error message helps to solve the problem.

Ciao

Florian Uhlig

--
Dr. Florian Uhlig
IT Department
GSI
f.uhlig_at_gsi.de
Received on Mon Feb 04 2008 - 12:44:37 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 04 2008 - 17:25:02 CET