-Wno-long-double problem with gcc 4.1.0

I recently upgraded xcode to be able to compile something unrelated to root, and in doing so, I find myself unable to compile my own root classes (This particularly class inherits from TH1F).

I am using the following:
gcc version 4.1.0 20051124 (prerelease)
Darwin Kernel Version 8.7.0 PPC
Root Version 5.10/00 (1 March 2006)
CINT/ROOT C/C++ Interpreter version 5.16.8, February 9, 2006

When trying to compile my library, I get the following:

$ make -f Makefile.TMH1F
Generating object file TMH1F.o…
g++ -O -pipe -Wall -W -Woverloaded-virtual -D_REENTRANT -Wno-long-double -I/usr/local/include/root -I/usr/local/include -I…/include -c TMH1F.cxx
cc1plus: error: unrecognized command line option "-Wno-long-double"
make: *** [TMH1F.o] Error 1

I removed the Wno-long-double from my makefiles:

$ grep Wno-long-double Makefile.TMH1F

And I also removed it from Makefile.arch :
ifeq ($(ARCH),macosx)

MacOS X with cc

CXX = c++
CXXFLAGS = -O -pipe -Wall -W -Woverloaded-virtual
LD = c++
LDFLAGS = -O -Xlinker -bind_at_load -flat_namespace

The SOFLAGS will be used to create the .dylib; the .so will

be created separately

DllSuf = dylib
SOFLAGS = -dynamiclib -flat_namespace -undefined suppress

Basically, as far as I can tell, -Wno-long-double does not appear in any of the makefiles that are used to comile this (and, incidentally, niether does -D_REENTRANT - but that doesn’t cause any problems).

So where does this rather annoying compile flag come from, and how do I change it?

Thanks in advance (and please do tell me if I have posted to the wrong forum).


you’ll find it back in $ROOTSYS/bin/root-config, at three places. Remove them all to make sure that they don’t show up in your CXXFLAGS. I’ll ask our MacOS Xpert to fix this. Thanks for the report.

Cheers, Axel.