Re: recompiling ROOT with adding GSL

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Mon, 26 Sep 2011 21:41:49 +0000


Hi Tommaso,

 There are some problem running that example using CINT. It works if you compile with ACLIC (adding a + at the end)

root [0] .x Interpolation.C+

However, I realized that the macro has other errors. I have updated the example in

http://root.cern.ch/drupal/content/function-interpolation

Thank you for reporting this problem

  Lorenzo

On Sep 26, 2011, at 5:21 PM, Tommaso Chiarusi wrote:

> Hi all,
>
> ----
> System I use:
>
> Macbook pro 64bit processor, with Mac OS X Snowleopard 1.6.8
> Root compiled from source (v. 5.30, i.e. the latest)
> gcc 4.2.1
> GSL version 1.15 (compiled and installed in /usr/local both as static and as shared )
> ----
>
> I'd like to use the MathMore classes, such as Interpolator...
> So, before to rebuild ROOT, I run
>
> ./configure --with-gsl-incdir=/usr/local/include --with-gsl-libdir=/usr/local/lib
>
> was it all what I need?
>
> I tried to check the proper ROOT configuration by running the example in
>
> http://root.cern.ch/drupal/content/function-interpolation
>
> but I get the following error:
>
>
> root [0] .x Interpolation.C
> Warning: template ParamFunction duplicate definition /Users/chiarusi/system_customization/Software/Root/root/lib/libMathMore.so:-1:
>
> *** Break *** segmentation violation
>
>
>
> ===========================================================
> There was a crash.
> This is the entire stack trace of all threads:
> ===========================================================
>
> Thread 1 (process 48139):
> #0 0x00007fff834c3b28 in wait4 ()
> #1 0x00007fff834d80e6 in system ()
> #2 0x00000001000e86bc in TUnixSystem::StackTrace ()
> #3 0x00000001000e5861 in TUnixSystem::DispatchSignals ()
> #4 <signal handler called>
> #5 0x00007fff834cb5ac in fgetc ()
> #6 0x000000010092bb07 in G__fgetc ()
> #7 0x000000010092c0b5 in G__fignorestream ()
> #8 0x0000000100a20c0a in G__createtemplateclass ()
> #9 0x0000000100981cd2 in G__tagtable_setup ()
> #10 0x00000001025a33e1 in G__cpp_setup_tagtableG__MathMore ()
> #11 0x00000001025d36ff in G__cpp_setupG__MathMore ()
> #12 0x000000010096c0a0 in G__call_setup_funcs ()
> #13 0x0000000102600ca7 in __static_initialization_and_destruction_0 ()
> #14 0x00007fff5fc0d510 in __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE ()
> #15 0x00007fff5fc0bcfc in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()
> #16 0x00007fff5fc0bdb6 in __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextE ()
> #17 0x00007fff5fc08fcf in __dyld_dlopen ()
> #18 0x00007fff8344be40 in dlopen ()
> #19 0x0000000100a08b98 in G__dlopen ()
> #20 0x0000000100a08e1b in G__shl_load ()
> #21 0x0000000100973601 in G__loadfile ()
> #22 0x0000000100a06e92 in G__loadsystemfile ()
> #23 0x00000001000a9ea8 in TCint::Load ()
> #24 0x000000010006ae3e in TSystem::Load ()
> #25 0x000000010004ada6 in TROOT::LoadClass ()
> #26 0x00000001000a6aac in TCint::AutoLoadCallback ()
> #27 0x00000001000a9cfa in TCint_AutoLoadCallback ()
> #28 0x0000000100a0f0a7 in G__class_autoloading ()
> #29 0x0000000100a0fc4f in G__defined_tagname ()
> #30 0x0000000100a1021f in G__search_tagname ()
> #31 0x0000000100a134ab in G__define_struct ()
> #32 0x00000001009b1f35 in G__exec_statement ()
> #33 0x0000000100a12ea8 in G__define_struct ()
> #34 0x00000001009abf39 in G__exec_statement ()
> #35 0x0000000100a12ea8 in G__define_struct ()
> #36 0x00000001009abf39 in G__exec_statement ()
> #37 0x0000000100973501 in G__loadfile ()
> #38 0x000000010097487e in G__include_file ()
> #39 0x00000001009b309e in G__exec_statement ()
> #40 0x0000000100973501 in G__loadfile ()
> #41 0x00000001009bd17a in G__process_cmd ()
> #42 0x00000001000a715e in TCint::ProcessLine ()
> #43 0x00000001000a7cf3 in TCint::ProcessLineSynch ()
> #44 0x000000010000bdfa in TApplication::ExecuteFile ()
> #45 0x00000001000094b1 in TApplication::ProcessLine ()
> #46 0x000000010129c60c in TRint::HandleTermInput ()
> #47 0x000000010129ae77 in TTermInputHandler::Notify ()
> #48 0x000000010129d0ed in TTermInputHandler::ReadNotify ()
> #49 0x00000001000e5522 in TUnixSystem::CheckDescriptors ()
> #50 0x00000001000e5a36 in TUnixSystem::DispatchOneEvent ()
> #51 0x0000000100062f5d in TSystem::InnerLoop ()
> #52 0x00000001000654c3 in TSystem::Run ()
> #53 0x0000000100007b17 in TApplication::Run ()
> #54 0x000000010129ccdb in TRint::Run ()
> #55 0x0000000100001960 in main ()
> ===========================================================
>
>
> The lines below might hint at the cause of the crash.
> If they do not help you then please submit a bug report at
> http://root.cern.ch/bugs. Please post the ENTIRE stack trace
> from above as an attachment in addition to anything else
> that might help us fixing this issue.
> ===========================================================
> #5 0x00007fff834cb5ac in fgetc ()
> ===========================================================
>
>
> It feels I've been missing something...
> :)
> Thanks for your help!
> Tom
>
> --
>
> Tommaso Chiarusi, Ph.D.
>
> INFN - Sezione di Bologna
> Viale Berti-Pichat 6/2,
> 40127 Bologna Italy
> -
> room: D045
> tel: +39.051.20.95234
> fax: +39.051.20.95269
> http:www.bo.infn.it/~chiarust
>
Received on Mon Sep 26 2011 - 23:41:58 CEST

This archive was generated by hypermail 2.2.0 : Tue Sep 27 2011 - 11:50:01 CEST