cmonster icon indicating copy to clipboard operation
cmonster copied to clipboard

Error Installing Using Clang 3.4 (trunk) on OSX

Open fbartho opened this issue 11 years ago • 6 comments

  • OSX 10.8.5
  • Xcode: 5.0.1
  • Boost: easy_installed today
  • Python: brew installed today
  • Cython: easy_installed today
  • LLVM downloaded from trunk, today
$ python3 --version
Python 3.3.2
$ llvm-config --version
3.4svn
cmonster$  python3 setup.py install
running install
running bdist_egg
running egg_info
writing dependency_links to lib/cmonster.egg-info/dependency_links.txt
writing lib/cmonster.egg-info/PKG-INFO
writing top-level names to lib/cmonster.egg-info/top_level.txt
writing dependency_links to lib/cmonster.egg-info/dependency_links.txt
writing lib/cmonster.egg-info/PKG-INFO
writing top-level names to lib/cmonster.egg-info/top_level.txt
reading manifest file 'lib/cmonster.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lib/cmonster.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.8-x86_64/egg
running install_lib
running build_py
running build_ext
skipping 'src/cmonster/python/ast/ast.cpp' Cython extension (up-to-date)
building 'cmonster._cmonster' extension
clang -Wno-unused-result -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -I/usr/local/opt/sqlite/include -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -Isrc -I/usr/local/include -I/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c src/cmonster/core/impl/exception_diagnostic_client.cpp -o build/temp.macosx-10.8-x86_64-3.3/src/cmonster/core/impl/exception_diagnostic_client.o -fno-rtti
clang -Wno-unused-result -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -I/usr/local/opt/sqlite/include -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -Isrc -I/usr/local/include -I/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c src/cmonster/core/impl/include_locator_impl.cpp -o build/temp.macosx-10.8-x86_64-3.3/src/cmonster/core/impl/include_locator_impl.o -fno-rtti
src/cmonster/core/impl/include_locator_impl.cpp:117:50: error: no matching constructor for initialization of 'clang::DiagnosticsEngine'
                        clang::DiagnosticsEngine temp_diag(
                                                 ^
/usr/local/include/clang/Basic/Diagnostic.h:340:12: note: candidate constructor not viable: no known conversion from 'cmonster::core::impl::IncludeLocatorDiagnosticClient *' to
      'clang::DiagnosticOptions *' for 2nd argument
  explicit DiagnosticsEngine(
           ^
/usr/local/include/clang/Basic/Diagnostic.h:131:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
      ^
src/cmonster/core/impl/include_locator_impl.cpp:137:42: error: no matching constructor for initialization of 'clang::DiagnosticsEngine'
                clang::DiagnosticsEngine temp_diag(
                                         ^
/usr/local/include/clang/Basic/Diagnostic.h:340:12: note: candidate constructor not viable: no known conversion from 'cmonster::core::impl::IncludeLocatorDiagnosticClient *' to
      'clang::DiagnosticOptions *' for 2nd argument
  explicit DiagnosticsEngine(
           ^
/usr/local/include/clang/Basic/Diagnostic.h:131:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
      ^
src/cmonster/core/impl/include_locator_impl.cpp:149:38: error: no matching constructor for initialization of 'clang::DiagnosticsEngine'
            clang::DiagnosticsEngine temp_diag(
                                     ^
/usr/local/include/clang/Basic/Diagnostic.h:340:12: note: candidate constructor not viable: no known conversion from 'cmonster::core::impl::IncludeLocatorDiagnosticClient *' to
      'clang::DiagnosticOptions *' for 2nd argument
  explicit DiagnosticsEngine(
           ^
/usr/local/include/clang/Basic/Diagnostic.h:131:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
      ^
src/cmonster/core/impl/include_locator_impl.cpp:185:36: error: no member named 'clone' in 'clang::DiagnosticConsumer'
        delegate.reset(m_delegate->clone(diags));
                       ~~~~~~~~~~  ^
4 errors generated.
error: command 'clang' failed with exit status 1

fbartho avatar Nov 17 '13 09:11 fbartho

@fbartho Thanks for reporting the failure.

You've probably gathered from the lack of updates in the last 2 years that I'm no longer working on this; I no long have a need, nor the time, for cmonster.

If you (or anyone else reading) are keen to fix the issue, it's probably best to fork the project. I'm unlikely to come back to this any time soon.

axw avatar Nov 17 '13 11:11 axw

@axw, @fbartho I have created a fork which compiles with the latest clang and llvm sources. At this point that is all I did to it, but I intend to further develop the project. https://github.com/sztomi/cmonster

sztomi avatar Jun 01 '14 18:06 sztomi

@sztomi Thanks for picking it up. I've linked to your fork at the top of the README in axw/cmonster.

axw avatar Jun 02 '14 00:06 axw

Thanks! Would you like me to change the name of the fork?

sztomi avatar Jun 02 '14 10:06 sztomi

@sztomi I think it's unlikely I'll pick this back up, so I'm fine with you keeping the name if you want to.

axw avatar Jun 02 '14 12:06 axw

@axw Thanks, I think I'll keep it then.

sztomi avatar Jun 02 '14 14:06 sztomi