New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find unit Graphics used by IntfGraphics (Lazarus Upgrade) #504
Comments
Tried to upgrade my FPC/Lazarus install on another system, and received a very similar error message: fpcupdeluxe: info: Lazarus native builder: Detected source version Lazarus: 2.2.0 The first system I did this on was running Windows 11, btw. But this second system is running Windows 10 (like all my other systems). |
I need to clarify that these were not clean installs, but were upgrades over earlier FPCupDeluxe installs of earlier, functional versions of FPC/Lazarus. The previous x64 installation contained the following: With Windows x86, and Linux/Arm cross-compiles. I just tried a new install to a different folder, with the same config as above, and it did work. I had to copy back some of my configuration files (I ultimately renamed the folders of the new install and old install to make the migration easier). I'm going to verify this with one more of my machines, and then I'll likely close the ticket if it works, but I would love to know why it failed the first time, and if there was a different way around it. |
Uninstalling cross-compilers and then upgrading also works Win 8.1E x64, same issue |
Awesome. I'm going to try that in the morning. Thanks for that response. |
Thanks for trying to pinpoint this issue ! |
Well, I got busy for a few days... I tried by first uninstalling both cross-compilers, then trying to install just Lazarus. Still didn't work, but the error is different. |
This did not work for me on my machine. Right now, I have three systems running FPC/Lazarus. I have one system (LAPTOP) which works, but where I did the following:
I have one system (this primary one, DESKTOP) where I am still using the older build (pre Git) And I have the test system (DESKTOP) where I have tried a variety of things including:
I will play with this for a few more days -- maybe a week -- and then I will just use the method I did on the first machine. And if it works (which I fully expect), then I will do it on my primary machine also. (Follow-up) |
Thanks for your update. |
Fair enough, but what do you propose as the next step. While I know how to get around the problem one time, what I am now seeing is that even after the first fix, I am unable to upgrade any longer... |
That hasn't been as helpful for me. I have, however, seen better outcomes by doing the following:
Slow, but has worked twice now. I'm about to try it with the instance that has been untouched so far. |
I finally tried to tackle the FPC/Lazarus install on my last (primary) system, and this is what I get all day for the Lazarus upgrade portion... . ERROR: Fpcupdeluxe fatal error ! |
Still having this issue... Everything is going well until: C:/Programs/Lazarus.Fixes/fpc/bin/x86_64-win64/fpc.exe -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -dLCL -dLCLnogui -Fu../../packager/units/x86_64-win64 -Fu../lazutils/lib/x86_64-win64 -Fu../freetype/lib/x86_64-win64 -Fu../../lcl/units/x86_64-win64 -Fu../../lcl/units/x86_64-win64/nogui -Fu. -FuC:/Programs/Lazarus.Fixes/fpcsrc/rtl -FE. -FUlib/x86_64-win64/nogui -vw-n-h-l-d-u-t-p-c- -g -gl -dx86_64 lazcontrols.pas ERROR: Fpcupdeluxe fatal error ! |
I ran the following command manually, and it generated errors until I did two things: C:\Programs\Lazarus.Fixes\fpc\bin\x86_64-win64\fpc.exe -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -dLCL -dLCLnogui -Fu....\packager\units\x86_64-win64 -Fu..\lazutils\lib\x86_64-win64 -Fu..\freetype\lib\x86_64-win64 -Fu....\lcl\units\x86_64-win64 -Fu....\lcl\units\x86_64-win64\nogui -Fu. -FuC:\Programs\Lazarus.Fixes\fpcsrc\rtl -FE. -FUlib\x86_64-win64\nogui -vw-n-h-l-d-u-t-p-c- -g -gl -dx86_64 lazcontrols.pas
|
I believe I have found the issue. Not sure why it happens in an upgrade scenario, but not a new install into a clean folder. |
Here is the output at the command point, with both the old command and the new command... |
Hey, @LongDirtyAnimAlf, have you had any time to take a peek at the last few posts? |
No. Sorry. |
Hi Don, Sorry to hear about your current situation. Please get well soon. |
I am back. |
Hi Don, This link outlines where I found the error: For reasons I cannot decipher, it seems like it ignores key components in an upgrade vs a new install. |
Hi Don, I tried to use 2.2.0j-prerelease, and I am still getting the same issue if I try to install both FPC/Lazarus at the same time. FPC updates to FIXES level okay by itself.
Lazarus gives the same error as before if I try to install 2.2.2 by itself.
|
I cannot reproduce unfortunately. |
Yes, I was able to do that when testing as well. But, once I add back the components I was using from before, the next upgrade doesn't work again. I'll verify that this still happens with one of my installs. (I have to keep at least one of them working, so I only have two to test with.) Is there a place where I can upload to you the install folder (compressed) as it now is, to aid in the troubleshooting? |
Here's what I get when I run 2.2.0j, with Fixes/Fixes on a machine (my #2 system) that had also initial issue, but for which I resolved by doing a clean build and then installing needed components again.
Something about the issue continues to linger underneath... I can successfully update FPC alone to Fixes level, but Lazarus won't do it afterwards. |
I am closing this issue due to the fact that its not something that can be solved by fpcupdeluxe. |
After a break to deal with some other things, I put some more effort into testing this, and I started making progress when I searched for each problematic .pas file and deleted it. I don't know why I had so many historical files in there, but I finally deleted all .pas files in the destination, prior to Oct 2022, and then ran the install again. It finally worked flawlessly. Not sure what made it break all of a sudden back in Feb, when I've been updating it steadily for a couple years now, but getting rid of all the old .pas files in the destination appears to have totally resolved the issue for me. |
I am using version 2.2.0i of FPCupDeluxe, and I cannot get any version of Lazarus to install.
I have gotten FPC 3.2.0, 3.2.2 and fixes-3.2 to install successful (by themselves)
But, trying to install Lazarus fixes failed.
-- so did 2.2.0
-- so did 2.3.0
-- so did fixes-2.0
-- so did fixes-2.2
The Lazarus installs all fail with the following:
fpcupdeluxe: info: LazarusNativeInstaller (GetModule: Lazarus): Lazarus was at revision/hash: lazarus_2_2_0-0-g4d49533f10
fpcupdeluxe: info: LazarusNativeInstaller (GetModule: Lazarus): Lazarus is now at revision/hash: lazarus_2_2_0-64-gff329cf453
fpcupdeluxe: info: Lazarus native builder: Detected source version Lazarus: 2.2.0
fpcupdeluxe: info: Lazarus native builder: Using FPC compiler with version: 3.2.3
fpcupdeluxe: Start of compile error summary.
Fatal: (10022) Can't find unit Graphics used by IntfGraphics
(10028) Recompiling Graphics, checksum changed for C:\Programs\Lazarus.Fixes\lazarus\components\lazutils\lib\x86_64-win64\graphmath.ppu
fpcupdeluxe: Start of compile error summary.
Fatal: (1018) Compilation aborted
Fatal: (10022) Can't find unit Graphics used by IntfGraphics
fpcupdeluxe: Start of compile error summary.
Error: C:\Programs\Lazarus.Fixes\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
fpcupdeluxe: Start of compile error summary.
fpcupdeluxe: ERROR: LazarusNativeInstaller (BuildModuleCustom: Lazbuild): make.exe returned exit status #2
fpcupdeluxe: Done !!
I renamed the PPU file mentioned above, and tried it again, and received the very same error.
The text was updated successfully, but these errors were encountered: