error when compiling with fc 10

Any bugs you encounter with Flowcode should be discussed here.
aderito
Posts: 22
http://meble-kuchenne.info.pl
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 13 times
Been thanked: 2 times

error when compiling with fc 10

Post by aderito »

Hello, I come here to present a problem that I am having when trying to compile a project that I have been developing for some time:

18f6722 4 temp 6 jan wireless V5HMI fcv10 .s:484558:: error: (876) syntax error
18f6722 4 temp 6 jan wireless V5HMI fcv10 .s:497121:: error: (876) syntax error
18f6722 4 temp 6 jan wireless V5HMI fcv10 .s:497132:: error: (876) syntax error
18f6722 4 temp 6 jan wireless V5HMI fcv10 .s:497137:: error: (876) syntax error
.

(908) exit status = 1

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1

Autoclose turned off


FINISHED

I still haven't been able to understand what is happening.....after reviewing everything several times when I go to compile....error!!
In desperation I took the same file and opened it in version 8 of flowcode and to my amazement it compiled without any problem.
So I come here to ask for help because I'm not getting away with it....
If I'm not mistaken, a few days ago there was an update to FC 10...... could this have something to do with it...?
Attachments
18f6722 4 temp 6 jan wireless V5HMI fcv10 .fcfx
(1.06 MiB) Downloaded 207 times

aderito
Posts: 22
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 13 times
Been thanked: 2 times

Re: error when compiling with fc 10

Post by aderito »

Hi guys, today I found something strange...
in some of the macros the calculation icons are empty..... :o :o
Attachments
Sem Título.png
Sem Título.png (242.17 KiB) Viewed 4912 times

Steve-Matrix
Matrix Staff
Posts: 1465
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 204 times
Been thanked: 347 times

Re: error when compiling with fc 10

Post by Steve-Matrix »

aderito wrote:
Mon Jun 10, 2024 9:11 am
Hi guys, today I found something strange...
in some of the macros the calculation icons are empty..... :o :o

Thanks for the report. This is a known issue. Please see here:
viewtopic.php?p=16083#p16083

aderito
Posts: 22
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 13 times
Been thanked: 2 times

Re: error when compiling with fc 10

Post by aderito »

Steve-Matrix wrote:
Mon Jun 10, 2024 9:42 am
aderito wrote:
Mon Jun 10, 2024 9:11 am
Hi guys, today I found something strange...
in some of the macros the calculation icons are empty..... :o :o

Thanks for the report. This is a known issue. Please see here:
viewtopic.php?p=16083#p16083
Thanks Steve, I'll try to fix it.

aderito
Posts: 22
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 13 times
Been thanked: 2 times

Re: error when compiling with fc 10

Post by aderito »

Just one more question: can the fact that the calculation icon is "empty" cause an error when compiling?

Steve-Matrix
Matrix Staff
Posts: 1465
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 204 times
Been thanked: 347 times

Re: error when compiling with fc 10

Post by Steve-Matrix »

aderito wrote:
Mon Jun 10, 2024 10:27 am
Just one more question: can the fact that the calculation icon is "empty" cause an error when compiling?

If you have opened a calculation icon and seen the text missing and then clicked "cancel" then the calculation within the icon will remain. But if you clicked "OK" then the calculation will be replaced with the blank text.

However, either situation should not cause an error when compiling. That is likely to be a different problem.

aderito
Posts: 22
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 13 times
Been thanked: 2 times

Re: error when compiling with fc 10

Post by aderito »

In the compiler messages, what do the following codes or numbers mean?
s:484558:
s:497121:
s:497132:
s:497137:
from what I understand,
(876) means: syntax error right?
Is there any relationship between these numbers and what can be seen when generating the c code through the button in flowcode?

Steve-Matrix
Matrix Staff
Posts: 1465
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 204 times
Been thanked: 347 times

Re: error when compiling with fc 10

Post by Steve-Matrix »

I assume those numbers refer to the character location in the *.s file where the error is actually being found. But not sure. (EDIT: it's actually the line numbers in the *.s file).

I've tried compiling your project multiple times (with different sets of component versions) and it compiles for me first time. So I'm unsure what is going wrong on your PC. I was compiling using v2.45 of the compiler toolchain.

If you attach the *.c, *.h, *.s and *.msg.txt files that are produced when you get the compilation error, we might be able to diagnose the problem. You may need to zip these up when attaching to a post here.

The location and filepath of your project could possibly cause an issue on your PC. One issue could be the length of the complete filepath. I would suggest renaming the file with a small name and putting it into a folder near the root of the disk (something like "C:\FCProj\MyProj") and trying to build your project when it is there.

I've also seen some tools object to filenames that begin with numbers, but I don't think that is a problem here because it compiles fine for me.

Another thing is some compiler toolchains are fussy and require the path to have an 8.3 format (either be like that anyway, or have an alternative 8.3 "short name" generated by the OS for names and paths that do not conform to the legacy 8.3 format). Some 'tuning' tools can turn off 8.3 file generation. You can check it exists by using "dir /x" from a command prompt.

aderito
Posts: 22
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 13 times
Been thanked: 2 times

Re: error when compiling with fc 10

Post by aderito »

Thanks Steve for taking the time to do this.
I'll follow your suggestions and see what happens.

aderito
Posts: 22
Joined: Sun Jan 29, 2023 12:49 pm
Location: portugal
Has thanked: 13 times
Been thanked: 2 times

Re: error when compiling with fc 10

Post by aderito »

Yesterday I compiled the project again but using version 8 of flowcode that I still have installed on my PC and with exactly the same designation it compiled without problems......

Post Reply