Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-09

compilation error of h2pas.pas on Mac OS X in the course of "make all" of the SVN sources

11 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dr. Rolf Jansen

since some days I am no more able to "make all" the latest and greatest fpc from SVN sources, because there are compilation errors for h2pas.pas.

Here comes a log of a session which reproduces the error:

PBRJ:~/Programmieren/Xcode/Pascal/fpc Rolf$ svn update At revision 1091.

PBRJ:~/Programmieren/Xcode/Pascal/fpc Rolf$ make all make compiler_cycle RELEASE=1
...
...
...
make -C h2pas all
/Users/Rolf/Programmieren/Xcode/Pascal/fpc/compiler/ppcppc -Ur -Xs - O1 -n -Sg -Fu/Users/Rolf/Programmieren/Xcode/Pascal/fpc/rtl/units/ powerpc-darwin -FE. -FUunits/powerpc-darwin -dpowerpc -dRELEASE h2pas.pas
h2pas.pas:5526:Fixup of 34988 too large for field width of 16 bits h2pas.pas:5502:Fixup of 35076 too large for field width of 16 bits h2pas.pas:5484:Fixup of 35140 too large for field width of 16 bits h2pas.pas:5444:Fixup of 35288 too large for field width of 16 bits h2pas.pas:5365:Fixup of 35580 too large for field width of 16 bits h2pas.pas:5363:Fixup of 35588 too large for field width of 16 bits h2pas.pas:5360:Fixup of 35600 too large for field width of 16 bits h2pas.pas(2879,15) Error: Error while assembling exitcode 1 h2pas.pas(2879,15) Fatal: There were 2 errors compiling module, stopping h2pas.pas(2879,15) Fatal: Compilation aborted
make[3]: *** [h2pas] Error 1
make[2]: *** [h2pas_all] Error 2
make[1]: *** [utils_all] Error 2
make: *** [build-stamp.powerpc-darwin] Error 2

I had a look at the source of h2pas.pas, but I found no obvious errors at the reported lines. Has anybody else experienced this problem, or might there be something wrong with my set up.

Any suggestions are welcome.

Best regards

Rolf

Reply by email

Jan Ruzicka
to Dr. Rolf Jansen

I have a same problem with "make all" in the root directory. it crashes on:
line 2890 "yya : array [1..yynacts] of YYARec = (" ...
line 5922 ");"

Attempts for "make all" in the "utils/h2pas/" directory bring errors for the yyg table.
yyg : array [1..yyngotos] of YYARec = (
line 5924 "yyg : array [1..yyngotos] of YYARec = (" ...

    line 6653 );

The error message is attached bellow.

Jan Ruzicka

Dr. Rolf Jansen wrote 49 lines
since some days I am no more able to "make all" the latest and greatest fpc from SVN sources, because there are compilation errors for h2pas.pas. Here comes a log of a session which reproduces the error: PBRJ:~/Programmieren/Xcode/Pascal/fpc Rolf$ svn update At revision 1091. PBRJ:~/Programmieren/Xcode/Pascal/fpc Rolf$ make all make compiler_cycle RELEASE=1 ... ... ... make -C h2pas all /Users/Rolf/Programmieren/Xcode/Pascal/fpc/compiler/ppcppc -Ur -Xs -O1 -n -Sg -Fu/Users/Rolf/Programmieren/Xcode/Pascal/fpc/rtl/units/powerpc-darwin -FE. -FUunits/powerpc-darwin -dpowerpc -dRELEASE h2pas.pas h2pas.pas:5526:Fixup of 34988 too large for field width of 16 bits h2pas.pas:5502:Fixup of 35076 too large for field width of 16 bits h2pas.pas:5484:Fixup of 35140 too large for field width of 16 bits h2pas.pas:5444:Fixup of 35288 too large for field width of 16 bits h2pas.pas:5365:Fixup of 35580 too large for field width of 16 bits h2pas.pas:5363:Fixup of 35588 too large for field width of 16 bits h2pas.pas:5360:Fixup of 35600 too large for field width of 16 bits h2pas.pas(2879,15) Error: Error while assembling exitcode 1 h2pas.pas(2879,15) Fatal: There were 2 errors compiling module, stopping h2pas.pas(2879,15) Fatal: Compilation aborted make[3]: *** [h2pas] Error 1 make[2]: *** [h2pas_all] Error 2 make[1]: *** [utils_all] Error 2 make: *** [build-stamp.powerpc-darwin] Error 2 I had a look at the source of h2pas.pas, but I found no obvious errors at the reported lines. Has anybody else experienced this problem, or might there be something wrong with my set up. Any suggestions are welcome. Best regards Rolf _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

