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

compile error #45

Closed
turbin opened this issue Apr 7, 2020 · 4 comments
Closed

compile error #45

turbin opened this issue Apr 7, 2020 · 4 comments

Comments

@turbin
Copy link

turbin commented Apr 7, 2020

I like this project. I met a error when I try to config it, as type:
'python ./configure.py --backend auto'
then an error was reported on the screen, as:

pi@FRE-Raspberrypi:~/NNPACK-darknet$ python ./configure.py --backend auto
Detected root directory: /home/pi/NNPACK-darknet
/usr/local/lib/python2.7/dist-packages/confu/manifest.py:36: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  manifest_yaml = yaml.load(manifest_text)
Configuring dependency pthreadpool
Configuring dependency fxdiv
Configuring dependency googletest
Configuring dependency googlebenchmark
Traceback (most recent call last):
  File "./configure.py", line 396, in <module>
    main(sys.argv[1:]).generate()
  File "./configure.py", line 36, in main
    (build.deps.pthreadpool, build.deps.fxdiv, build.deps.fp16): any,
  File "/usr/local/lib/python2.7/dist-packages/confu/builds/deps.py", line 48, in __getattr__
    config = configure.main(["--target", self._target])
  File "/home/pi/NNPACK-darknet/deps/pthreadpool/configure.py", line 20, in main
    build.static_library("pthreadpool", [build.cc(src) for src in sources])
  File "/usr/local/lib/python2.7/dist-packages/confu/builds/unix.py", line 72, in cc
    return self._compile("cc", source_path)
  File "/usr/local/lib/python2.7/dist-packages/confu/builds/unix.py", line 56, in _compile
    source_path = validate_source_path(source_path, self.source_dir)
  File "/usr/local/lib/python2.7/dist-packages/confu/validators.py", line 67, in validate_source_path
    .format(source_path=source_path))
ValueError: Specified source file /home/pi/NNPACK-darknet/deps/pthreadpool/src/threadpool-legacy.c does not exist

any idea about this?

@weiweijeff
Copy link

weiweijeff commented Apr 7, 2020 via email

@turbin
Copy link
Author

turbin commented Apr 7, 2020

this issue was not relative to the version of python. I have figured out the reason, because the author of the project ptheadpool was refactoring those code and rename all of files, but forgetting to update the config.py file in new version. I try to revert the repo in a specified version then re-compile the whole project then the issue was solved.

@turbin turbin closed this as completed Apr 7, 2020
@alxhoff
Copy link

alxhoff commented Apr 11, 2020

@turbin I am having this same problem right now. To which commit did you roll back to for pthreadpool?

@alxhoff
Copy link

alxhoff commented Apr 11, 2020

nvm. Found it. Thanks for the save!

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

3 participants