Re: Compiling ROOT using gcc 4.4.1

From: Peter Elmer <Peter.Elmer_at_cern.ch>
Date: Wed, 26 Aug 2009 18:36:52 +0200


  Hi Ivan,

On Wed, Aug 26, 2009 at 11:28:18AM -0500, Ivan Pulido wrote:
> Hi, I know there are some issues with gcc 4.1.1 that wont let ROOT compile
> by default. I think it's because of this bug:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40056
>
> However I was wondering if there's a way to get ROOT to compile with gcc
> 4.1.1 since I really need ROOT to get me starting doing some amateur data
> analysis. Sorry if this was treated in another thread. I really appreciate
> your attention and help. Greetings.

  [I assume you meant gcc 4.4.1 as in your Subject rather than 4.1.1 as in your mail body...]

  Fons put in a fix for this. Here is the patch you need to apply relative to ROOT 5.22/00, for example:

lxbuild064> cat CMSDIST/root-5.22-00a-gcc44.patch diff -Naur orig.root/io/io/Module.mk root/io/io/Module.mk --- orig.root/io/io/Module.mk 2009-02-12 19:04:06.000000000 +0100 +++ root/io/io/Module.mk 2009-05-07 02:07:08.000000000 +0200 @@ -64,3 +64,10 @@

                @rm -f $(IODEP) $(IODS) $(IODH) $(IOLIB) $(IOMAP)
 
 distclean::     distclean-$(MODNAME)
+
+##### extra rules ######
+ifeq ($(GCC_VERS_FULL),gcc-4.4.1)
+ifneq ($(filter -O%,$(OPT)),)
+   $(IODIRS)/TStreamerInfoReadBuffer.o: OPT = -O
+endif
+endif

There was some discussion recently as to whether it is truly a bug or a feature, but that patch should be sufficient for now for you to make progress. (I just used it today to build ROOT with gcc4.4.1...)

                                   Pete

-------------------------------------------------------------------------
Peter Elmer     E-mail: Peter.Elmer_at_cern.ch      Phone: +41 (22) 767-4644
Address: CERN Division PPE, Bat. 32 2C-14, CH-1211 Geneva 23, Switzerland
Received on Wed Aug 26 2009 - 18:41:28 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 26 2009 - 23:50:02 CEST