[ROOT-7114] Autoparse fails if TSystem::ChangeDirectory is used Created: 27/Feb/15  Updated: 23/Nov/16  Resolved: 23/Nov/16

Status: Closed
Project: ROOT
Component/s: Cling, Core Libraries
Affects Version/s: 6.04.00
Fix Version/s: 6.02/08

Type: Bug Priority: High
Reporter: Danilo Piparo Assignee: Axel Naumann
Resolution: Fixed Votes: 0
Labels: None
Environment:

linux/mac


Development:

 Description   

create this test directory and move into it:

mkdir test
cd test
mkdir someDir

then take these two files and create a dictionary:
MyClassInc.h

class MyClass{};

MyClass.h

#include "MyClassInc.h"

genreflex MyClass.h --rootmap al.rootmap ; clang++ -o libMyClass.so MyClass_rflx.cpp `root-config --cflags --libs` -fPIC -shared

Autoparsing fails unexpectedly at the prompt if one fires root as follows and inputs the following commands:

ROOT_INCLUDE_PATH=`pwd` LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd` root -b
root[0]  gSystem->ChangeDirectory("someDir/");
root[1]  MyClass a;



 Comments   
Comment by Axel Naumann [ 05/Mar/15 ]

Hi Thomas,

How urgent is this?

Cheers, Axel.

Comment by Thomas Hauth (Inactive) [ 05/Mar/15 ]

Hi Axel,
thanks for following up on this. I would consider this issue "medium" priority, as we plan to use the "-inlineInputHeader" option of rootcling anyways. Unfortunately, at the moment this option is blocked due to the issues reported here:
https://sft.its.cern.ch/jira/browse/ROOT-7113

Cheers,
Thomas

Comment by Axel Naumann [ 24/Mar/15 ]

Hi,

Given that #pragma once with -inlineInputHeader won't fly (because there is no filesystem file associated with that) we'll have to fix this. Which needs to be fixed anyway.

For now: I can reproduce, looking into it...

Axel.

Comment by Axel Naumann [ 25/Mar/15 ]

Hi Thomas,

Sorry this took so long. Can you verify that my patches work? It's in master and v6-02-00-patches.

I'll close this once I have uploaded a test to the master.

Axel.

Comment by Thomas Hauth (Inactive) [ 26/Mar/15 ]

Hello Axel,
thanks for taking care of this issue. I can confirm the master branch works now both with my artifical reproducer and the more complex setup in a analysis framework.

Cheers,
Thomas

Comment by Axel Naumann [ 27/Mar/15 ]

Thanks a lot, Thomas!

Comment by Axel Naumann [ 23/Nov/16 ]

Test is at roottest/root/meta/autoloading/assertROOT7114.C

Generated at Tue Sep 24 10:53:34 CEST 2019 using Jira 7.13.1#713001-sha1:5e06076c2d215a6f699b7e5c90ab2fae7ba5a1ce.