-------------------------------------------------------------------- $ cd utils/h2pas/
$ make all
/usr/local/bin/ppcppc -Sg -Fu../../rtl/units/powerpc-darwin -FE. -FUunits/powerpc-darwin -dpowerpc h2pas.pas
Free Pascal Compiler version 2.0.0 [2005/05/13] for powerpc Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling h2pas.pas
Compiling options.pas
Assembling options
Compiling scan.pas
Compiling lexlib.pas
Assembling lexlib
Compiling yacclib.pas
Assembling yacclib
Compiling converu.pas
Assembling converu
scan.pas(250,6) Note: Local variable "i" not used
Assembling scan
Assembling h2pas
h2pas.pas:6011:Fixup of 36508 too large for field width of 16 bits h2pas.pas:6009:Fixup of 36496 too large for field width of 16 bits h2pas.pas:6007:Fixup of 36464 too large for field width of 16 bits h2pas.pas:6005:Fixup of 36372 too large for field width of 16 bits h2pas.pas:6003:Fixup of 36336 too large for field width of 16 bits h2pas.pas:6001:Fixup of 36304 too large for field width of 16 bits h2pas.pas:5999:Fixup of 36076 too large for field width of 16 bits h2pas.pas:5997:Fixup of 36020 too large for field width of 16 bits h2pas.pas:5995:Fixup of 35940 too large for field width of 16 bits h2pas.pas:5993:Fixup of 35928 too large for field width of 16 bits h2pas.pas:5991:Fixup of 35896 too large for field width of 16 bits h2pas.pas:5989:Fixup of 35820 too large for field width of 16 bits h2pas.pas:5987:Fixup of 35736 too large for field width of 16 bits h2pas.pas:5985:Fixup of 35652 too large for field width of 16 bits h2pas.pas:5983:Fixup of 35616 too large for field width of 16 bits h2pas.pas:5981:Fixup of 35492 too large for field width of 16 bits h2pas.pas:5979:Fixup of 35076 too large for field width of 16 bits h2pas.pas:5977:Fixup of 34960 too large for field width of 16 bits h2pas.pas:5975:Fixup of 34880 too large for field width of 16 bits h2pas.pas:5973:Fixup of 34720 too large for field width of 16 bits h2pas.pas:5971:Fixup of 34664 too large for field width of 16 bits h2pas.pas:5969:Fixup of 34608 too large for field width of 16 bits h2pas.pas:5967:Fixup of 34552 too large for field width of 16 bits h2pas.pas:5965:Fixup of 34468 too large for field width of 16 bits h2pas.pas:5963:Fixup of 34384 too large for field width of 16 bits h2pas.pas:5961:Fixup of 34348 too large for field width of 16 bits h2pas.pas:5959:Fixup of 34152 too large for field width of 16 bits h2pas.pas:5957:Fixup of 34120 too large for field width of 16 bits h2pas.pas:5955:Fixup of 34088 too large for field width of 16 bits h2pas.pas:5953:Fixup of 34076 too large for field width of 16 bits h2pas.pas:5951:Fixup of 34044 too large for field width of 16 bits h2pas.pas:5949:Fixup of 33960 too large for field width of 16 bits h2pas.pas:5947:Fixup of 33928 too large for field width of 16 bits h2pas.pas:5945:Fixup of 33760 too large for field width of 16 bits h2pas.pas:5943:Fixup of 33676 too large for field width of 16 bits h2pas.pas:5941:Fixup of 33592 too large for field width of 16 bits h2pas.pas:5939:Fixup of 33508 too large for field width of 16 bits h2pas.pas:5937:Fixup of 33424 too large for field width of 16 bits h2pas.pas:5935:Fixup of 33340 too large for field width of 16 bits h2pas.pas:5933:Fixup of 33256 too large for field width of 16 bits h2pas.pas:5931:Fixup of 33172 too large for field width of 16 bits h2pas.pas:5929:Fixup of 33088 too large for field width of 16 bits h2pas.pas:5927:Fixup of 33004 too large for field width of 16 bits h2pas.pas:5925:Fixup of 32920 too large for field width of 16 bits h2pas.pas:5923:Fixup of 32836 too large for field width of 16 bits h2pas.pas:5677:Fixup of 37904 too large for field width of 16 bits h2pas.pas:5674:Fixup of 37916 too large for field width of 16 bits h2pas.pas(8762,1) Error: Error while assembling exitcode 1 h2pas.pas(8762,1) Fatal: There were 2 errors compiling module, stopping h2pas.pas(8762,1) Error: Compilation aborted
make: *** [h2pas] Error 1

