-
Notifications
You must be signed in to change notification settings - Fork 246
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
: flags : Seems not be seen from parser. What should do? #797
Comments
For linker you have another section under flags, test |
Hi @Letme, thank you for your reply.
I also tried:
but with the same result. The error it arises is:
where is my path /usr/lib/gcc .. etc. It seems that it does not see the symbols declared in the startup.s file, with is inside the source directory, so it should be seen by Ceedling. And It should be compiled by the "-x assembler-with-cpp" flag, thanks to the "flags" section. I know for sure that this source code with this flag works fine, since I'm able to compile it and flash onto the board, so the problem can't be in the source. The other problem is, as I wrote in the first post:
Which make me things that there is some issue here. |
Your error is linker based on the pasted output (the I do not know why linker would have filename as a flag. So have you tried:
|
Hi @Letme, Thank you for your message.
Yes, I also tried to use the : flags : section for linker, but nothing change. In general, however, I think the problem is that this source is not seen by compiler. I'm saiyng this because I have a CMakeList file in which are configurated all flag and setting in order to build the project, and the project works fine with it. And in the CMakeList I have this:
So with the : flags : setting I'm triyng to replicate it. Thanks |
Put |
Hi all,
I'm using ceedling for a project using STM32.
I'm using this configuration (Ony show up the relevant part of project.yml):
I'd like to using : flags : in order to compiling the startup_stm32xxx.s file with the flag -x assembler-with-cpp.
The file is in the path:
src/Builder/Startup_GCC/startup_stm32xxx.s
But it seems it not works.
The compilation works fine, but the linker not found some symbol defined in the file.
Then I made a simple test: I modified a little bit the syntax of the :flag: with random character like this:
And I was expected an error. This was just to verify that that part of code was correctly parsed, but nothing changed. The compilation proceeding well, and the linker fails.
So my question is: does the : flags : part works? Because it seems to be skipped. And what I should do?
Thanks to all!
The text was updated successfully, but these errors were encountered: