Lỗi cant find unit system used by program free pascal năm 2024

Discussion:

fp looks for a unit System ?

(too old to reply)

[apologises for possibly wrong english] Hi, there

I've installed FreePascal 2.2.0 in my linux home, and I have fp in my PATH. I wish to run gavrasm, an assembler program for AVR microcontrollers (http://www.avr-asm-tutorial.net/gavrasm/index_de.html), but I can't make it to be compiled. Whenever I lauch fp within gavrasm top source tree or within freepascal installation dir, I've got the same error message:

Fatal : can't find unit System used by gavrasm.

Could somebody tell me what's fp exactly looking for, an how could I help it in getting it ?

-- Antonin

I've installed FreePascal 2.2.0 in my linux home, and I have fp in my PATH. I wish to run gavrasm, an assembler program for AVR microcontrollers (http://www.avr-asm-tutorial.net/gavrasm/index_de.html), but I can't make it to be compiled. Whenever I lauch fp within gavrasm top source tree or within freepascal installation dir, I've got the same error Fatal : can't find unit System used by gavrasm. Could somebody tell me what's fp exactly looking for, an how could I help it in getting it ?

Two possibilities: - clean your project directory of .ppu's and .o's from previous versions. - configure the path to the rtl in the textmode IDE's options ->directories ->units tab.

The unit paths you have to enter are (depending on exact distribution)

/usr/lib/fpc/2.2.0/units/i386-linux/* /usr/lib/fpc/2.2.0/units/i386-linux/

Some linux/unix distro's install in /usr/local/lib/.. instead of /usr/lib/.. though, check this first. (so once with, and once without asterisk)

Hello Marco

- clean your project directory of .ppu's and .o's - configure the path to the rtl in the textmode IDE's options ->directories ->units tab. Some linux/unix distro's install in /usr/local/lib/.. instead of /usr/lib/.. though, check this first. (so once with, and once without asterisk)

Thanks a lot. As it is installed in my homedir, the units dir have been found in $(HOME)/fpc-2.2.0/lib/fpc/2.2.0/units/i386-linux/ The dir could not be picked up by mouse click neither cut/pasted in the fpc IDE, so I mispelled it a bit before having it right. Oh, finally I've edited fp.cfg while fp was off... I had to remove once more all the .ppu's and .o's before fpc ran, as you suggested.

Now avrasm runs : thanks again.

-- Antonin

Hello Marco

- clean your project directory of .ppu's and .o's - configure the path to the rtl in the textmode IDE's options ->directories ->units tab. Some linux/unix distro's install in /usr/local/lib/.. instead of /usr/lib/.. though, check this first. (so once with, and once without asterisk)

Thanks a lot. As it is installed in my homedir, the units dir have been found in $(HOME)/fpc-2.2.0/lib/fpc/2.2.0/units/i386-linux/ The dir could not be picked up by mouse click neither cut/pasted in the fpc IDE, so I mispelled it a bit before having it right. Oh, finally I've edited fp.cfg while fp was off... I had to remove once more all the .ppu's and .o's before fpc ran, as you suggested.

Now gavrasm runs : thanks again.

-- Antonin

Thanks a lot. As it is installed in my homedir, the units dir have been found in $(HOME)/fpc-2.2.0/lib/fpc/2.2.0/units/i386-linux/ The dir could not be picked up by mouse click neither cut/pasted in the fpc IDE, so I mispelled it a bit before having it right. Oh, finally I've edited fp.cfg while fp was off... I had to remove once more all the .ppu's and .o's before fpc ran, as you suggested. Now gavrasm runs : thanks again.

IIRC the problem is that for textmode-apps-in-terminals you can either allow cut and pasting by mouse, or use the mouse to drive the menues. The IDE choose the latter iirc.

On Oct 26, 5:43 pm, "Antonin.de.jardin"

[apologises for possibly wrong english] Hi, there I've installed FreePascal 2.2.0 in my linux home, and I have fp in my PATH. I wish to run gavrasm, an assembler program for AVR microcontrollers (http://www.avr-asm-tutorial.net/gavrasm/index_de.html), but I can't make it to be compiled. Whenever I lauch fp within gavrasm top source tree or within freepascal installation dir, I've got the same error Fatal : can't find unit System used by gavrasm. Could somebody tell me what's fp exactly looking for, an how could I help it in getting it ? -- Antonin

Thanks for the link and tips. Is there a discussion group for this ? I know of AVRfreaks and the Basic and C compiler, but FreePascal use is new to me. Rick.

Thanks for the link and tips. Is there a discussion group for this ? I know of AVRfreaks and the Basic and C compiler, but FreePascal use is new to me.

http://www.freepascal.org/maillist.var

Jonas

Thanks for the link and tips. Is there a discussion group for this ? I know of AVRfreaks and the Basic and C compiler, but FreePascal use is new to me.

http://www.freepascal.org/maillist.var Jonas

I've been going through the gavrasm source. So far just the program file, matching begin..ends, indenting, commenting. Very important software, and should be maintained.

I don't know how it compiles properly, anyway. For example; some case...else statements seem to use improper syntax. The concluding else part is followed by multiple statements without the begin..end blocking. This is different from fpc and tp railroad diagrams.

Also, I don't know why the crt unit is used, especially on linux. Same with the sysutils unit.

That being said, very important software. Pascal really shines for text processing.

Loading...