closed

Loginbox

Please enter your username and password into the following fields to log in.


  • Username:
  • Password:
  •  
  • Auto log in on every visit.


  •  

Internal Compiler Error in UFAT16.PCU



sine_wave offline
Benutzer
Avatar
Gender: n/a
Location: n/a 
Age: 52
Posts: 7
Registered: 10 / 2022
Private message
Subject: Internal Compiler Error in UFAT16.PCU  -  Posted: 26.10.2022 - 20:18   -  
Hallo,

ich habe ein altes Projekt, welches in einer frühen Version 4.93.00 einwandfrei übersetzbar ist. Nun bin ich auf einem anderen PC gleich auf die aktuelle Version 5.11.00 umgestiegen. Die Übersetzung des gleichen Programms liefert jedoch ein Fenster mit der Fehlerausgabe:

internal compiler error
Line: 1 file: cprogram files(x86)avrcoavrcoSystemUFAT16.PCU

[Abort]

Kann das jemand nachvollziehen?

Viele Grüße
Alois
go down go up
Merlin offline
Administrator
Avatar
Gender: male
Location: UNITED KINGDOM 
Age:
Posts: 1276
Registered: 03 / 2005
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 26.10.2022 - 20:34   -  
Hi Alois

The current online version is 5.11.15.

Did you try that?

Merlin
Merlin.

:magic:

Software is a black art.
go down go up
sine_wave offline
Benutzer
Avatar
Gender: n/a
Location: n/a 
Age: 52
Posts: 7
Registered: 10 / 2022
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 09:32   -  
Hello Merlin,

Thank you for your help.

I just updated to the version 5.11.15 and tried to re-compile. The error window is still popping up, but the error message shows more detail:

Internal compiler error "File access denied"
Line: 1 file: cprogram files(x86)avrcoavrcoSystemUFAT16.PCU
[Abort]

I also tried the demo "FAT16test". The error is the same.

I do can open the file UFAT16.PCU with an editor, that means, it is readable at least this way.

Alois
go down go up
Merlin offline
Administrator
Avatar
Gender: male
Location: UNITED KINGDOM 
Age:
Posts: 1276
Registered: 03 / 2005
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 09:48   -  
OK, that probably means that the file access is locked, depending on how you downloaded it.

Go to file manage and open the directory c:program files(x86)avrcoSystem

Hold down the shift key and right click in a blank space in the directory, then in the context menu select Open Powershell window here

Copy/paste the following command and press Enter:

dir | Unblock-File

If you just need to unblock this PCU you can right click on it, select properties and click 'unblock'.

Hope that helps

Merlin.
Merlin.

:magic:

Software is a black art.
go down go up
sine_wave offline
Benutzer
Avatar
Gender: n/a
Location: n/a 
Age: 52
Posts: 7
Registered: 10 / 2022
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 10:39   -  
Hello Merlin,

It seems, that my Windows 7 Pro does not support the "Unblock-File" command in the power shell. Nor there is an entry "unblock" in the properties menu after right-clicking the file.

Alois
go down go up
Merlin offline
Administrator
Avatar
Gender: male
Location: UNITED KINGDOM 
Age:
Posts: 1276
Registered: 03 / 2005
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 11:10   -  
Ah, I assumed that you were on Windows 10.

