Recent

Author Topic: [Solved]Cannot build x86_64 compiler with fpcup.  (Read 4732 times)

parcel

  • Full Member
  • ***
  • Posts: 143
[Solved]Cannot build x86_64 compiler with fpcup.
« on: April 15, 2013, 04:12:37 am »
Code: [Select]
C:/development/fpcbootstrap/rm.exe -f ppcrossx64.exe
C:/development/fpcbootstrap/gmkdir.exe -p x86_64/units/i386-win32
C:/development/fpc/compiler/ppc.exe -Ur -Xs -O2 -n -Fux86_64 -Fusystems -FuC:/de
velopment/fpc/rtl/units/i386-win32 -Fix86_64 -FE. -FUx86_64/units/i386-win32 -dR
ELEASE    -dx86_64 -dGDB -dBROWSERLOG -Fux86 -Sew pp.pas
pinline.pas(361,38) Error: Ordinal expression expected
pinline.pas(363,42) Error: Ordinal expression expected
pinline.pas(632) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make.exe[3]: *** [ppcrossx64.exe] Error 1
make.exe[3]: Leaving directory `C:/development/fpc/compiler'
make.exe[2]: *** [cycle] Error 2
make.exe[2]: Leaving directory `C:/development/fpc/compiler'
make.exe[1]: *** [compiler_cycle] Error 2
make.exe[1]: Leaving directory `C:/development/fpc'
C:\development\fpcbootstrap\make.exe: *** [build-stamp.x86_64-win64] Error 2
C:\development\fpcbootstrap\make.exe: Leaving directory `C:/development/fpc'
Info: 2013-04-15 10:30:13: fpcup finished.
An unhandled exception occurred at $004057C1:
EAccessViolation: Access violation

After FPC trunk r24241, fpcup cannot build x86_64 cross compiler.

There is a two error, it may caused by r24241.

http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=24241

Is it compiler problem?

« Last Edit: April 17, 2013, 03:28:53 am by parcel »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Cannot build x86_64 compiler with fpcup.
« Reply #1 on: April 15, 2013, 07:07:33 am »
Looks like a problem in the source (as opposed to fpcup), yes.

To make sure you're not dealing with stale ppus (a problem with fpmake), you can delete all ppus, .a, and .o files etc as indicated by the help message.
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

parcel

  • Full Member
  • ***
  • Posts: 143
Re: Cannot build x86_64 compiler with fpcup.
« Reply #2 on: April 15, 2013, 10:45:01 am »
I tried again, failed.

Code: [Select]
360 found:=false;
361 for i:=0 to high(variantdesc^.branches) do <--- Error
362 begin
363 for j:=0 to high(variantdesc^.branches[i].values) do <--- Error
364 if variantdesc^.branches[i].values[j]=tordconstnode(p2).value then
365 begin
366 found:=true;
367 variantselectsymbol:=tfieldvarsym(variantdesc^.variantselector);

It maybe compiler didn't recognize
Code: [Select]
variantdesc^.branches and
Code: [Select]
variantdesc^.branches[i].values as array types or something wrong.  :-\


martinrame

  • Full Member
  • ***
  • Posts: 121
Re: Cannot build x86_64 compiler with fpcup.
« Reply #3 on: April 15, 2013, 07:47:05 pm »
I can confirm this can be reproduced with bootstrapping versions 2.6.0 and 2.6.2.

Does anyone filled this issue in Mantins?.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Cannot build x86_64 compiler with fpcup.
« Reply #4 on: April 16, 2013, 07:32:37 am »
Note: if somebody enters this issue as a bug in mantis, please make sure you can replicate the problem using regular make distclean all etc as fpcup is not part of fpc and is not supported by them.

That said, lately there was a bug in 64 bit windows fpc that was discovered by using fpcup... and solved by the fpc/Laz guys.
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

parcel

  • Full Member
  • ***
  • Posts: 143
Re: Cannot build x86_64 compiler with fpcup.
« Reply #5 on: April 17, 2013, 03:28:23 am »
It is fixed at 24260.  :)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: [Solved]Cannot build x86_64 compiler with fpcup.
« Reply #6 on: April 17, 2013, 07:51:51 am »
Great - thanks for posting that.
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