Reply by email

Florian Klämpfl
to Dr. Rolf Jansen: since some days I am no more able to "make all" the latest and greatest fpc from SVN…
Dr. Rolf Jansen wrote 37 lines
since some days I am no more able to "make all" the latest and greatest fpc from SVN sources, because there are compilation errors for h2pas.pas. Here comes a log of a session which reproduces the error: PBRJ:~/Programmieren/Xcode/Pascal/fpc Rolf$ svn update At revision 1091. PBRJ:~/Programmieren/Xcode/Pascal/fpc Rolf$ make all make compiler_cycle RELEASE=1 ... ... ... make -C h2pas all /Users/Rolf/Programmieren/Xcode/Pascal/fpc/compiler/ppcppc -Ur -Xs - O1 -n -Sg -Fu/Users/Rolf/Programmieren/Xcode/Pascal/fpc/rtl/units/ powerpc-darwin -FE. -FUunits/powerpc-darwin -dpowerpc -dRELEASE h2pas.pas h2pas.pas:5526:Fixup of 34988 too large for field width of 16 bits h2pas.pas:5502:Fixup of 35076 too large for field width of 16 bits h2pas.pas:5484:Fixup of 35140 too large for field width of 16 bits h2pas.pas:5444:Fixup of 35288 too large for field width of 16 bits h2pas.pas:5365:Fixup of 35580 too large for field width of 16 bits h2pas.pas:5363:Fixup of 35588 too large for field width of 16 bits h2pas.pas:5360:Fixup of 35600 too large for field width of 16 bits h2pas.pas(2879,15) Error: Error while assembling exitcode 1 h2pas.pas(2879,15) Fatal: There were 2 errors compiling module, stopping h2pas.pas(2879,15) Fatal: Compilation aborted make[3]: *** [h2pas] Error 1 make[2]: *** [h2pas_all] Error 2 make[1]: *** [utils_all] Error 2 make: *** [build-stamp.powerpc-darwin] Error 2 I had a look at the source of h2pas.pas, but I found no obvious errors at the reported lines. Has anybody else experienced this problem, or might there be something wrong with my set up. Any suggestions are welcome.

This is a known problem, it's a bug in the powerpc code generator, Jonas is already working on it afaik.

Background: h2pas.pas is generated by yacc from h2pas.y and generates a huge procedure which a real programmer would never create, that's why it poped up so late.

Reply by email

Jan Ruzicka
to Florian Klämpfl

Hi

Is there any workaround to make the FPC compile on darwin? Is there any way I can help?

Thanks

Jan

