Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental build problems #7362

Closed
1 task done
linev opened this issue Mar 4, 2021 · 4 comments
Closed
1 task done

Incremental build problems #7362

linev opened this issue Mar 4, 2021 · 4 comments

Comments

@linev
Copy link
Member

linev commented Mar 4, 2021

  • Checked for duplicates

Describe the bug

After llvm update I getting problem with incremental ROOT builds.
For instance, I trying to rebuild libAfterImage by executing in build directory:

 rm -rf AFTERIMAGE-prefix lib/libAfterImage.a lib/libASImage.so    

libAfterImage.a is rebuild, but ROOT compilation fails at the point:

In file included from input_line_10:3:
In file included from /home/linev/build/webgui/include/Fit/BasicFCN.h:18:
In file included from /home/linev/build/webgui/include/Math/IParamFunction.h:20:
In file included from /home/linev/build/webgui/include/Math/Util.h:28:
/home/linev/build/webgui/include/Math/Types.h:19:2: fatal error: module file '/home/linev/build/webgui/lib/std.pcm' is out of date and needs to be rebuilt: signature mismatch
#include <Vc/Vc>
 ^
/home/linev/build/webgui/include/Math/Types.h:19:2: note: imported by module 'Vc' in '/home/linev/build/webgui/lib/Vc.pcm'
[ 74%] Built target testInterpreterLock
[ 74%] Built target testImt
Error: /home/linev/build/webgui/bin/rootcling: compilation failure (/home/linev/build/webgui/lib/libMathCorecc902379ff_dictUmbrella.h)
make[2]: *** [math/mathcore/CMakeFiles/G__MathCore.dir/build.make:260: math/mathcore/G__MathCore.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:31016: math/mathcore/CMakeFiles/G__MathCore.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

If I call cmake command directly, it may complete to the end, but then ROOT has problems executing hsimple.C

% root.exe -l -b $ROOTSYS/tutorials/hsimple.C -q                                                                                                              (04.03. 14:31:36) !10127 

Processing /home/linev/build/webgui/tutorials/hsimple.C...
hsimple   : Real Time =   0.04 seconds Cpu Time =   0.04 seconds
root.exe: /home/linev/git/webgui/interpreter/llvm/src/tools/clang/include/clang/Basic/Diagnostic.h:1299: clang::DiagnosticBuilder clang::DiagnosticsEngine::Report(clang::SourceLocation, unsigned int): Assertion `CurDiagID == std::numeric_limits<unsigned>::max() && "Multiple diagnostics in flight at once!"' failed.
[1]    25284 IOT instruction (core dumped)  root.exe -l -b $ROOTSYS/tutorials/hsimple.C -q
@linev
Copy link
Member Author

linev commented Mar 4, 2021

For completeness - my cmake command:

cmake -Droot7=ON -Dfcgi=ON -DCMAKE_CXX_STANDARD=17 -Dwebgui=ON -Dqt5web=ON -Dcefweb=ON -Dtesting=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -Doracle=ON -DORACLE_PATH_INCLUDES=/home/linev/d/occi/include -DORACLE_PATH_LIB=/home/linev/d/occi/lib/ -DORACLE_OCI_VERSION=10G_R2 -Dodbc=ON -Dpgsql=ON -Dveccore=ON -Dvc=ON -Dbuiltin_vc=ON -Dvdt=ON -Dbuiltin_vdt=ON -Dbuiltin_gsl=ON -Dmpi=ON -Dall=ON -Dxrootd=ON -Dbuiltin_davix=ON -Dbuiltin_tbb=OFF <path_to_source>

@jalopezg-git jalopezg-git removed this from Needs triage in Triage Mar 4, 2021
@linev
Copy link
Member Author

linev commented Mar 4, 2021

If I removing -Dall=ON, re-compilation works,

@linev
Copy link
Member Author

linev commented Mar 8, 2021

Seems to be, after recent patches incremental build is working now on the master.
I will check if 6.24 fixed as well

@linev linev added this to the 6.24/00 milestone Mar 8, 2021
@linev
Copy link
Member Author

linev commented Mar 8, 2021

Also 6.24 branch works properly

@linev linev closed this as completed Mar 8, 2021
@Axel-Naumann Axel-Naumann added this to Issues in Fixed in 6.24/00 via automation Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants