Recent

Author Topic: [Solved] Can't compile fpc trunk  (Read 5142 times)

v.denis

  • Guest
[Solved] Can't compile fpc trunk
« on: September 10, 2013, 02:36:54 pm »
Seems related to

http://bugs.freepascal.org/view.php?id=24985

Can't compile fpc trunk recently.

I'm not sure what can I do about it?
« Last Edit: September 10, 2013, 06:39:56 pm by v.denis »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11455
  • FPC developer.
Re: Can't compile fpc trunk
« Reply #1 on: September 10, 2013, 04:59:04 pm »
Here it works. What revision, what branch, what error, what commandline?

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Can't compile fpc trunk
« Reply #2 on: September 10, 2013, 05:29:53 pm »
and... What operating system?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

v.denis

  • Guest
Re: Can't compile fpc trunk
« Reply #3 on: September 10, 2013, 05:39:54 pm »
I get following

Quote
Target OS: Win32 for i386
Compiling pp.pas
Compiling globals.pas
Compiling cutils.pas
Compiling constexp.pas
Compiling cclasses.pas
Compiling globtype.pas
Compiling cstreams.pas
Compiling cfileutl.pas
Compiling systems.pas
Compiling comphook.pas
Compiling finput.pas
Compiling comphook.pas
Compiling globals.pas
Compiling .\i386\cpuinfo.pas
Compiling version.pas
cfileutl.pas(272,34) Error: Identifier not found "TRawByteSearchRec"
cfileutl.pas(272,34) Error: Error in type definition
cfileutl.pas(277,98) Error: Call by var for arg no. 3 has to match exactly: Got "<erroneous type>" expected "TSearchRec"
cfileutl.pas(280,24) Error: Illegal qualifier
cfileutl.pas(281,24) Error: Illegal qualifier
cfileutl.pas(282,24) Error: Illegal qualifier
cfileutl.pas(287,23) Error: Illegal qualifier
cfileutl.pas(287,33) Error: Illegal qualifier
cfileutl.pas(292,46) Error: Illegal qualifier
cfileutl.pas(293,42) Error: Illegal qualifier
cfileutl.pas(294,56) Error: Illegal qualifier
cfileutl.pas(297,54) Error: Illegal qualifier
cfileutl.pas(297,79) Error: Illegal qualifier
cfileutl.pas(299,46) Error: Illegal qualifier
cfileutl.pas(299,70) Error: Illegal qualifier
cfileutl.pas(301,31) Error: Call by var for arg no. 1 has to match exactly: Got "<erroneous type>" expected "TSearchRec"
cfileutl.pas(302,26) Error: Call by var for arg no. 1 has to match exactly: Got "<erroneous type>" expected "TSearchRec"
cfileutl.pas(1577) Fatal: There were 17 errors compiling module, stopping
Fatal: Compilation aborted

Command line is like:

make clean all (trying to make compiler only)

OS is Win 8 x64 (WOW64), but it shouldn't be problem I guess

I think it started after revision 25432 (merged cpstrrtl branch (includes unicode branch))
« Last Edit: September 10, 2013, 05:45:37 pm by v.denis »

v.denis

  • Guest
Re: Can't compile fpc trunk
« Reply #4 on: September 10, 2013, 05:47:01 pm »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can't compile fpc trunk
« Reply #5 on: September 10, 2013, 06:01:16 pm »
What starting compiler version (most trunk compiling problems usually starts from this)?

v.denis

  • Guest
Re: Can't compile fpc trunk
« Reply #6 on: September 10, 2013, 06:04:13 pm »
looks like

fpc.exe
Free Pascal Compiler version 2.7.1 [2013/08/21] for i386

also

ppc386.exe (in binutils)
Free Pascal Compiler version 2.7.1 [2013/05/16] for i386
« Last Edit: September 10, 2013, 06:10:37 pm by v.denis »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can't compile fpc trunk
« Reply #7 on: September 10, 2013, 06:16:40 pm »
Just as I expected :)
Remember this general rule for compiling fpc trunk: THE ONLY supported starting compiler is the latest STABLE release, which means in this case is 2.6.2 (2.6.0 might be OK as well, since the difference is only at patch level). When you're able to compile with previous trunk, it's a lucky shot.

v.denis

  • Guest
Re: Can't compile fpc trunk
« Reply #8 on: September 10, 2013, 06:21:09 pm »
Oh.  :)

I compiled few months like this. Now grabbed 2.6.2 bootstrap ppc386
« Last Edit: September 10, 2013, 06:31:58 pm by v.denis »

v.denis

  • Guest
Re: Can't compile fpc trunk
« Reply #9 on: September 10, 2013, 06:32:24 pm »
Now it compiled.

Thanks

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Can't compile fpc trunk
« Reply #10 on: September 10, 2013, 06:53:39 pm »
OS is Win 8 x64 (WOW64), but it shouldn't be problem I guess
Because FPC code differs for each OS, mention the OS *is* important.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018