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

Community 2020 : build_rts.py bug #26

Closed
NicoPy opened this issue Jun 5, 2020 · 3 comments
Closed

Community 2020 : build_rts.py bug #26

NicoPy opened this issue Jun 5, 2020 · 3 comments

Comments

@NicoPy
Copy link

NicoPy commented Jun 5, 2020

There is a bug in build_rts.py at line 273.
This line content is os.path.relpath(dest, os.getcwd())).
This code works only when the bb-runtimes sources are located on the same drive letter than the GNAT arm compiler.
In my case, I work in the z drive while the compiler is installed in the c drive.
I get the following error :

Traceback (most recent call last):
  File "build_rts.py", line 277, in <module>
    main()
  File "build_rts.py", line 273, in main
    os.path.relpath(dest, os.getcwd()))
  File "c:\python38\lib\ntpath.py", line 703, in relpath
    raise ValueError("path is on mount %r, start on mount %r" % (
ValueError: path is on mount 'c:', start on mount 'Z:'

Please note that this error happens at the very end of the script while printing a successful message. So this has no impact on the build process.

One simple solution is to replace

    print("runtimes successfully installed in %s" %
          os.path.relpath(dest, os.getcwd()))

with

    print("runtimes successfully installed in %s" % dest)
@Fabien-Chouteau
Copy link
Member

Hi @NicoPy,

Thank you for the report, we will probably use your solution.

@Fabien-Chouteau
Copy link
Member

This is now fixed.

Thank you @NicoPy

@NicoPy
Copy link
Author

NicoPy commented Jun 8, 2020

Thanks @Fabien-Chouteau.

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