String Errors on Successful Compile? SUPPRESSING WARNINGS
Moderator: Benj
String Errors on Successful Compile? SUPPRESSING WARNINGS
Hello,
This does not prevent me from compiling, but it is strange and disturbing in a strangely disturbing kind of way
Are these from compile warnings?
Can I suppress these?
Thoughts?
This does not prevent me from compiling, but it is strange and disturbing in a strangely disturbing kind of way
Are these from compile warnings?
Can I suppress these?
Thoughts?
Last edited by jaynason on Thu Aug 23, 2012 2:35 pm, edited 2 times in total.
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: String Errors on Successful Compile?
Can you please post your program so that we can have a look what is going wrong?
Re: String Errors on Successful Compile?
Sure thing.Enamul wrote:Can you please post your program so that we can have a look what is going wrong?
(Disclaimer from our legal guys: These files are property of Emerson Apparatus Co., Inc. and may not be distributed in whole or in part.)
...
...
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: String Errors on Successful Compile?
Hi,
Which version FC_ARM you are using to compile the file? I don't have professional licence for compiling this file. I have tried with free version and I have received similar error as it will not allow me to simulate all components..In a quick look, it also seems to me it doesn't allow to compile string manipulation.
Which version FC_ARM you are using to compile the file? I don't have professional licence for compiling this file. I have tried with free version and I have received similar error as it will not allow me to simulate all components..In a quick look, it also seems to me it doesn't allow to compile string manipulation.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: String Errors on Successful Compile?
Hello,
I think I have found the problem for the errors and the bugs has already been fixed ready for the next update release.
For now you can apply the fix by downloading the attached file and copying it into your "Flowcode(ARM)\v5\CAL\ARM" folder.
I think I have found the problem for the errors and the bugs has already been fixed ready for the next update release.
For now you can apply the fix by downloading the attached file and copying it into your "Flowcode(ARM)\v5\CAL\ARM" folder.
- Attachments
-
- ARM_CAL_UART.c
- (21.17 KiB) Downloaded 245 times
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: String Errors on Successful Compile?
I am using FlowCode for ARM 5.3.0.0 professional
Benj, I have just recompiled (compile to HEX) with the patch provided in place and have 64 string errors reporting, while the compile log shows a successful compile.
The error list (shown) has not changed from the patch I received from David to this patch you provided above.
Thanks for looking into this.
Benj, I have just recompiled (compile to HEX) with the patch provided in place and have 64 string errors reporting, while the compile log shows a successful compile.
The error list (shown) has not changed from the patch I received from David to this patch you provided above.
Thanks for looking into this.
Last edited by jaynason on Thu Aug 23, 2012 12:03 pm, edited 1 time in total.
- JonnyW
- Posts: 1230
- Joined: Fri Oct 29, 2010 9:13 am
- Location: Matrix Multimedia Ltd
- Has thanked: 63 times
- Been thanked: 290 times
- Contact:
Re: String Errors on Successful Compile?
Hello. The issue is a bad phrasing of 'Errors' - maybe this should be 'Errors and Warnings', or 'Messages'.
Flowcode does not know what are errors from the compiler and what are warnings - all compilers output are the text and no two compilers have consistent output. All Flowcode sees is a message showing the C file name and a line number and assumes this is an error, so reports it. In future versions we may try to correct this and make the check more strict (it was suggested to only list errors if compilation fails, for example) but until then any warnings that output will be listed in this window. They may be ignored if the compilation succeeds.
The warnings are produced by volatile variables being passed as non-volatile arguments. There may be a GCC command line compiler option to turn this warning - or all warnings - off.
If you minimize this window hopefully it should not be too much in the way.
Cheers,
Jonny
Flowcode does not know what are errors from the compiler and what are warnings - all compilers output are the text and no two compilers have consistent output. All Flowcode sees is a message showing the C file name and a line number and assumes this is an error, so reports it. In future versions we may try to correct this and make the check more strict (it was suggested to only list errors if compilation fails, for example) but until then any warnings that output will be listed in this window. They may be ignored if the compilation succeeds.
The warnings are produced by volatile variables being passed as non-volatile arguments. There may be a GCC command line compiler option to turn this warning - or all warnings - off.
If you minimize this window hopefully it should not be too much in the way.
Cheers,
Jonny
Re: String Errors on Successful Compile?
thanks JonnyW I figured that was the case, as compiling was successful.
Definately interested in suppressing warnings.
After some research, I found the following:
in Flowcode(ARM)\v5\Tools\MX_bats\arm7comp.bat change
to
It seems to work, warnings are suppressed.
Please can you check this and make sure that is proper (I am not messing something up by doing this)?
Thanks!
Definately interested in suppressing warnings.
After some research, I found the following:
So, I tried the following:3.8 Options to Request or Suppress Warnings
Warnings are diagnostic messages that report constructions that are not inherently erroneous but that are risky or suggest there may have been an error.
The following language-independent options do not enable specific warnings but control the kinds of diagnostics produced by GCC.
-fsyntax-only
Check the code for syntax errors, but don't do anything beyond that.
-fmax-errors=n
Limits the maximum number of error messages to n, at which point GCC bails out rather than attempting to continue processing the source code. If n is 0 (the default), there is no limit on the number of error messages produced. If -Wfatal-errors is also specified, then -Wfatal-errors takes precedence over this option.
-w
Inhibit all warning messages.
-Werror
Make all warnings into errors.
-Werror=
Make the specified warning into an error. The specifier for a warning is appended, for example -Werror=switch turns the warnings controlled by -Wswitch into errors. This switch takes a negative form, to be used to negate -Werror for specific warnings, for example -Wno-error=switch makes -Wswitch warnings not be errors, even when -Werror is in effect.
The warning message for each controllable warning includes the option that controls the warning. That option can then be used with -Werror= and -Wno-error= as described above. (Printing of the option in the warning message can be disabled using the -fno-diagnostics-show-option flag.)
Note that specifying -Werror=foo automatically implies -Wfoo. However, -Wno-error=foo does not imply anything.
-Wfatal-errors
This option causes the compiler to abort compilation on the first error occurred rather than trying to keep going and printing further error messages.
in Flowcode(ARM)\v5\Tools\MX_bats\arm7comp.bat change
Code: Select all
@arm-elf-gcc -c -mcpu=arm7tdmi -Os -funsigned-char -I"%~dp0..\Global" -std=gnu99 -Wa,-aln=%1.lst %1.c -o %1.o
Code: Select all
@arm-elf-gcc -c -w -mcpu=arm7tdmi -Os -funsigned-char -I"%~dp0..\Global" -std=gnu99 -Wa,-aln=%1.lst %1.c -o %1.o
Please can you check this and make sure that is proper (I am not messing something up by doing this)?
Thanks!
- JonnyW
- Posts: 1230
- Joined: Fri Oct 29, 2010 9:13 am
- Location: Matrix Multimedia Ltd
- Has thanked: 63 times
- Been thanked: 290 times
- Contact:
Re: String Errors on Successful Compile?
I don't see what this could mess up, there is nothing in the exe and it should not affect compilation, just the compiler output. Warnings are cosmetic only.
Glad you got it sorted.
Jonny
Glad you got it sorted.
Jonny
Re: String Errors on Successful Compile?
Cheers all. thanks for the assist.
Suggestion: make this a compiler option in Flowcode "Suppress Warnings"
Suggestion: make this a compiler option in Flowcode "Suppress Warnings"