Skip to content

Conversation

@bruntib
Copy link
Collaborator

@bruntib bruntib commented Aug 14, 2020

No description provided.

@bruntib bruntib added Status: WIP 👷 Issue or PR under development - feel free to review, though! Plugin: C++ Issues related to the parsing and presentation of C++ projects. Target: Developer environment Developer environment issues consist of CodeCompass or 3rd-party build tooling, configuration or CI. labels Aug 14, 2020
@bruntib bruntib added this to the Release Flash milestone Aug 14, 2020
Copy link
Contributor

@whisperity whisperity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc/deps.md file is not updated.

@whisperity whisperity changed the title Upstreaming to Clang 10 Uplift used Clang to 10.0 Aug 14, 2020
@whisperity
Copy link
Contributor

whisperity commented Aug 14, 2020

Not sure if this is intended... when parsing CodeCompass itself, for the warnings of a parsed TU, only the warning count comes up, the warnings themselves are hidden:

[INFO] (62/129) Parsing /home/w/Work/CodeCompass/Source/webserver/src/session.cpp
[INFO] (63/129) Parsing /home/w/Work/CodeCompass/Source/webserver/src/sessionmanager.cpp
2 warnings generated.
[INFO] (64/129) Parsing /home/w/Work/CodeCompass/Source/webserver/src/threadedmongoose.cpp
[INFO] (65/129) Parsing /home/w/Work/CodeCompass/Source/webserver/src/mongoose.c
[INFO] (66/129) Parsing /home/w/Work/CodeCompass/Source/webserver/authenticators/plain/src/plugin.cpp
2 warnings generated.

(I'm running without --loglevel debug.)

@whisperity
Copy link
Contributor

Alright, I can confirm that the parsing part works, except for that weirdness with the diagnostics output above. In addition, the same behaviour is present for erroring TUs:

2 errors generated.
Error while processing /home/w/Work/CodeCompass/Source/plugins/cpp/test/src/cppparsertest.cpp.
[WARNING] (100/129) Parsing /home/w/Work/CodeCompass/Source/plugins/cpp/test/src/cppparsertest.cpp has been failed.

@bruntib
Copy link
Collaborator Author

bruntib commented Aug 14, 2020

I think warnings and errors are not emitted to the standard output because they are captured by the diagnostic message handler (see #403). I'll create a ticket about bringing them back.

@bruntib
Copy link
Collaborator Author

bruntib commented Aug 16, 2020

It seems that only Xenial build is missing for this pull request. If we're extremely lucky then CodeCompass works with Clang-8 which is available under Xenial. Could somebody please help with some Travis magic so Xenial build uses Clang-8? This patch is a dependency of some other.

@intjftw
Copy link
Collaborator

intjftw commented Aug 16, 2020

It seems to me that unfortunately the CI already uses Clang 8 for Xenial, too (at least that is what I saw in the build configuration, but correct me if I'm wrong).

@bruntib
Copy link
Collaborator Author

bruntib commented Aug 17, 2020

Yes, I tried installing Clang 8 hoping that it will work automatically out of the box. However, clang-10 binary is still set explicitly somewhere. I haven't investigated the issue too much.

@mcserep
Copy link
Collaborator

mcserep commented Aug 17, 2020

Why aren't we using Clang 10? It is available on Xenial:
https://apt.llvm.org/

Needed to add a `sourceline` safelist for Travis as
`llvm-toolchain-xenial-10` is not in the safe list by default.
@mcserep
Copy link
Collaborator

mcserep commented Aug 17, 2020

Why aren't we using Clang 10? It is available on Xenial:
https://apt.llvm.org/

I see the problem, llvm-toolchain-xenial-10 is not in the APT source safelist for Travis, as defined here:
https://github.com/travis-ci/apt-source-safelist/blob/master/ubuntu.json

But we can still add this PPA with the sourceline attribute, I will give it a go.

@mcserep
Copy link
Collaborator

mcserep commented Aug 17, 2020

There, proper Travis magic applied, it builds on Xenial now in the CI pipeline 😄

(I have made some commits, feel free to squash them of course.)

Copy link
Contributor

@whisperity whisperity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 57 and 58 in docs/deps.md (it's so out of the diff context I can't put an inline comment 😦) are still saying llvm-toolchain-xenial-7, otherwise the documentation seems fine for me.

@whisperity
Copy link
Contributor

Oh nice, TIL if the pull request author allows you to push their PR, you can actually force push the branch too. @mcserep I've squashed your 3 commits and updated the message in the squash with the elaboration about this sourceline fiasco. Lovely, that there is an official APT (technically it is not a PPA at that point 😉) repository for the newer versions.

I believe @bruntib is serving a well-deserved holiday this week, considering the elongated weekend for the state anniversary. So it's up to us to review whether everything is fine with the patch. 😋

@bruntib
Copy link
Collaborator Author

bruntib commented Aug 17, 2020

Thanks for the magic, I appreciate it:) By the way I was only checking packages.ubuntu.com and I didn't see if Clang 10 was available under xenial.

Copy link
Collaborator

@mcserep mcserep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some documentation fixes; everything seems fine now.

@whisperity whisperity merged commit 15e4a4b into Ericsson:master Aug 17, 2020
@mcserep mcserep removed the Status: WIP 👷 Issue or PR under development - feel free to review, though! label Aug 17, 2020
@bruntib bruntib deleted the clang10 branch August 17, 2020 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kind: Refactor 🔃 Plugin: C++ Issues related to the parsing and presentation of C++ projects. Target: Developer environment Developer environment issues consist of CodeCompass or 3rd-party build tooling, configuration or CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants