Re: Problems with TGeant3 on Mac OS X 64 bit

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Mon, 04 Feb 2008 12:54:00 +0100


This has been fixed in the ROOT svn trunk (where the geant3 makefiles live). Can you please try the latest trunk.

Cheers, Fons.

Florian Uhlig wrote:
> 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
>

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640
Received on Mon Feb 04 2008 - 12:54:10 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 12 2008 - 17:25:01 CET