Recent

Author Topic: (Solved) Illegal parameter: CpPENTIUM2  (Read 3361 times)

billb2050

  • Newbie
  • Posts: 5
(Solved) Illegal parameter: CpPENTIUM2
« on: December 23, 2023, 10:23:36 pm »
I saw that Lazarus 3.0 was available. So I installed it from the debs and wrote a simple Lazarus program. And I got "Error: Illegal parameter: CpPENTIUM2" when I tried to run it. I  tried to find some pentium option in the IDE, but didn't see any. So I grepped "PENTIUM2"and found and removed it from project1.compiled and project1.lpi. It then compiled and ran. Where is this option coming from? How do I change/remove it?
« Last Edit: December 28, 2023, 12:11:24 pm by billb2050 »

BSaidus

  • Hero Member
  • *****
  • Posts: 611
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: Error: Illegal parameter: CpPENTIUM2
« Reply #1 on: December 23, 2023, 10:26:35 pm »
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

billb2050

  • Newbie
  • Posts: 5
Re: Error: Illegal parameter: CpPENTIUM2
« Reply #2 on: December 25, 2023, 03:26:55 pm »
I have updated to v3.0 and it didn't fix the problem. This is a new project. And I've set no options. I only pressed the green play triangle. If I remove '<TargetProcessor Value="pentium2"/>' from the LPI...it runs fine!

tetrastes

  • Hero Member
  • *****
  • Posts: 640
Re: Error: Illegal parameter: CpPENTIUM2
« Reply #3 on: December 25, 2023, 08:35:04 pm »
Did you delete ~/.lazarus folder before running new Lazarus?

billb2050

  • Newbie
  • Posts: 5
(Solved) Error: Illegal parameter: CpPENTIUM2
« Reply #4 on: December 28, 2023, 11:03:42 am »
That worked. Thank you!

olev

  • Newbie
  • Posts: 1
Re: (Solved) Illegal parameter: CpPENTIUM2
« Reply #5 on: March 23, 2025, 06:30:01 pm »
Hello!
I thought that maybe my problem does not need a thread of it's own.
Because I'm a newbie here, the problem may be trivial, but nevertheless it is a problem :)
I want a Z80 cross-assembler for Windows. After some research I found ZDevStudio, which is written in Lazarus. Being acquainted with Pascal almist 50 years, I liked that.
So I installed Lazarus IDE (v. 3.8), downloaded ZDevStudio, and tried to build it.

And got error message:

Error: Illegal parameter: CpPENTIUM3

The "CpPENTIUM3" sits in the file ZDevstudio.compiled. And I have no idea what to do with it. Please advice.
(Also, please excuse my English, I am an Estonian).

TRon

  • Hero Member
  • *****
  • Posts: 4296
Re: (Solved) Illegal parameter: CpPENTIUM2
« Reply #6 on: March 23, 2025, 07:09:21 pm »
I thought that maybe my problem does not need a thread of it's own.
If you do then please do not do it to a thread that is already marked as solved (unless it adds something useful to the original discussion That is common courtesy, no matter the subject.

Quote
Because I'm a newbie here, the problem may be trivial, but nevertheless it is a problem :)
It is and it isn't. The error itself is simply a configuration option in the project options but that will not be able to solve all other issues.

This project is over a decade old and was compiled/developed with Lazarus 0.9.28.2 and Free Pascal 2.2.4. I am not even able to run these anymore on my Linux machine and the component used in the project have changed so much that it requires quite an extensive list of fixes to be able to build again..

In case you wish to pursue then please consider opening a thread of your own as nothing you are going to experience has any relation to the original topic.

BTW, welcome to the forums  :)
« Last Edit: March 23, 2025, 07:11:50 pm by TRon »
Today is tomorrow's yesterday.

Thaddy

  • Hero Member
  • *****
  • Posts: 16783
  • Ceterum censeo Trump esse delendam
Re: (Solved) Illegal parameter: CpPENTIUM2
« Reply #7 on: March 24, 2025, 08:49:22 am »
@olev
You are building a cross compiler and a Z80 is not a pentium.
« Last Edit: March 24, 2025, 08:51:50 am by Thaddy »
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5936
  • Compiler Developer
Re: (Solved) Illegal parameter: CpPENTIUM2
« Reply #8 on: March 24, 2025, 09:03:12 pm »
The "CpPENTIUM3" sits in the file ZDevstudio.compiled. And I have no idea what to do with it. Please advice.
(Also, please excuse my English, I am an Estonian).

In the Project Settings in the Configuration and Targets pane reset the Target Processor option to its default value.

 

TinyPortal © 2005-2018