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

Возможно ошибка размещения llvm после последнего коммита #6

Closed
DmitryJustDmitry opened this issue Jul 28, 2022 · 2 comments

Comments

@DmitryJustDmitry
Copy link

Не получается запустить тестовый срипт сборки и анализа.

  1. Скрипт выглядит так:
from futag.preprocessor import *

json0_13 = Builder(
    "/Futag/futag-llvm-package/", # path to the futag-llvm-package
    "/Futag/json-c" # library root
)
json0_13.auto_build()
json0_13.analyze()
  1. Вот так выглядит структура каталогов после сборки llvm и установки futag посредством pip:
root@2bf92881f9c9:/Futag# pwd
/Futag
root@2bf92881f9c9:/Futag# tree -L 2 -d
.
|-- build
|   |-- CMakeFiles
|   |-- benchmarks
|   |-- bin
|   |-- cmake
|   |-- docs
|   |-- examples
|   |-- include
|   |-- lib
|   |-- libexec
|   |-- projects
|   |-- runtimes
|   |-- share
|   |-- test
|   |-- tools
|   |-- unittests
|   `-- utils
|-- custom-llvm
|   |-- clang
|   |-- compiler-rt
|   `-- llvm
|-- futag-llvm-package
|   |-- python
|   `-- svres-tmpl
|-- json-c
|   |-- apps
|   |-- bench
|   |-- cmake
|   |-- doc
|   |-- fuzz
|   `-- tests
|-- src
|   |-- Checkers
|   |-- clang
|   |-- python
|   `-- svres-tmpl
`-- vendors
    |-- deb-rdepend-downloader
    `-- json-3.10.5

39 directories
root@2bf92881f9c9:/Futag# ll
total 108
drwxr-xr-x  9 root root  4096 Jul 28 11:04 ./
drwxr-xr-x  1 root root  4096 Jul 28 10:45 ../
-rw-r--r--  1 root root 12288 Jul 28 11:04 .build.py.swp
drwxr-xr-x  8 root root  4096 Jul 28 10:45 .git/
-rw-r--r--  1 root root   203 Jul 28 10:45 .gitignore
-rw-r--r--  1 root root   417 Jul 28 10:45 CHANGELOG.md
-rw-r--r--  1 root root 35149 Jul 28 10:45 LICENSE
-rw-r--r--  1 root root  3718 Jul 28 10:45 README.en.md
-rw-r--r--  1 root root  6236 Jul 28 10:45 README.md
drwxr-xr-x 18 root root  4096 Jul 28 10:47 build/
-rw-r--r--  1 root root   199 Jul 28 11:04 build.py
drwxr-xr-x  5 root root  4096 Jul 28 10:46 custom-llvm/
drwxr-xr-x  4 root root  4096 Jul 28 10:51 futag-llvm-package/
drwxr-xr-x 10 root root  4096 Jul 28 10:52 json-c/
drwxr-xr-x  6 root root  4096 Jul 28 10:45 src/
drwxr-xr-x  4 root root  4096 Jul 28 10:45 vendors/
  1. При попытке запуска тестового скрипта (я назвал его build.py) выводится вот такая ошибка:
root@2bf92881f9c9:/Futag# python3 build.py
Traceback (most recent call last):
  File "build.py", line 3, in <module>
    json0_13 = Builder(
  File "/usr/local/lib/python3.8/dist-packages/futag/preprocessor.py", line 81, in __init__
    raise ValueError(INVALID_FUTAG_PATH, futag_llvm_package)
ValueError: ('-- [Futag]: Incorrect path to FUTAG llvm package', '/Futag/futag-llvm-package/')
  1. Пробовал "поиграть" путями - не смог подобрать пути, чтобы скрипт запустился.
@thientc
Copy link
Collaborator

thientc commented Jul 28, 2022

Я исправил в последнем коммите, проверьте пожалуйста!

@DmitryJustDmitry
Copy link
Author

Починилось!

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

No branches or pull requests

2 participants