Florian Klämpfl wrote 47 lines
Dr. Rolf Jansen wrote: > since some days I am no more able to "make all" the latest and > greatest fpc from SVN sources, because there are compilation errors > for h2pas.pas. > Here comes a log of a session which reproduces the error: > PBRJ:~/Programmieren/Xcode/Pascal/fpc Rolf$ svn update > At revision 1091. > PBRJ:~/Programmieren/Xcode/Pascal/fpc Rolf$ make all > make compiler_cycle RELEASE=1 > ... > ... > ... > make -C h2pas all > /Users/Rolf/Programmieren/Xcode/Pascal/fpc/compiler/ppcppc -Ur -Xs - > O1 -n -Sg -Fu/Users/Rolf/Programmieren/Xcode/Pascal/fpc/rtl/units/ > powerpc-darwin -FE. -FUunits/powerpc-darwin -dpowerpc -dRELEASE > h2pas.pas > h2pas.pas:5526:Fixup of 34988 too large for field width of 16 bits > h2pas.pas:5502:Fixup of 35076 too large for field width of 16 bits > h2pas.pas:5484:Fixup of 35140 too large for field width of 16 bits > h2pas.pas:5444:Fixup of 35288 too large for field width of 16 bits > h2pas.pas:5365:Fixup of 35580 too large for field width of 16 bits > h2pas.pas:5363:Fixup of 35588 too large for field width of 16 bits > h2pas.pas:5360:Fixup of 35600 too large for field width of 16 bits > h2pas.pas(2879,15) Error: Error while assembling exitcode 1 > h2pas.pas(2879,15) Fatal: There were 2 errors compiling module, > stopping > h2pas.pas(2879,15) Fatal: Compilation aborted > make[3]: *** [h2pas] Error 1 > make[2]: *** [h2pas_all] Error 2 > make[1]: *** [utils_all] Error 2 > make: *** [build-stamp.powerpc-darwin] Error 2 > I had a look at the source of h2pas.pas, but I found no obvious > errors at the reported lines. Has anybody else experienced this > problem, or might there be something wrong with my set up. > Any suggestions are welcome. This is a known problem, it's a bug in the powerpc code generator, Jonas is already working on it afaik. Background: h2pas.pas is generated by yacc from h2pas.y and generates a huge procedure which a real programmer would never create, that's why it poped up so late. _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Dr. Karl-Michael Schindler
to Jan Ruzicka

Dear Jan,

Jan Ruzicka wrote
Hi Is there any workaround to make the FPC compile on darwin?

You can "manually" split the procedure yyaction, which is too long, into two and call the procedures in dependence of the parameter yyruleno. example:

rename procedure yyaction to procedure yyaction1

add the split at 100:

99 : begin

          if not stripinfo then
          writeln(outfile,'(* Warning : default value for ',yyv
[yysp-2]^.p,' ignored *)');
          hp:=new(presobject,init_one(t_default_value,yyv[yysp-0]));
          yyval:=new(presobject,init_three(t_dec,nil,yyv[yysp-2],hp));
        end;
   end;
end(*yyaction1*);
procedure yyaction2 ( yyruleno : Integer );
   (* local definitions: *)
begin
   (* actions: *)
   case yyruleno of
  100 : begin

and replace the call of yyaction(-yyn) (somewhere around line 8500 ) by:

   if -yyn < 100 then
       yyaction1(-yyn)
   else
     yyaction2(-yyn);
Is there any way I can help?

Probably not. It is a "Jonas Maebe class of problem" and he is working on it.

Show quoted text 11 lines
Thanks Jan On Sep 17, 2005, at 05:34, Florian Klämpfl wrote: > Dr. Rolf Jansen wrote: > >> since some days I am no more able to "make all" the latest and >> greatest fpc from SVN sources, because there are compilation >> errors for h2pas.pas.

snip snap

Show quoted text 8 lines
>> Any suggestions are welcome. > > This is a known problem, it's a bug in the powerpc code generator, > Jonas is already working on it afaik. > > Background: h2pas.pas is generated by yacc from h2pas.y and > generates a huge procedure which a real programmer would never > create, that's why it poped up so late.

Reply by email

