Recent

Author Topic: "Compiling CFURL, checksum changed for file"  (Read 14822 times)

Bobarkinator

  • New Member
  • *
  • Posts: 10
"Compiling CFURL, checksum changed for file"
« on: May 11, 2012, 07:03:28 pm »
Hi there, I'm developing an application using objective pascal in Lazarus on 10.7. Having some problems. When I start a new project I'm able to use MacOSAll and CocoaAll just fine, without any errors. However when I try to include CocoaAll in my existing project and go to compile I get the error "Compiling CFURL, checksum changed for file", then I get the error "Fatal: Cannot find unit CFURL used by IconsCore". Has anyone else run into the problem before and knows a way to fix it? Or has any ideas that I could try?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: "Compiling CFURL, checksum changed for file"
« Reply #1 on: May 12, 2012, 08:18:26 am »
Such an error usually is caused by PPU version mix. In your case, while compiling CFURL, which uses another file xxx (Compiling CFURL, checksum changed for file xxx) the compiler finds that xxx either was compiled with different configuration/compiler version or the unit itself was changed.

Another possibility is that because (at least) one of your project's unit has the same name as one of the RTL/FCL/LCL/3rd party packages unit whose path is included in search path. To test, try running compiler options->test, a warning would be shown like: ppu existed twice bla bla bla...

Bobarkinator

  • New Member
  • *
  • Posts: 10
Re: "Compiling CFURL, checksum changed for file"
« Reply #2 on: May 12, 2012, 09:18:49 am »
I ran the test, found several files that it found 2 of. Should I delete the conflicting files or just take that line out of my compiling options?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: "Compiling CFURL, checksum changed for file"
« Reply #3 on: May 12, 2012, 04:51:26 pm »
If they're part of your projects, rename. Otherwise, recompile with -vt and post some of the latest lines (that includes your "recompiling CFURL bla bla bla").

Bobarkinator

  • New Member
  • *
  • Posts: 10
Re: "Compiling CFURL, checksum changed for file"
« Reply #4 on: May 12, 2012, 05:00:46 pm »
Well these are the only two messages shown when it's finished trying to compile

"Recompiling CFURL, checksum changed for files"
"/Users/williamcarey/Desktop/Simba/Units/MMLCore/os_mac.pas(1,1) Fatal: Can't find unit CFURL used by IconsCore"

Right before that however it stated it was searching for CFURL and it couldn't find it. So that could be my problem?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: "Compiling CFURL, checksum changed for file"
« Reply #5 on: May 12, 2012, 05:06:18 pm »
Quote
"Recompiling CFURL, checksum changed for files"
"/Users/williamcarey/Desktop/Simba/Units/MMLCore/os_mac.pas(1,1) Fatal: Can't find unit CFURL used by IconsCore"
If you compile with -vt, the compiler will show which files need to be recompiled. The "Can't find unit" error is due to the compiler being failed to find source code of the problematic unit to be recompiled.

Bobarkinator

  • New Member
  • *
  • Posts: 10
Re: "Compiling CFURL, checksum changed for file"
« Reply #6 on: May 14, 2012, 04:38:38 am »
I'm sorry, but that's not what I'm seeing. I've put the "-vt" switch in the custom options text box for my project options, but I'm not seeing anything telling me what needs to be recompiled. Just those 2 errors I posted before.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: "Compiling CFURL, checksum changed for file"
« Reply #7 on: May 14, 2012, 09:15:26 am »
Right click messages window->copy all and hidden messages

Bobarkinator

  • New Member
  • *
  • Posts: 10
Re: "Compiling CFURL, checksum changed for file"
« Reply #8 on: May 14, 2012, 03:20:28 pm »
Ok I did that, I got all the messages. I looked through it. When it gets to CFURL, it finds the ppu, then it starts looking for the pp, p, and pas files and it can't find them then it throws the error.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: "Compiling CFURL, checksum changed for file"
« Reply #9 on: May 14, 2012, 05:08:17 pm »
Scan through the lines after
Quote
Recompiling CFURL, checksum changed for file
see which file the compiler is trying to recompile.

Bobarkinator

  • New Member
  • *
  • Posts: 10
Re: "Compiling CFURL, checksum changed for file"
« Reply #10 on: May 14, 2012, 05:53:22 pm »
It doesn't mention which one it is. It goes directly from
Code: [Select]
Recompiling CFURL, checksum changed for filesto
Code: [Select]
/Users/williamcarey/Desktop/Simba/Units/MMLCore/os_mac.pas(1,1) Fatal: Can't find unit CFURL used by IconsCore

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: "Compiling CFURL, checksum changed for file"
« Reply #11 on: May 14, 2012, 07:20:46 pm »
Quote
It doesn't mention which one it is
Then I can help no further. I don't know what's wrong with your installation, but the error message should be something like:
Quote
Recompiling Graphics,   checksum changed for FPReadJPEG fpreadjpeg.pas(1,   1) Fatal: Can't find unit Graphics used by ImgList
In this case, it's clear that upon compiling Graphics, which uses FPReadJPEG, the compiler encounter FPReagJPEG has changed somehow and try to recompile it. However, since the compiler can't find the source, FPReadJPEG can't be recompiled, thus implying Graphics can't be recompiled as well. Causing the compilation to be aborted.

Bobarkinator

  • New Member
  • *
  • Posts: 10
Re: "Compiling CFURL, checksum changed for file"
« Reply #12 on: May 14, 2012, 07:22:52 pm »
Would it help to remove my FPC installation and try reinstalling it?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: "Compiling CFURL, checksum changed for file"
« Reply #13 on: May 15, 2012, 08:25:36 am »
My stupidity (facepalm) (faceslap), the problematic unit is "files". Do you have a unit named files.pas / files.pp / files.whatever?

Bobarkinator

  • New Member
  • *
  • Posts: 10
Re: "Compiling CFURL, checksum changed for file"
« Reply #14 on: May 15, 2012, 04:59:37 pm »
Aha, yes I do have a files.pas in my project. I need to rename that?

 

TinyPortal © 2005-2018