Code Monkey home page Code Monkey logo

migration-advisor's People

Contributors

merjildo avatar rgdoliveira avatar thinkopenly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

migration-advisor's Issues

`builtins` checker is not running

$ ma run .
Could not find any problem related to decimal floating point (dfp) api
Could not find any problem related to integrated performance primitives (ipp) api
Looking for message passing interface (mpi) api problems in 1 suspect files.
Could not find any problem related to math kernel library (mkl) api
Looking for inline assembly problems in 1 suspect files.
Looking for char usage problems in 3 suspect files.
Could not find any problem related to hardware transactional memory (htm)
Could not find any problem related to long double usage
Could not find any problem related to performance degradation
Could not find any problem related to non portable pthread
Could not find any problem related to syscall usage
...

Note that it does not say:

Looking for x86-specific compiler built-in problems in 1 suspect files.

It also fails to run from the command line:

$ ma run -c builtins .

No migration reports found.

update dependencies

README.md says:

Requirements: python-pip, python-pylint, python-virtualenv, python-docsutil, clang

I just installed on Debian 9:

  • python-pylint is called pylint
  • is clang used, or just libclang? on Debian, this is called libclang1, but libclang.so is actually in libclang1-3.8-dev, which can be installed via the generic name libclang1-dev
  • I couldn't find python-docsutil, so skipped it... not seeing issues from skipping it

crashes and errors

Customer reported a crash (RHEL 7.8):

# ma run /path
Could not find any problem related to decimal floating point (dfp) api
Looking for integrated performance primitives (ipp) api problems in 157 suspect files.
Segmentation fault (core dumped)

I reproduced something similar (RHEL 8.2):

Looking for decimal floating point (dfp) api problems in 1 suspect files.
Traceback (most recent call last):
  File "/home/pc/.local/bin/ma", line 24, in <module>
    ma.main()
  File "/home/pc/.local/lib/python2.7/site-packages/ma/ma.py", line 166, in main
    controller.run(args)
  File "/home/pc/.local/lib/python2.7/site-packages/ma/controller.py", line 66, in run
    _run_checker(chk, argv)
  File "/home/pc/.local/lib/python2.7/site-packages/ma/controller.py", line 116, in _run_checker
    index = Index.create()
  File "/home/pc/.local/lib/python2.7/site-packages/clang/cindex.py", line 2698, in create
    return Index(conf.lib.clang_createIndex(excludeDecls, 0))
  File "/home/pc/.local/lib/python2.7/site-packages/clang/cindex.py", line 212, in __get__
    value = self.wrapped(instance)
  File "/home/pc/.local/lib/python2.7/site-packages/clang/cindex.py", line 4151, in lib
    register_functions(lib, not Config.compatibility_check)
  File "/home/pc/.local/lib/python2.7/site-packages/clang/cindex.py", line 4096, in register_functions
    register(f)
  File "/home/pc/.local/lib/python2.7/site-packages/clang/cindex.py", line 4091, in register
    return register_function(lib, item, ignore_errors)
  File "/home/pc/.local/lib/python2.7/site-packages/clang/cindex.py", line 4072, in register_function
    raise LibclangError(msg)
clang.cindex.LibclangError: /usr/lib64/libclangToolingSyntax.so.9: undefined symbol: clang_annotateTokens. Please ensure that your python bindings are compatible with your libclang.so version.

port to Python3

It looks like there are issues with how modules are imported, how requirements are handled in setup.py, maybe others.

Does not work on Ubuntu 18.04

$ ma run .
...
clang.cindex.LibclangError: libclang.so: cannot open shared object file: No such file or directory.

later versions of clang seem to parse code differently

$ rpm -q clang
clang-3.4.2-9.el7.ppc64le
$ ma run -c asm .
Looking for inline assembly problems in 1 suspect files.

================
Migration Report
================
Problem type: Inline assembly
Problem description: Possible arch specific assembly
   File: ./pmem.c
      Line: 309
      Problem: _mm_clwb((char *)uptr)

      Line: 329
      Problem: _mm_clflushopt((char *)uptr)
$ rpm -q clang
clang-8.0.1-1.module+el8.1.0+3866+6be7f4d8.ppc64le
$ ma run -c asm .
Looking for inline assembly problems in 1 suspect files.

No migration reports found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.