Skip to content

Conversation

@vgvassilev
Copy link
Member

Work done mostly by @Teemperor.

Teemperor added 10 commits June 12, 2017 20:42
This patch also untangles the generation code of PCMs and PCHs.
Additionally we enable rootcling warnings during module generation because
want them in the future when we try to adjust the working ROOT modulemap
to the dictionary layout (i.e. fixing libCore and libThread).
…lure.

The sysroot flag should not be set when writing a module otherwise we
trigger an assertion in ASTWriter.cpp:1245.
…roject#527)

Print a warning when rootcling can't find the ROOT modulemap.

So far we only trigger an assertion in LLVM when we can't find the
modulemap file which is not very user-friendly. With this patch
we actually prints an error message in this situation.
Seems like ignore-non-existent-contents is quite new,
so we just remove it for now to avoid crashing on
parsing this file with the old clang version inside
ROOT.
…ot-project#537)

It's AST supposed to depend on NDEBUG, so having this as a module is
wrong. And we just remove cassert instead of making it textual
to be consistent with the OS X system modulemap.
…ject#538)

The modules implementation provides it's own sema source and
overwriting this confuses clang when we have -fmodules enabled.
The previous assert was not only ugly but also did the inverse
check (failed when it could open the file correctly).
* Don't load the PCH when we have modules enabled.

The modules are supposed to provide the same functionality, so for
now we don't want the PCH when testing modules.

* Disable loading of the rootmap files when running modules.

The replacement feature for this is currently not implemented, but
we don't want the forward declarations to mix with the declaration
loading logic from the modules.
The old code didn't query the modules if the identifier
is updated. This caused some checks to fail such as
CheckABICompatibility().
@phsft-bot
Copy link

Starting build on gcc49/centos7, native/mac1012, gcc49/slc6, gcc62/slc6, native/ubuntu14 with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

@phsft-bot
Copy link

Build failed on centos7/gcc49.
See console output.

Errors:

  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2204:46: error: no matching function for call to ‘clang::ASTWriter::ASTWriter(llvm::BitstreamWriter&, llvm::ArrayRef<llvm::IntrusiveRefCntPtr<clang::ModuleFileExtension> >&)’
  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2208:98: error: cannot convert ‘std::unique_ptr<llvm::raw_pwrite_stream>’ to ‘llvm::raw_ostream*’ in initialization

Warnings:

@phsft-bot
Copy link

Build failed on slc6/gcc49.
See console output.

Errors:

  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2204:46: error: no matching function for call to ‘clang::ASTWriter::ASTWriter(llvm::BitstreamWriter&, llvm::ArrayRef<llvm::IntrusiveRefCntPtr<clang::ModuleFileExtension> >&)’
  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2208:98: error: cannot convert ‘std::unique_ptr<llvm::raw_pwrite_stream>’ to ‘llvm::raw_ostream*’ in initialization

Warnings:

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2204:46: error: no matching function for call to ‘clang::ASTWriter::ASTWriter(llvm::BitstreamWriter&, llvm::ArrayRef<llvm::IntrusiveRefCntPtr<clang::ModuleFileExtension> >&)’
  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2208:98: error: cannot convert ‘std::unique_ptr<llvm::raw_pwrite_stream>’ to ‘llvm::raw_ostream*’ in initialization

Warnings:

@phsft-bot
Copy link

Build failed on mac1012/native.
See console output.

Errors:

  • /Volumes/HDD2/ec/build/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2204:21: error: no matching constructor for initialization of 'clang::ASTWriter'
  • /Volumes/HDD2/ec/build/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2205:23: error: no viable conversion from 'std::unique_ptr<raw_pwrite_stream>' to 'llvm::raw_ostream *'

Warnings:

@vgvassilev vgvassilev force-pushed the runtime-cxxmodules branch from 2f8343e to aaba618 Compare June 12, 2017 19:21
@phsft-bot
Copy link

Starting build on gcc49/centos7, native/mac1012, gcc49/slc6, gcc62/slc6, native/ubuntu14 with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

@phsft-bot
Copy link

Build failed on ubuntu14/native.
See console output.

Errors:

  • /mnt/build/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2204:46: error: no matching function for call to ‘clang::ASTWriter::ASTWriter(llvm::BitstreamWriter&, llvm::ArrayRef<llvm::IntrusiveRefCntPtr<clang::ModuleFileExtension> >&)’
  • /mnt/build/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2208:98: error: cannot convert ‘std::unique_ptr<llvm::raw_pwrite_stream>’ to ‘llvm::raw_ostream*’ in initialization

Warnings:

@phsft-bot
Copy link

Build failed on slc6/gcc49.
See console output.

Errors:

  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2204:46: error: no matching function for call to ‘clang::ASTWriter::ASTWriter(llvm::BitstreamWriter&, llvm::ArrayRef<llvm::IntrusiveRefCntPtr<clang::ModuleFileExtension> >&)’
  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2208:98: error: cannot convert ‘std::unique_ptr<llvm::raw_pwrite_stream>’ to ‘llvm::raw_ostream*’ in initialization

Warnings:

@phsft-bot
Copy link

Build failed on centos7/gcc49.
See console output.

Errors:

  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2204:46: error: no matching function for call to ‘clang::ASTWriter::ASTWriter(llvm::BitstreamWriter&, llvm::ArrayRef<llvm::IntrusiveRefCntPtr<clang::ModuleFileExtension> >&)’
  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2208:98: error: cannot convert ‘std::unique_ptr<llvm::raw_pwrite_stream>’ to ‘llvm::raw_ostream*’ in initialization

Warnings:

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2204:46: error: no matching function for call to ‘clang::ASTWriter::ASTWriter(llvm::BitstreamWriter&, llvm::ArrayRef<llvm::IntrusiveRefCntPtr<clang::ModuleFileExtension> >&)’
  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2208:98: error: cannot convert ‘std::unique_ptr<llvm::raw_pwrite_stream>’ to ‘llvm::raw_ostream*’ in initialization

Warnings:

@phsft-bot
Copy link

Build failed on mac1012/native.
See console output.

Errors:

  • /Volumes/MacintoshHD2/build/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2204:21: error: no matching constructor for initialization of 'clang::ASTWriter'
  • /Volumes/MacintoshHD2/build/workspace/root-pullrequests-build/root/core/dictgen/src/rootcling_impl.cxx:2205:23: error: no viable conversion from 'std::unique_ptr<raw_pwrite_stream>' to 'llvm::raw_ostream *'
  • clang: error: no such file or directory: '/Volumes/MacintoshHD2/build/workspace/root-pullrequests-build/build/core/thread/G__Thread.cxx'
  • clang: error: no input files
  • clang: error: no such file or directory: '/Volumes/MacintoshHD2/build/workspace/root-pullrequests-build/build/io/io/G__IO.cxx'
  • clang: error: no input files
  • clang: error: no such file or directory: '/Volumes/MacintoshHD2/build/workspace/root-pullrequests-build/build/core/base/G__Core.cxx'
  • clang: error: no input files

Warnings:

@vgvassilev
Copy link
Member Author

Tracked in #638.

@vgvassilev vgvassilev closed this Jun 13, 2017
@vgvassilev vgvassilev deleted the runtime-cxxmodules branch June 13, 2017 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants