Build the IDE fails
Original Reporter info from Mantis: mmvisual
-
Reporter name: Markus Müller
Original Reporter info from Mantis: mmvisual
- Reporter name: Markus Müller
Description:
After installation from a new Lazarus 2.0.6 the command "Tools" > "Build Lazarus with profile..." fails with the error in the "Message:
Build IDE: Exit code 2, Errors: 1
Fatal: Unable to open file C:UsersmmAppDataLocallazarusidemake.cfg -dx86_64
I have find out the mistake why lazarus cannot build itself and a solution for you to implement/correction.
Steps to reproduce:
- Unzip the "WinARM_Bin.zip" into a new folder (there are old make tools from an other program)
- Add this folder to the system PATH variable
- Logout and login again
- Install Lazarus V2.0.6
- Menu from Lazarus: "Tools" > "Build Lazarus with profile..."
Additional information:
Lazarus do not use the self installed make tool at first rank, so the make use old files where do not work correct with lazarus. With this 2 changes the lazarus build process works right:
-
The file "sh.exe" is missing after the installation from lazarus:
C:\lazarus\fpc\3.0.4\bin\x86_64-win64
This tool need make itself and older "sh.exe" do not work correctly with lazarus.
Hint: FpcUpDeluxe download itself a correct version from this tool an use it. -
In the makefile is the search sequenze to find the files in a bad order and the file "sh.exe" is not searched.
I have correct this and change build from SEARCHPATH to fill first the from lazarus installed folder, then add the PATH.
At second search the correct "sh.exe" into MAKESHELL and if found set the SHELL variable
BUT: when I do this change manually in the makefile, the build process from lazarus do not work, I thing Lazarus use a other makefile or build a makefile for his self build process.
For testing which files the make system will use try this command in the command line:
C:\lazarus>.\fpc\3.0.4\bin\x86_64-win64\make fpc_baseinfo
For testing where do the system want find a file you can try this command:
C:\lazarus>WHERE sh.exe
Mantis conversion info:
- Mantis ID: 36261
- OS: Windows
- Build: 62129
- Version: 2.0.6
- Fixed in revision: 62207 (#e7b92f57).
- Monitored by: » mmvisual (Markus Müller)