Re: compile root

From: Alfio <alfio.rizzo_at_vub.ac.be>
Date: Mon, 09 Jul 2007 19:53:48 +0200


Bussmann ha scritto:
> Dear Alfio,
>
> if you want to have various ROOT versions compiled with different GNU
> compiler versions (or an Intel version or whatever) and be able to switch
> between them (selecting the correct compiler/ROOT combination), I suggest
> to have a look at the Sourceforge "modules" package which allows to create
> separate environment settings on one Linux machine and an easy switching
> mechanism.
> There are some nice examples of how to create the appropriate
> module files (which are very simple) included in the package.
> Basically, what these files do is nothing else but set the appropriate
> shell variables (CC, CXX, etc.) which can then be used by configure (you
> do not have to add them as parameters!).
>
> You'll find the package here:
>
> http://modules.sourceforge.net/
>
> Hope that helps,
> Michael
>
>
>> Alas, no idea.
>>
>> -- Fons
>>
>>
>> Alfio wrote:
>>
>>> Fons Rademakers ha scritto:
>>>
>>>> Personally I've some scripts that create links in my ~/bin to the gcc I
>>>> want to use. However, that has consequences for everything I compile at
>>>> the moment. You can also create $ROOTSYS/MyConfig.mk in which you change
>>>> CXX, CC and LD. MyConfig.mk is included by the main Makefile.
>>>>
>>>> -- Fons
>>>>
>>>>
>>>>
>>>>
>>>> Alfio wrote:
>>>>
>>>>> Dear ROOTers
>>>>> maybe this is and old topic, but I didn't find any F.A.Q. about this...
>>>>> My question is about how compile ROOT with different gcc versions.
>>>>> For istance I have in my laptop gcc 3.4 and 4.1.2,
>>>>> is it possible to type ./configure CXX=/usr/bin/gcc3.4 or something like
>>>>> that?
>>>>> Thanks
>>>>>
>>>>> A
>>>>>
>>>>>
>>> Creating a MyConfig.mk it works, but at the end it doesn't compile.. :
>>> ................................
>>> `.L3441' referenced in section `.rodata' of cintex/src/CINTUtils.o: defined
>>> in discarded section
>>> `.gnu.linkonce.t._ZN4ROOT6Cintex9ConverterIeE6toCintEP8G__valuePv' of
>>> cintex/src/CINTUtils.o
>>> collect2: ld returned 1 exit status
>>> make: *** [lib/libCintex.so] Error 1
>>>
>>> This is the output of "make showbuild":
>>>
>>> ROOTSYS = /home/local/root3.4.bin
>>> PLATFORM = linux
>>> OPT = -O
>>>
>>> CXX = /usr/bin/g++-3.4
>>> CC = /usr/bin/gcc-3.4
>>> F77 = g77
>>> CPP = /usr/bin/gcc-3.4 -E
>>> LD = /usr/bin/g++-3.4
>>> F77LD = /usr/bin/g++-3.4
>>> GCC_MAJOR = 3
>>> GCC_MINOR = 4
>>>
>>> ......................................................................
>>> Some hint?
>>>
>>> Thanks
>>>
>>> A
>>>
>>>
>>

I will try it!
Thanks

A

-- 
-------------------------------------------------------
			Alfio RIZZO
Vrije Universiteit Brussel
Faculteit Wetenschappen, Dienst ELEM
Gebouw G, Bureau 0G-111
Pleinlaan, 2 B-1050 Brussel BELGIE
Tel. +32(0)26293220		Fax +32(0)26293816
alfio.rizzo_at_vub.ac.be		w3.iihe.ac.be/~rizzo
-------------------------------------------------------
Received on Mon Jul 09 2007 - 19:52:02 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 09 2007 - 23:50:02 CEST