Also I did not read your text properly - sorry :-(

I know its a bit corny to say switch off and switch back on, but sometimes an editor can lock a file until you do that. You say that you can open it in a editor, so it is possible, I guess to lock it that way. The other possibility is that the pcu has been created more recently. PCU files created with the current version of the compiler cannot be loaded, but I did not think that there were any such PCUs in the download. Old PCU files do load OK.

Let me know how you get on.

Merlin.
Merlin.

:magic:

Software is a black art.
go down go up
sine_wave offline
Benutzer
Avatar
Gender: n/a
Location: n/a 
Age: 52
Posts: 7
Registered: 10 / 2022
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 12:10   -  
After a full restart of the computer, the problem remains the same. Btw, I try the stock demo "FAT16test".

Tried the following tests:
1. Changing the file name UFAT16.PCU into UFAT16.orig.PCU -> compiler says that UFAT16.pas was not found. That means, the search path is correct.

2. Tried another demo TINA_ENC_UDP: There is also an error:

Internal compiler error "File access denied"
Line: 1 file: cprogram files(x86)avrcoavrcoSystemTINA.PCU
[Abort]

I would interprete this behaviour, as the read access to the folder, where the PCU's are stored is not working. But, all files and folders to this is readable for the normal user according to the NTFS file attributes.

Alois
go down go up
sine_wave offline
Benutzer
Avatar
Gender: n/a
Location: n/a 
Age: 52
Posts: 7
Registered: 10 / 2022
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 12:24   -  
Could you check what file attributes your PCU's and the folders have at your computer - beginning at root C:

I have:

[x] read, execute
[x] read
[x] read folder contents <-- for the folders

Alois
go down go up
sine_wave offline
Benutzer
Avatar
Gender: n/a
Location: n/a 
Age: 52
Posts: 7
Registered: 10 / 2022
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 13:18   -  
Hello Merlin,

I found a work-around. Copied the file UFAT16.PCU into the local project folder (where the .pas file is), and the compiler runs without error.

This is the proof, that the PCU files are somehow not accessable for the compiler. I have no good experience with NTFS and Windows in general, but once the file attribute "read" is activated for a file and in all folder names in the path, I would expect that it to be readable.

Alois
go down go up
Merlin offline
Administrator
Avatar
Gender: male
Location: UNITED KINGDOM 
Age:
Posts: 1276
Registered: 03 / 2005
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 14:50   -  
Hi Alois.

I wonder if there is an attempt to build a temporary file in the System folder? Windows would not like that. I will investigate. Thank you for bringing it to my attention.

Merlin.
Merlin.

:magic:

Software is a black art.
go down go up
sine_wave offline
Benutzer
Avatar
Gender: n/a
Location: n/a 
Age: 52
Posts: 7
Registered: 10 / 2022
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 15:33   -  
Hello Merlin,

I can live with the work-around for now. But if there is something I can assist, let me know, we can find out toghether. What I wonder is, does the problem exist in general, or only here at my Win7 computer?

Alois
go down go up
Merlin offline
Administrator
Avatar
Gender: male
Location: UNITED KINGDOM 
Age:
Posts: 1276
Registered: 03 / 2005
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 27.10.2022 - 16:23   -  
Hi Alois

Thanks for the offer. I may take you up on it.

Permissions are very complicated and it may well depend on how windows is configured and what your permissions are.

The intention for Windows 7 onward was that files created by the user would reside in a subdirectory of the documents folder and that the program folders were reserved for, well, programs. That I think was relaxed a little for windows 10 because it caused problems for earlier programs like AvrCo. I think running the PED in compatibility mode might make a difference too.

Please don’t change the way you work yet. I would like to test any fix I might find on your machine where I know that the current method fails.

Thanks

Merlin
Merlin.

:magic:

Software is a black art.
go down go up
Merlin offline
Administrator
Avatar
Gender: male
Location: UNITED KINGDOM 
Age:
Posts: 1276
Registered: 03 / 2005
Private message
Subject: Re: Internal Compiler Error in UFAT16.PCU  -  Posted: 02.11.2022 - 17:07   -  
Hi Alois.

I checked if a temporary file is created. It is not. So that cannot be the issue.

I also checked my permissions. For my system I have it set up for full control of everything. But I am also set up as a system administrator.

Regards

Merlin
Merlin.

:magic:

Software is a black art.
go down go up
 


Registered users in this topic
Currently no registered users in this section

Delete cookies of this forum  •  FAQ / Help  •  Team page  •  Imprint   |  Local time: 29.11.2022 - 18:01