Salvador Marti | 12 Feb 11:57 2016
Picon

FFTW not found

Hi

I have a problem while using RooFit. I have defined a pdf that it is a 
given shape convoluted with a Gaussian. For that I use RooFFTConvPdf as 
follows:

     RooFFTConvPdf model("model","truth (X) gaussian", x, z_theoshape, 
z_gauss);

Then once in root I load and compile the code successfuly with

Root >  .L  MyCode.C++

then when executing the code, I found the following error:

[#1] INFO:NumericIntegration -- 
RooRealIntegral::init(z_theoshape_Int[x]) using numeric integrator 
RooIntegrator1D to calculate Int(x)
Error in <TMacOSXSystem::FindDynamicLibrary>: FFTW[.so | .dll | .dylib | 
.sl | .dl | .a] does not exist in 
/Users/martis/Utils/root_6.04.14/lib:/Users/martis/Utils/root_6.04.14/lib:/Users/martis/Utils/root_6.04.14/lib::.:/Users/martis/Utils/root_6.04.14/lib::/usr/local/lib:/usr/X11R6/lib:/usr/lib:/lib:/lib/x86_64-linux-gnu:/usr/local/lib64:/usr/lib64:/lib64:
Error in <TVirtualFFT::FFT>: handler not found

So FFTW is not in the ROOT library (where 
/Users/martis/Utils/root_6.04.14/lib/libRooFit.so lives). So, where 
should I have the FFTW ?

I am using: ROOT 6.04.14 and a Mac with OS X 10.9.5 (Mavericks)

Help is welcome.
(Continue reading)

Dr Ian Korir | 12 Feb 05:48 2016
Picon

Business process analysis

Dear ROOTers,

Would like to know if anyone has developed or applied root in the analysis of hypothetical workflow business processes. Would like to try and need some ideas on howto. My first trial attempt could be something like 5 predefined random generators connected in series. However how does one introduce an influence metric that is retrievable  or trackable across the nodal/decision points? Can generator biasing be applied to achieve the same? Etc…..     

Any suggestion is highly appreciated.

Kind regards,

Ian

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-----------------------------------------------------------------------------------ignore anything below the line----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the National Nuclear Regulator on +27 12 674 7100 or email : Support <at> nnr.co.za. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited
Jochen Kerdels | 10 Feb 19:44 2016
Picon

C++14 when compiling macro

Dear rooters,

I'm currently playing around with root and c++14. When I write

	bool foo = std::is_final<TObject>::value;

in Cling, everything works as expected.

But if I put the same line in a macro test.C:

	test.C
	--------------------------------------------------
	#include <type_traits>
	#include <TObject.h>

	void test()
	{
		bool foo = std::is_final<TObject>::value;
	}
	--------------------------------------------------

and then try to load and compile the macro with:

	.L test.C+

I get a compilation error:

/home/jk/Dev/hpxroot/./test.C:8:37: error: no member named 'value' in
the global namespace
        bool foo = std::is_final<TObject>::value;
                                         ~~^

Am I missing something?

Cheers,
Jochen

PS: I'm currently looking into how well HPX plays together with ROOT
PPS: Root version 6.05/03 compiled with --enable-cxx14 (GCC 4.9.2)

Georg Troska | 10 Feb 11:31 2016
Picon
Picon

Better definitions and illustrations for boxplots

Dear root-developers, dear users,

I learnt the advantages of root when I worked for HEP-experiments in the
past. Nowerdays I'm no longer working for HEP but still like to use root
for process-control purposes of larger datasets

The people in the company I'm working for like box-plots. So I started to
implement first classes creating boxplots on top of TH2s. Since a while
the "candle" option is available for the Draw-method, but I'm not
satisfied with it. Reasons:
 * The Definition of the candle could be improved (especially the length
of the whiskers and the non-existance of so called outliers
 * no grouping if possible. I like to use trend-charts (some value vs the
time. When using grouping you can compare two values vs. the time, see my
example)

I would like to provide you a simplified version of the boxplot-class I'm
using. I have anther complilable version running under Linux, but this
here runs in CINT without compilation (I have tested it with root 5.32 and
5.34)

I would appreciate it very much if you could think about to implement
these features in a better way by using THistPainter (what I'm doing here
is a bit -poor- :-))

In fact there are several more Features one can implement into a candle
such as:
* Kinks in the candle to show the significance of the median
* Show all values in the candle (underlying scatter plot)
* Show a vertical histogram next to each candle
* Possiblity to scale the box-width
* Write numbers on at the side of the candle to provide the numbers for
mean, median, iqr, etc...

Please tell me what you think about this, and let me know. If you are
interested I can provide some code also

Thanks
Georg
#ifndef BOXPLOT_H
#define BOXPLOT_H

/* BoxPlot class by Dr. G. Troska & Dr. T. Neddermann */
/* Adapted for windows, including multi-group operations, speratorlines and outliers */
/* Version from 2016-02-09 */

#include <TLine.h>
#include <TBox.h>
class Candle{
protected:
	TLine *_l;
	TBox *_b;
	TLine *_ml;
	TLine *_ll;
	TLine *_ul;
	TLine *_medl;
	
	TPolyMarker *_outmarker;
	float _outliers[1000];
	int _nOutliers;
	
	
	float _mean;
	float _median;
	float _m25;
	float _mm;
	float _p25;
	float _pp;
	
	float _bin;
	
	float _width;
	
	void setLines() {
		_l->SetX1(_bin); 
		_l->SetX2(_bin);
		_l->SetY1(_mm); 
		_l->SetY2(_pp);
			
		_b->SetX1(_bin-_width/2); _b->SetX2(_bin+_width/2);
		_b->SetY1(_m25); _b->SetY2(_p25);
		
		_ml->SetX1(_bin-_width/2); _ml->SetX2(_bin+_width/2);
		_ml->SetY1(_mean); _ml->SetY2(_mean);
		
		_medl->SetX1(_bin-_width/2); _medl->SetX2(_bin+_width/2);
		_medl->SetY1(_median); _medl->SetY2(_median);
		
		_ll->SetX1(_bin-_width/2); _ll->SetX2(_bin+_width/2);
		_ll->SetY1(_mm); _ll->SetY2(_mm);
		
		_ul->SetX1(_bin-_width/2); _ul->SetX2(_bin+_width/2);
		_ul->SetY1(_pp); _ul->SetY2(_pp);	
		
		cout << "Created candle at: " << _bin << endl;
	}
	
	void setOutlier() {
		for (int i = 0; i< _nOutliers;i++) {
			_outmarker->SetPoint(i,_bin, _outliers[i]);
			//cout << "Setting outlier to" << _bin << " " << _outliers[i] << endl;
		}
	}

public:
	Candle (float bin, float median, float mean, float m25, float p25, float mm,float pp, float  *outliers,
int nOutliers, float width=0.5) : _bin(bin), _mean(mean), _median(median), _m25(m25), _p25(p25),
_mm(mm), _pp(pp), _outliers(outliers), _nOutliers(nOutliers), _width(width){
		/*if (m75 > m25) return;
		if (m25 > mean) return;
		if (mean > p25) return;
		if (p25 > p75) return;
		*/
		//The Vertical Line
		_l = new TLine();

		//The box
		_b = new TBox();
		_b->SetFillColor(0);

		//The mean line;
		_ml = new TLine();
		
		//The median line;
		_medl = new TLine();

		//The lower line;
		_ll = new TLine();

		//The upper line;
		_ul = new TLine();
		
		
			//cout << "NOutlier: " << nOutliers << endl;
		
		for (int i = 0; i < nOutliers; i++) {
			//cout << "  " << outliers[i] << endl;
			_outliers[i] = outliers[i];
		}
		//outlierer
		_outmarker = new TPolyMarker();
		_outmarker->SetMarkerStyle(kMultiply);
		_outmarker->SetMarkerSize(.7);
		
		
	}
	~Candle() {
		delete _l;
		delete _b;
		delete _ml;
		delete _ll;
		delete _ul;
		delete _medl;
	}
	
	void SetBin(float bin) {_bin = bin; }
	void SetMean(float mean) { _mean = mean; }
	void SetLower25(float m25) { _m25 = m25; }
	void SetLower99(float mm) { _mm = mm; }
	void SetUpper25(float p25) { _p25 = p25; }
	void SetUpper99(float pp) { _pp = pp; }

	
	void SetLineColor(Color_t lcolor) {
		_l->SetLineColor(lcolor);
		_b->SetLineColor(lcolor);
		_ml->SetLineColor(lcolor);
		_ll->SetLineColor(lcolor);
		_ul->SetLineColor(lcolor);
		_medl->SetLineColor(lcolor);
		_outmarker->SetMarkerColor(lcolor);
	}	
	
	void SetLineWidth(Width_t w) {
		_l->SetLineWidth( w);
		_b->SetLineWidth( w);
		_ml->SetLineWidth( w);
		_ll->SetLineWidth( w);
		_ul->SetLineWidth( w);
		_medl->SetLineWidth( w);
	}
	
	void Draw() {
		setLines();
		setOutlier();
		
		_l->Draw();
		_b->Draw("l");
		_ml->Draw();
		_ll->Draw();
		_ul->Draw();
		_medl->Draw();
		_outmarker->Draw();
		

		
	}

};

class BoxPlot {
protected:
	TH2D * _h[16];
	TH2D * _drawHisto;
	int _nHist;
	Color_t _color[16];
	Width_t _width[16];
	Candle* _candles[1000];
	TLine* _separatorLine[100];
	bool _doSeparatorLines;
	int _nSeparatorLines;
	int _nCandles;
	bool getQuantiles(TH1D* h, float &mm, float &m25, float &median, float &p25, float &pp, float
*outliers, int &nOutliers) {
		int entries = h->Integral();
		float counter = 0;
		if (entries < 1 ) return false;
		
		for (int i = 1; i < h->GetNbinsX(); i++) {
			float myBin = h->GetBinContent(i);
			if (counter/entries < 0.25 && (counter + myBin)/entries >=0.25) m25 = h->GetBinCenter(i); // Lower
edge of box
			if (counter/entries < 0.5 && (counter + myBin)/entries >=0.5) median = h->GetBinCenter(i); //Median
			if (counter/entries < 0.75 && (counter + myBin)/entries >=0.75) p25 = h->GetBinCenter(i); //Uppeder
edge of box
			counter += myBin;
		}
		
		//Inter quantile range
		float iqr = p25 - m25;
		
		//Lower end of whisker
		int bin = h->FindBin(m25-1.5*iqr);
		//but extending only to the lowest data value within this range
		while (h->GetBinContent(bin) == 0 && bin <= h->GetNbinsX()) bin++;
		mm = h->GetBinCenter(bin);
		
		//upder end of whisker
		bin = h->FindBin(p25+1.5*iqr);
		while (h->GetBinContent(bin) == 0 && bin >= h->GetNbinsX()) bin--;
		pp = h->GetBinCenter(bin);
		
		// Outliers
		
		nOutliers = 0;
		for (int i = 0; i < h->GetNbinsX(); i++) {
			if (h->GetBinContent(i) > 0 && (h->GetBinCenter(i) < mm || h->GetBinCenter(i) > pp) ) {
				for (int j=0; j < h->GetBinContent(i); j++) {
					outliers[nOutliers] = h->GetBinCenter(i);
					nOutliers++;
					
				}
			}
		}
		
		
	
		
		
		return true;
	}
public:
	BoxPlot() : _nCandles(0), _nHist(0),_doSeparatorLines(false),_nSeparatorLines(0) {
		for (int i = 0 ; i < 1000; i++) _candles[i] = NULL;
		_drawHisto = NULL;
		
	}

	BoxPlot(TH2D *h) : _nCandles(0), _nHist(1),_doSeparatorLines(false),_nSeparatorLines(0) {
		_h[0] = new TH2D(*h);
		_drawHisto = new TH2D(*h);
		_color[0] = 1;
		_width[0] = 1;
		
		for (int i = 0 ; i < 1000; i++) _candles[i] = NULL;
		
	}
	BoxPlot(const char* title, TH2D *h) : _nCandles(0),
_nHist(1),_doSeparatorLines(false),_nSeparatorLines(0) {
		_h[0] = new TH2D(*h);
		_drawHisto = new TH2D(*h);
		_color[0] = 1;
		_width[0] = 1;
		_drawHisto->SetTitle(title);
		for (int i = 0 ; i < 1000; i++) _candles[i] = NULL;
		
	}
	BoxPlot(const char* title, TH2D *h1, TH2D *h2) : _nCandles(0),
_nHist(2),_doSeparatorLines(false),_nSeparatorLines(0) {
		_h[0] = new TH2D(*h1);
		_h[1] = new TH2D(*h2);
		_drawHisto = new TH2D(*h1);
		_color[0] = 1;
		_width[0] = 1;
		_color[1] = 1;
		_width[1] = 1;
		_drawHisto->SetTitle(title);
		for (int i = 0 ; i < 1000; i++) _candles[i] = NULL;
		
		
	}
	int addHistogram(const char* title, TH2D *h) {
		_h[_nHist] = new TH2D(*h);
		if (_nHist == 0) {
			_drawHisto = h;
			_drawHisto->SetTitle(title);
		}
		_color[_nHist] = 1;
		_width[_nHist] = 1;
		_nHist++;
	}
	
	void enableSeparatorLines(bool en=true) {_doSeparatorLines = en; }
	
	void Draw() {
		_drawHisto->SetStats(kFALSE);
		TLegend *leg = new TLegend(0.6,0.7,0.85,0.85);
		leg->SetFillColor(0);
		int nBins = _drawHisto->GetNbinsX();
		_drawHisto->Draw("colz");
		
		TH1D *proj;
			
		float mm, m25, med, p25, pp = 0.;
		float outliers[1000],
		int nOutliers;
		
		int candleCounter = 0;
		
		for (int group = 0; group < _nHist; group++) {
		cout << "Group: " << group << endl; 
			TH2D *myHisto = _h[group];
			myHisto->SetLineColor(_color[group]);
			myHisto->SetLineWidth(_width[group]);
			
			for (int i = 1; i < nBins+1; i++) {
				proj = myHisto->ProjectionY("_py",i,i);
				int nOutliers = 0;
				
				if (proj->GetEntries() > 0) {
					bool valid = getQuantiles(proj,mm,m25,med,p25,pp, outliers, nOutliers);
					if (valid) {
						float binWidth = myHisto->GetXaxis()->GetBinWidth(nBins);
						float candleWidth = binWidth/(_nHist*2);
						float candleOffset = - binWidth/2 + candleWidth + 2*candleWidth*group;
						
						cout << "BinWidth: " << binWidth << " CandleWidth: " << candleWidth << " CandleOffset: " <<
candleOffset << " BinCenter: " << myHisto->GetXaxis()->GetBinCenter(i) << endl;
						
						if(!_candles[candleCounter]) _candles[candleCounter] = new
Candle(myHisto->GetXaxis()->GetBinCenter(i)+candleOffset,med,proj->GetMean(),m25,p25,mm,pp,outliers,
nOutliers, candleWidth);
						_candles[candleCounter]->SetLineColor(_color[group]);
						_candles[candleCounter]->SetLineWidth(_width[group]);
						_candles[candleCounter]->Draw();
						candleCounter++;
						
						if (group == 0 && _doSeparatorLines) {
							
							TLine *myTLine = _separatorLine[_nSeparatorLines];
							_nSeparatorLines++;
							myTLine = new TLine();
							myTLine->SetX1(myHisto->GetXaxis()->GetBinCenter(i) + binWidth/2);
							myTLine->SetX2(myHisto->GetXaxis()->GetBinCenter(i) + binWidth/2);
							myTLine->SetY1(_drawHisto->GetYaxis()->GetXmin());
							myTLine->SetY2(_drawHisto->GetYaxis()->GetXmax());
							myTLine->SetLineStyle(3);
							myTLine->Draw();
							
						}
						
					
					}
				}
			}
			leg->AddEntry(myHisto,myHisto->GetTitle(),"f");
		}
		leg->Draw();
		
		
		/*
		if (_nHist==1) {
			_nCandles = _h[0]->GetNbinsX();
			
			_drawHisto->Draw("colz");
			TH1D *proj;
			
			float mm, m25, med, p25, pp = 0.;
			float outliers[1000],
			int nOutliers;
		
			for (int i = 0; i < _nCandles; i++) {
				proj = _h[0]->ProjectionY("_py",i+1,i+1);
				if (proj->Integral() > 0) {
					bool valid = getQuantiles(proj,mm,m25,med,p25,pp, outliers, nOutliers);
					if (valid) {
						float width = (_h[0]->GetBinCenter(_nCandles)-_h[0]->GetBinCenter(0))/_nCandles;
						if(!_candles[i]) _candles[i] = new
Candle(_h[0]->GetBinCenter(i)+width,med,proj->GetMean(),m25,p25,mm,pp,outliers, nOutliers, width*0.5);
						_candles[i]->SetLineColor(_color[0]);
						_candles[i]->SetLineWidth(_width[0]);
						_candles[i]->Draw();
						}
				}
			}
			//leg->AddEntry(_h[group],_h[group]->GetTitle(),"f");
		}
		if (_nHist==2) {
			_nCandles = _h[0]->GetNbinsX();
			_drawHisto->Draw("colz");
			TH1D *proj;
			float outliers[1000];
			int nOutliers;
			float mm, m25, med, p25, pp;
			for (int group = 0; group < _nHist; group++) {
			_h[group]->SetLineColor(_color[group]);
			_h[group]->SetLineWidth(_width[group]);
				for (int i = 0; i < _nCandles; i++) {
					proj = _h[group]->ProjectionY("_py",i+1,i+1);
	
					if (proj->GetEntries() > 0) {
						bool valid = getQuantiles(proj,mm,m25,med,p25,pp, outliers, nOutliers);
						if (valid) {
							float width = (_h[group]->GetBinCenter(_nCandles)-_h[group]->GetBinCenter(0))/_nCandles;
							if(!_candles[i+group*_nCandles]) _candles[i+group*_nCandles] = new
Candle(_h[group]->GetBinCenter(i)+width*0.75 +
group*width*0.5,med,proj->GetMean(),m25,p25,mm,pp,outliers, nOutliers,width*0.25);
							_candles[i+group*_nCandles]->SetLineColor(_color[group]);
							_candles[i+group*_nCandles]->SetLineWidth(_width[group]);
							_candles[i+group*_nCandles]->Draw();
							}
					}
				}
				leg->AddEntry(_h[group],_h[group]->GetTitle(),"f");
			}
			leg->Draw();
			
		}*/
		
		_drawHisto->Reset();
		
		
		
		
	}
	
	void SetLineColor(Color_t lcolor, int histo = 0) {
		_color[histo] = lcolor;
	}	
	
	void SetLineWidth(Width_t w , int histo = 0) {
		_width[histo] = w;
	}

	void SetTitle(const char* title) {
		_drawHisto->SetTitle(title);
	}
	TAxis* GetXaxis() { return _drawHisto->GetXaxis(); }
	TAxis* GetYaxis() { return _drawHisto->GetYaxis(); }

};

#ifdef __CINT__
#pragma link C++ class BoxPlot-;
#pragma link C++ class Candle-;
#endif

#endif
{
gROOT->Reset();
#include "box.h"

TCanvas *c1 = new TCanvas("c1","Sin + Cos",1200,800);
c1->Divide(2,2);

TRandom *rand = new TRandom();
TH2I *h1 = new TH2I("h1","Sin",36,0,360,300,-1.5,1.5);
TH2I *h2 = new TH2I("h2","Cos",36,0,360,300,-1.5,1.5);
h1->GetXaxis()->SetTitle("Deg [°]");
for (int i = 0; i < 360; i+=10) {
	for (int j = 0; j < 100; j++) {
		float myRand = rand->Gaus(sin(i*3.14/180),0.2);
		h1->Fill(i,myRand);
		float myRand = rand->Gaus(cos(i*3.14/180),0.1);
		h2->Fill(i,myRand);
	}
}
c1->cd(1);
h1->Draw();
c1->cd(2);
h2->Draw();

c1->cd(3);
BoxPlot *b = new BoxPlot("Sin + Cos",(TH2D*)h1,(TH2D*)h2);
b->SetLineColor(kRed,0);
b->SetLineColor(kBlue,1);
b->Draw();

}
Shilpa B | 9 Feb 10:19 2016
Picon

LLVM IR from RootR

Hi,

I am using RootR to compile R programs using Root.
Is it possible to get LLVM IR from RootR?

Thanks,
Shilpa​
Axel Naumann | 3 Feb 15:41 2016
Picon
Picon

ROOT Patch Release v6.04/14

Hi,

We have released ROOT v6.04/14.

It patches a few issues found in our 6.04 release - thank you for
reporting them! See
<https://root.cern.ch/doc/v604/release-notes.html#release-6.0414> for
the details.

Downloads are at <https://root.cern.ch/content/release-60414>.

Best regards,
Axel, on behalf of the ROOT team
--
ROOT - http://root.cern.ch
PH-SFT, CERN, 1211 Geneve 23, Switzerland
Tel: +41 22 7678225

Vassili Maroussov | 2 Feb 15:15 2016
Picon
Picon

Why the copy constructor and the assignment operator of TMultiGraph are protected?

Dear ROOTers,

Why the copy constructor and the assignment operator of TMultiGraph are 
protected? Then I cannot place it in STL containers :(

Best regards,

Vassili

Nicolas Produit | 1 Feb 10:53 2016
Picon
Picon

problem with string in compilation

Hi,

this is very strange:
in ROOT 6.04/10

If I do on command line:
root [0] string b[2]={"abcd","efgh"};
root [1] b[0]
(std::__cxx11::string &) "abcd"[4]

Now if I put in a file a.C:

string b[2]={"abcd","efgh"};

then
root [0] .L a.C+
root [1] b
IncrementalExecutor::executeFunction: symbol 'b' unresolved while
linking [cling interface function]!
You are probably missing the definition of bool
Maybe you need to load the corresponding shared library?
root [2] string b[2]={"abcd","efgh"};
ROOT_prompt_2:1:8: error: redefinition of 'b'
string b[2]={"abcd","efgh"};
       ^
/home/produit/jupiter/./a.C:1:8: note: previous definition is here
string b[2]={"abcd","efgh"};

--

-- 
Nicolas Produit
ISDC, Data Centre for Astrophysics   Phone:+41 22 379 2140
16, Chemin d'Ecogia                  Fax:  +41 22 379 2133
CH-1290 Versoix                      www:  http://isdc.unige.ch/~produit

Yannick Patois | 29 Jan 15:47 2016
Picon

*._rdict.pcm doesnt follows CMAKE_LIBRARY_OUTPUT_DIRECTORY

Hi,

In a CMakeList.txt file, I have something like:

SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
FILE(GLOB SRCFILES *.cxx)
FILE(GLOB HFILES TT*.h)

ROOT_GENERATE_DICTIONARY(ThermusDict ${HFILES} LINKDEF 
THERMUSClassesLinkDef.h)

add_library(THERMUS SHARED ${SRCFILES} ThermusDict.cxx)
target_link_libraries(THERMUS ${ROOT_LIBRARIES})

Then both libTHERMUS.so and libThermusDict.rootmap are build in 
${CMAKE_BINARY_DIR}/lib, but not ThermusDict_rdict.pcm who stay in place.

I had a look at the ROOT_GENERATE_DICTIONARY and it seems to me that it 
should be also moved... What am I missing?

Thanks.

	Yannick

--

-- 
Yannick Patois <yannick.patois <at> iphc.cnrs.fr>
IPHC - IN2P3 / CNRS - 23 rue du Loess 67037 Strasbourg
Tel: 03 88 10 61 83

Attachment (smime.p7s): application/pkcs7-signature, 4019 bytes
OKUMURA, Akira | 29 Jan 11:23 2016
Picon
Gravatar

build error ROOT 6.06.0 on OS X 10.9.5

Hello ROOTers,

I get a build error during the build process of MathCore of ROOT 6.06.0 on OS X 10.9.5. You can find the whole
error messages in the end of this message.

$ clang --version
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

$ mkdir root-6.06.00/cmake_build
$ cd root-6.06.00/cmake_build
$ cmake ../ -Dminuit2=ON -Dgdml=ON -Dmathmore=ON -Dopengl=ON -Dpython=ON

I tried removing -Dmathmore option, but I got similar errors shown below.

[ 47%] Generating G__Net.cxx, ../../lib/libNet_rdict.pcm, ../../lib/libNet.rootmap
In file included from input_line_12:14:
In file included from /usr/local/root-6.06.00/cmake_build/include/TApplicationRemote.h:30:
In file included from /usr/local/root-6.06.00/cmake_build/include/TApplication.h:33:
In file included from /usr/local/root-6.06.00/cmake_build/include/TQObject.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:36:
In file included from
/usr/local/root-6.06.00/cmake_build/include/TMathBase.h:33:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdlib:85:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~
         "__config"

Any help?

Regards,

--
OKUMURA, Akira oxon <at> mac.com / oxon <at> nagoya-u.jp
⌘ Visiting Researcher (Apr 2015 – Mar 2016) at
Max-Planck-Institut für Kernphysik, Bothe Lab 216
Saupfercheckweg 1, Heidelberg, Germany 69117
Office: +49 (0)6221–516–144 skype:okumura.akira
⌘ Assistant Professor at
Institute for Space-Earth Environmental Research, Nagoya University
Furo-cho, Chikusa-ku, Nagoya 464-8601, Japan
Office/Lab/Fax: +81 (0)52–789–4320/5037/4313

[ 47%] Built target rootcling
[ 47%] Generating G__MathCore.cxx, ../../lib/libMathCore_rdict.pcm, ../../lib/libMathCore.rootmap
In file included from input_line_12:6:
In file included from /usr/local/root-6.06.00/cmake_build/include/TComplex.h:25:
In file included from /usr/local/root-6.06.00/cmake_build/include/TMath.h:30:
In file included from
/usr/local/root-6.06.00/cmake_build/include/TMathBase.h:33:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdlib:85:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~
         "__config"
In file included from input_line_12:6:
In file included from /usr/local/root-6.06.00/cmake_build/include/TComplex.h:25:
In file included from /usr/local/root-6.06.00/cmake_build/include/TMath.h:30:
In file included from
/usr/local/root-6.06.00/cmake_build/include/TMathBase.h:34:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:300:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~

"__config"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:302:10:
error: 
      'type_traits' file not found with <angled> include; use "quotes" instead
#include <type_traits>
         ^~~~~~~~~~~~~
         "type_traits"
In file included from input_line_12:6:
In file included from /usr/local/root-6.06.00/cmake_build/include/TComplex.h:25:
/usr/local/root-6.06.00/cmake_build/include/TMath.h:34:10: error: 'algorithm'
      file not found with <angled> include; use "quotes" instead
#include <algorithm>
         ^~~~~~~~~~~
         "algorithm"
/usr/local/root-6.06.00/cmake_build/include/TMath.h:35:10: error: 'limits' file
      not found with <angled> include; use "quotes" instead
#include <limits>
         ^~~~~~~~
         "limits"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
/usr/local/root-6.06.00/cmake_build/include/TString.h:40:10: error: 'string'
      file not found with <angled> include; use "quotes" instead
#include <string>
         ^~~~~~~~
         "string"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
/usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:38:10: error: 
      'iterator' file not found with <angled> include; use "quotes" instead
#include <iterator>
         ^~~~~~~~~~
         "iterator"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
In file included from
/usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:39:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:130:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~
         "__config"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:39:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:214:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~

"__config"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:215:10:
error: 
      'iosfwd' file not found with <angled> include; use "quotes" instead
#include <iosfwd>
         ^~~~~~~~
         "iosfwd"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:39:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:14:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~

"__config"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:16:10:
error: 
      'memory' file not found with <angled> include; use "quotes" instead
#include <memory>
         ^~~~~~~~

"memory"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:17:10:
error: 
      'utility' file not found with <angled> include; use "quotes" instead
#include <utility>
         ^~~~~~~~~
         "utility"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:39:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:175:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~
         "__config"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:39:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:14:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~
         "__config"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:39:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/chrono:278:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~
         "__config"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:39:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:15:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/chrono:279:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ctime:47:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~
         "__config"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:39:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/chrono:280:10:
error: 
      'type_traits' file not found with <angled> include; use "quotes" instead
#include <type_traits>
         ^~~~~~~~~~~~~
         "type_traits"
In file included from input_line_12:8:
In file included from /usr/local/root-6.06.00/cmake_build/include/TRandom.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/TNamed.h:29:
In file included from /usr/local/root-6.06.00/cmake_build/include/TString.h:41:
In file included from /usr/local/root-6.06.00/cmake_build/include/RStringView.h:26:
In file included from /usr/local/root-6.06.00/cmake_build/include/RWrap_libcpp_string_view.h:39:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:15:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/chrono:281:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ratio:68:10:
error: 
      '__config' file not found with <angled> include; use "quotes" instead
#include <__config>
         ^~~~~~~~~~
         "__config"
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Error: ../../bin/rootcling: compilation failure (/usr/local/root-6.06.00/cmake_build/lib/libMathCore665691c16e_dictUmbrella.h)
make[2]: *** [math/mathcore/G__MathCore.cxx] Error 1
make[1]: *** [math/mathcore/CMakeFiles/G__MathCore.dir/all] Error 2
make: *** [all] Error 2

Vassili Maroussov | 26 Jan 19:32 2016
Picon
Picon

Nested STL containers in ROOT cause segmentation violation

Dear ROOTers,

I attempted to use in ROOT nested STL containers, like 
vector<vector<float> >, and found they cause a segmentation violation, 
when I try to save them in a *.root file A "case study" files are in the 
tar.gz attached, just unpack and type ./run_me from the testMyObj directory.

OS: Fedora 23:  4.3.3-300.fc23.x86_64 #1 SMP Tue Jan 5 23:31:01 UTC 2016 
x86_64 x86_64 x86_64 GNU/Linux
ROOT: 5.34/21 (v5-34-21 <at> v5-34-21, Sep 09 2014, 15:29:00 on linuxx8664gcc)

Is it an expected behaviour?

Best regards,

Vasily

Attachment (testMyObj.tar.gz): application/gzip, 3183 bytes

Gmane