Jonas Maebe
to Dr. Rolf Jansen: since some days I am no more able to "make all" the latest and greatest fpc from SVN…
Dr. Rolf Jansen wrote 16 lines
powerpc-darwin -dpowerpc -dRELEASE h2pas.pas h2pas.pas:5526:Fixup of 34988 too large for field width of 16 bits h2pas.pas:5502:Fixup of 35076 too large for field width of 16 bits h2pas.pas:5484:Fixup of 35140 too large for field width of 16 bits h2pas.pas:5444:Fixup of 35288 too large for field width of 16 bits h2pas.pas:5365:Fixup of 35580 too large for field width of 16 bits h2pas.pas:5363:Fixup of 35588 too large for field width of 16 bits h2pas.pas:5360:Fixup of 35600 too large for field width of 16 bits h2pas.pas(2879,15) Error: Error while assembling exitcode 1 h2pas.pas(2879,15) Fatal: There were 2 errors compiling module, stopping h2pas.pas(2879,15) Fatal: Compilation aborted make[3]: *** [h2pas] Error 1 make[2]: *** [h2pas_all] Error 2 make[1]: *** [utils_all] Error 2 make: *** [build-stamp.powerpc-darwin] Error 2

(Finally) fixed.

Jonas

Reply by email

Paul Davidson
to Jonas Maebe

Darwin.
Checked out revision 1162.

cutils.pas(1203) Error: Can't create assembler file: powerpc/units/powerpc-darwin/cutils.s
cutils.pas(36,17) Fatal: There were 1 errors compiling module, stopping cutils.pas(157,19) Fatal: Compilation aborted
make[5]: *** [ppcppc] Error 1

P Davidson
Corax Networks Inc.
http://CoraxNetworks.com

IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to which it is addressed. The message may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify Corax Networks immediately by email at Thank you.

Reply by email

Jonas Maebe
to Paul Davidson
Paul Davidson wrote 9 lines
Darwin. Checked out revision 1162. cutils.pas(1203) Error: Can't create assembler file: powerpc/units/ powerpc-darwin/cutils.s cutils.pas(36,17) Fatal: There were 1 errors compiling module, stopping cutils.pas(157,19) Fatal: Compilation aborted make[5]: *** [ppcppc] Error 1

That probably means that the directory powerpc/units/powerpc-darwin does not exist. It should be automatically created by the Makefile (at least the units/powerpc-darwin part) if you use "make all" in the fpc dir or "make cycle" in the fpc/compiler dir.

Jonas

Reply by email

Paul Davidson
to Jonas Maebe

....fpc/compiler/powerpc/units/powerpc-darwin does exist.

Jonas Maebe wrote 26 lines
On 23 sep 2005, at 13:04, Paul Davidson wrote: > Darwin. > Checked out revision 1162. > > cutils.pas(1203) Error: Can't create assembler file: > powerpc/units/powerpc-darwin/cutils.s > cutils.pas(36,17) Fatal: There were 1 errors compiling module, > stopping > cutils.pas(157,19) Fatal: Compilation aborted > make[5]: *** [ppcppc] Error 1 That probably means that the directory powerpc/units/powerpc-darwin does not exist. It should be automatically created by the Makefile (at least the units/powerpc-darwin part) if you use "make all" in the fpc dir or "make cycle" in the fpc/compiler dir. Jonas _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

P Davidson

Reply by email

Paul Davidson
to Paul Davidson

Trashed and rebuild from fresh svn. All is well.
Error may have been permissions corruption?

Thanks Jonas :)

Paul Davidson wrote 38 lines
....fpc/compiler/powerpc/units/powerpc-darwin does exist. On Sep 23, 2005, at 7:10, Jonas Maebe wrote: > > On 23 sep 2005, at 13:04, Paul Davidson wrote: > >> Darwin. >> Checked out revision 1162. >> >> cutils.pas(1203) Error: Can't create assembler file: >> powerpc/units/powerpc-darwin/cutils.s >> cutils.pas(36,17) Fatal: There were 1 errors compiling module, >> stopping >> cutils.pas(157,19) Fatal: Compilation aborted >> make[5]: *** [ppcppc] Error 1 > > That probably means that the directory powerpc/units/powerpc-darwin > does not exist. It should be automatically created by the Makefile > (at least the units/powerpc-darwin part) if you use "make all" in the > fpc dir or "make cycle" in the fpc/compiler dir. > > > Jonas > > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel > > P Davidson _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

P Davidson

Reply by email