Comments (8)
Hello @rveenker
This error message “Could not locate gnatls” is definitely unexpected. It looks like GPS ignores the Target project attributes, which could mean that it’s an old GPS release. Can you check you are using the latest release? You can do it with the following command (and here’s the expected output):
$ gps --version
GPS 2016 (20160515) hosted on x86_64-pc-linux-gnu
cf_ada_spark.gpr uses the old way to work with cross toolchains, so it’s expected that an old GPS works with it and not with “new” GPR features such as Target attributes.
Thank you in advance,
from ada_drivers_library.
Yes I can confirm that my GPS is the latest release. I just got this response:
$ gps --version
GPS 2016 (20160515) hosted on i686-pc-linux-gnu
But what I find strange is that the certyflie project does not suffer from this.
from ada_drivers_library.
Just found that when I remove the project files that I don't need from the directory and leave for instance just draw_stm32f429disco.gpr, I can open the project from the file manager by double-clicking.
Also the runtime help (show the Ada runtime packages) seems to work now although I still get the gnatls message.
from ada_drivers_library.
Ok, thank you for the extra details. As I don’t use a file manager myself, I tried to run GPS with the following command to immitate it:
$ gps draw_stm32f429disco.gpr
As a result, GPS indeed opens the GPR file as a source file and loads the default project. I don’t get the gnatls
error message, though, but I assume that’s because I also installed GNAT for x86_64-linux
(which provides a gnatls
program). Anyway I think that’s kind of expected for GPS: in order to load project X.gpr
, one must run:
$ gps -P X.gpr
… which correctly loads X.gpr as a project and which properly sets the arm-eabi
target.
I think I understand why you don’t have this problem with the Certyflie project file: when launched without a -P
argument, GPS will automatically load the project file in the current directory only if there is exactly one project file there. That also explains why removing all project files you don’t need solves your issue.
Anyway, project files in this repository are fine: it’s rather a GPS issue. :-)
from ada_drivers_library.
I am getting the same issue when I try to run install_dependencies.py:
Traceback (most recent call last):
File "/Users/bob/Projects/Repos/NXP_LPC1768/Ada_Drivers_Library/repo/scripts/./install_dependencies.py", line 77, in
os.path.join(os.path.dirname(shutil.which("arm-eabi-gnatls")),
File "/usr/local/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
from ada_drivers_library.
@Joebeazelman do you have arm-eabi-gnatls
in your PATH?
from ada_drivers_library.
Probably not. I use ALR to manage my toolchain for me. I just use ALR toolchain --select. Does ALR require the project folder to have some sort of initialization?
from ada_drivers_library.
This Ada_Drivers_Library repository is not made to be use with Alire yet.
You have to set a compiler in path before you run the script, that's why it is failing.
from ada_drivers_library.
Related Issues (20)
- FE310-specific performance counters HOT 1
- install_dependencies.py appears to be broken HOT 2
- Some examples do not build HOT 6
- Support LSM303AGR for newer micro:bit hardware revisions HOT 1
- Target not found for Micro:Bit with Debian Linux HOT 3
- Project Wizard doesn't generate startup files HOT 3
- Include directions in examples/README.md to have compatible versions of bb-runtimes and compiler
- Support for Adafruit Feather M0 board HOT 3
- mma8653 initialization fails on MicroBit HOT 21
- EXAMPLES: Installing run-time dependencies fails with both Python 2 and Python 3 on Linux HOT 2
- Make HAL packages preelaborable HOT 1
- I2C HAL ideas HOT 15
- Many warnings with GCC 12 HOT 2
- RISC-V requires "zicsr" ISA extension to build with FSF GNAT 12.1.1 HOT 11
- IO expander MCP23x08 reports GPIO mode always as Output HOT 1
- Support for STM32F411CEU6 board HOT 1
- Extension zicsr required in HiFive1_rev_B board
- Microbit.Time resets the board
- How to get the toolchain up and running? HOT 15
- Compiler crash with pragma Ada_2022 on body HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ada_drivers_library.