Hello,
Today I updated my GIT copy of FPC, and after I try to make it and install, I got this error:
Until last week everything was normal.
Thank you!

Mailing lists / fpc-pascal / 2013-05
14 messages · 7 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello,
Today I updated my GIT copy of FPC, and after I try to make it and install, I got this error:
Until last week everything was normal.
Thank you!
Are you building with 2.7.1?
If so, try building with 2.6.2. (don't ask me why, but it worked for me)
2013/5/15 Ewald
Are you building with 2.7.1? If so, try building with 2.6.2. (don't ask me why, but it worked for me)
Yes, I'm trying with 2.7.1. :(
Use the top level FPC Makefile, remove OVERRIDEVERSIONCHECK=1 from your make invocation if you are using it (and never add it back), and follow the instructions you get. Alternatively, have a look at the links in http://lists.freepascal.org/lists/fpc-pascal/2011-October/030881.html
Jonas
2013/5/15 Jonas Maebe
But I dont added it, please see:
Makefile:2704: *** The only supported starting compiler version is 2.6.2. You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to use OVERRIDEVERSIONCHECK=1 to override . Stop.
So I'm usgin only "make clean all" and after "sudo make install PREFIX=/usr".
Ok, so follow those instructions. If you do not understand them, please tell us what is unclear about them so we can clarify them.
Jonas
2013/5/15 Jonas Maebe But I dont added it, please see: Makefile:2704: *** The only…
what about the second sentence of that error message?
"You are trying to build with 2.7.1."
that's the problem... you have to build it with 2.6.2...
In our previous episode, waldo kitty said:
Personally, I think mentioning OVERRIDEVERSIONCHECK is the problem. Whatever you write as text, people will only read that.
The message should refer to a boringly long FAQ item, with the mention of overrideversioncheck only mentioned inline in text in the last line.
In this case it's not, since he wasn't using that. I don't mind the change you propose though.
Jonas
In our previous episode, waldo kitty said: Personally, I think mentioning…
agreed... i really wanted to leave it out of my previous suggested rewrite of the error message but i didn't...
The message should refer to a boringly long FAQ item, with the mention of overrideversioncheck only mentioned inline in text in the last line.
agreed^2 :)
Makefile:2704: *** The /only/ supported starting compiler is 2.6.2. You are trying to build with 2.7.1. You CANNOT do this! See this FAQ: http://some.domain.somewhere/FAQ/why-cant-i-compile-FPC.html
O:)
Today I updated my GIT copy of FPC, and after I try to make it and install, I got this…
Same problem here but much funnier FPC message:
Makefile:2704: *** The only supported starting compiler version is 2.7.1. You are trying to build with 2.6.2. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to use OVERRIDEVERSIONCHECK=1 to override . Stop.
So I had to use OVERRIDEVERSIONCHECK=1 to build my 2.7.1 with 2.6.2. IMHO that's not as intended. But it may be a problem of the create_fpc_deb script provided by Lazarus so from my side there is no need for any actions. Just wanted to share that funny message.
R.
It is indeed a bug in Lazarus' build scripts (also for the rpms). For some reason they first replace a bunch of version numbers in the Makefile.
Jonas
For the rpm scripts it was fixed some months ago.
I fixed it now for the deb scripts too.
For some reason they first replace a bunch of version numbers in the Makefile.
In the past the version numbers in the Makefiles were not always updated.
Mattias
2013/5/17 Mattias Gaertner
Thank you very much!