[fpc-devel] Compilation error

2012-04-07 Thread Vincent Snijders
Hi,

When I compile fpc trunk for arm-wince on win32 I get this error:
[ 93%] Skipped package uuid which has been disabled for target arm-wince
Start compiling package winceunits for target arm-wince.
Warning: Source file activex.pp from package winceunits not found
for arm-wince
   Compiling ..\winunits-base\src\comobj.pp
The installer encountered the following error:
External command
c:/lazarus/source/fpcbuild/trunk/fpcsrc/compiler/ppcrossarm.exe
-Twince -FUunits\arm-wince
-FuC:\lazarus\source\fpcbuild\trunk\fpcsrc\rtl\units\arm-wince -Twince
-Parm -XParm-wince- -Xr -Ur -Xs -O2 -n
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/rtl/units/arm-wince
-FDc:\lazarus\source\binutils\arm-wince -darm -dRELEASE -Ur -viq
..\winunits-base\src\comobj.pp failed with exit code 1. Console
output:
Target OS: WinCE for ARM
Compiling ..\winunits-base\src\comobj.pp
Fatal: Can't open file comobj.pp
Fatal: Compilation aborted

I don't why this happens. How can I fix this?

Vincent
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Compilation error

2012-04-07 Thread Marco van de Voort
In our previous episode, Vincent Snijders said:
 -FDc:\lazarus\source\binutils\arm-wince -darm -dRELEASE -Ur -viq
 ..\winunits-base\src\comobj.pp failed with exit code 1. Console
 output:
 Target OS: WinCE for ARM
 Compiling ..\winunits-base\src\comobj.pp
 Fatal: Can't open file comobj.pp
 Fatal: Compilation aborted
 
 I don't why this happens. How can I fix this?

I don't know this error, but I just saw your bugreport, so there are
multiple people on multiple targets having the problem.

I saw that Pierre regenerated all makefiles yesterday evening. (r20723),
maybe that was done with an outdated tool or so.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Compilation error

2012-04-07 Thread Jonas Maebe

On 07 Apr 2012, at 12:19, Marco van de Voort wrote:

 I saw that Pierre regenerated all makefiles yesterday evening. (r20723),
 maybe that was done with an outdated tool or so.

No, since he did it to add support for new platforms so he had to use the most 
recent fpcmake (and if you look at the Makefile diffs, you can see the only 
changes are extra x86_64-openbsd things). Joost also made changes to fpmake 
yesterday, I guess those are the problem. I also got really strange errors in 
the testsuite builds from last night:

darwin/ppc:

[  8%] Compiled package paszlib
Start compiling package univint for target powerpc-darwin.
Warning: Source file AUComponent.ppu from package univint not found for 
powerpc-darwin
  Compiling src/MacOSAll.pas
The installer encountered the following error:
External command /Users/fpc/snapshot/fpc-2.3/compiler/ppcppc -Tdarwin 
-FUunits/powerpc-darwin -Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc-darwin 
-Ur -Xs -O2 -n -Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc-darwin -ap 
-dpowerpc -dRELEASE -Mmacpas -viq src/MacOSAll.pas failed with exit code 1. 
Console output:
Target OS: Darwin for PowerPC
Compiling src/MacOSAll.pas
Fatal: Can't open file MacOSAll.pas
Fatal: Compilation aborted

darwin/ppc64:

[ 47%] Compiled package numlib
The installer encountered the following error:
External command /Users/fpc/snapshot/fpc-2.3/compiler/ppcppc64 -Tdarwin 
-FUunits/powerpc64-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc64-darwin -Fusrc -Ur -Xs -O2 -n 
-Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc64-darwin -ap -dpowerpc64 
-dRELEASE -viq BuildUnit_opengles.pp failed with exit code 1. Console output:
Target OS: Darwin for PowerPC64
Compiling BuildUnit_opengles.pp
BuildUnit_opengles.pp(4,1) Fatal: Can't find unit gles11 used by 
BuildUnit_opengles
Fatal: Compilation aborted

(that package shouldn't even be compiled for darwin, but that's unrelated to 
the build error)

It looks like fpmake is changing the pwd before the compilation has started or 
so. 


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Compilation error

2012-04-07 Thread Vincent Snijders
Op 7 april 2012 12:38 heeft Jonas Maebe jonas.ma...@elis.ugent.be
het volgende geschreven:

 On 07 Apr 2012, at 12:19, Marco van de Voort wrote:

 I saw that Pierre regenerated all makefiles yesterday evening. (r20723),
 maybe that was done with an outdated tool or so.

 No, since he did it to add support for new platforms so he had to use the 
 most recent fpcmake (and if you look at the Makefile diffs, you can see the 
 only changes are extra x86_64-openbsd things). Joost also made changes to 
 fpmake yesterday, I guess those are the problem. I also got really strange 
 errors in the testsuite builds from last night:
 (that package shouldn't even be compiled for darwin, but that's unrelated to 
 the build error)

 It looks like fpmake is changing the pwd before the compilation has started 
 or so.

As noted in http://bugs.freepascal.org/view.php?id=21672, it is cause
by r20724. I assigned the issue to Josst.

Vincent
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Compilation error in fgl.pp

2011-01-04 Thread Juha Manninen
I have a rather old version of FPC 2.5.1.
I tried to update it but got this:

---
/home/juha/lib/fpc/2.5.1/ppcx64 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -
Fi../unix -Fix86_64 -FE. -FU/home/juha/SW/freepascal/fpc/rtl/units/x86_64-
linux -Cg -dx86_64 -dRELEASE ../objpas/fgl.pp
fgl.pp(128,38) Error: Generics without specialization cannot be used as a type 
for a variable
fgl.pp(163,44) Error: Generics without specialization cannot be used as a type 
for a variable
fgl.pp(198,54) Error: Generics without specialization cannot be used as a type 
for a variable
fgl.pp(346,1) Fatal: There were 3 errors compiling module, stopping
Fatal: Compilation aborted
---

Fedora 14 Linux 64-bit.
Should I install FPC 2.4.2 first and try again?

Juha
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Compilation error in fgl.pp

2011-01-04 Thread Vincent Snijders
2011/1/4 Juha Manninen juha.mannine...@gmail.com:
 I have a rather old version of FPC 2.5.1.
 I tried to update it but got this:

 ---
 /home/juha/lib/fpc/2.5.1/ppcx64 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -
 Fi../unix -Fix86_64 -FE. -FU/home/juha/SW/freepascal/fpc/rtl/units/x86_64-
 linux -Cg -dx86_64 -dRELEASE ../objpas/fgl.pp
 fgl.pp(128,38) Error: Generics without specialization cannot be used as a type
 for a variable
 fgl.pp(163,44) Error: Generics without specialization cannot be used as a type
 for a variable
 fgl.pp(198,54) Error: Generics without specialization cannot be used as a type
 for a variable
 fgl.pp(346,1) Fatal: There were 3 errors compiling module, stopping
 Fatal: Compilation aborted
 Should I install FPC 2.4.2 first and try again?

Yes.

Vincent
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Compilation error in fgl.pp

2011-01-04 Thread Marco van de Voort
In our previous episode, Juha Manninen said:
 Fedora 14 Linux 64-bit.
 Should I install FPC 2.4.2 first and try again?

Yes. Only 2.4.2 is guaranteed (and last week there was a PPU increase due to
a change in generics streaming by Paul afaik)
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Compilation error in fgl.pp

2011-01-04 Thread Juha Manninen
Vincent Snijders kirjoitti tiistai 04 tammikuu 2011 15:53:41:
  Should I install FPC 2.4.2 first and try again?
 
 Yes.

Thanks, works now.

Juha
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Compilation error using FPC 2.2.2 on iMac PowerPC...

2009-04-20 Thread Jonas Maebe


On 13 Apr 2009, at 20:36, domini...@savagesoftware.com.au domini...@savagesoftware.com.au 
 wrote:



 I'm using FreePascal 2.2.2, from 12th April 2009
snapshot to compile my app on a PowerPC iMac running Mac OS X 10.3.9.
All my units compile fine, but it fails during the linking phase  
with the

error listed below...

Linking ./YoYo70-powerpc
/usr/bin/ld:
/usr/local/lib/fpc/2.2.2/units/powerpc-darwin/paszlib/zinflate.o stray
relocation PPC_RELOC_PAIR entry (36) in section (__TEXT,__text)
An error occurred while linking
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppcppc returned an error exitcode (normal if  
you did

not specify a source file to be compiled)

Does anyone have any suggestions as to how i can get around this  
problem?


Which Xcode version do you have installed on the iMac? And why are you  
compiling on a 10.3.9 machine? (although it should still work) You can  
very easily cross-compile a program for another Mac OS X version on  
Mac OS X: http://wiki.freepascal.org/OS_X_Programming_Tips#Compiling_under_10.5_for_10.4_and_below 
 (have a look under /Developer/SDKs to see the names of other SDKs,  
and note that the 10.3.9 SDK is not installed by default by Xcode 3.x,  
so you may have to run the installer again and explicitly mark its  
checkbox).



What is a stray relocation for future reference?


This cannot be explained without going into detail about how linkers  
work, and the specifics of the PowerPC architecture. I don't have time  
for that right now.


Also I was hoping to be able to build FPC from SVN, but the only SVN  
*.dmg

file I found on the internet, would not install correctly on 10.3.9.


What does would not install correctly mean? Please, always mention  
the specifics.



Does anyone have a link that they know works on 10.3.9? I have XCode
installed in case I need to build anything.

I copied a SVN version of the the code from my Intel MacBook to the  
iMac

and tried to build it from scratch but it give the following errors...
system.pp:126894:Complex expression. Absolute segment assumed.


That problem should have been fixed in 2.2.2: 
http://bugs.freepascal.org/view.php?id=10541

I'm not sure why you would nevertheless get such errors, unless you  
are trying to compile using DWARF debug information (which was not yet  
properly supported by Xcode 1.5).



Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Compilation error using FPC 2.2.2 on iMac PowerPC...

2009-04-13 Thread dominique
Hi all,
  I'm using FreePascal 2.2.2, from 12th April 2009
snapshot to compile my app on a PowerPC iMac running Mac OS X 10.3.9.
All my units compile fine, but it fails during the linking phase with the
error listed below...

Linking ./YoYo70-powerpc
/usr/bin/ld:
/usr/local/lib/fpc/2.2.2/units/powerpc-darwin/paszlib/zinflate.o stray
relocation PPC_RELOC_PAIR entry (36) in section (__TEXT,__text)
An error occurred while linking 
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppcppc returned an error exitcode (normal if you did
not specify a source file to be compiled)

Does anyone have any suggestions as to how i can get around this problem?
What is a stray relocation for future reference?

Also I was hoping to be able to build FPC from SVN, but the only SVN *.dmg
file I found on the internet, would not install correctly on 10.3.9.
Does anyone have a link that they know works on 10.3.9? I have XCode
installed in case I need to build anything.

I copied a SVN version of the the code from my Intel MacBook to the iMac
and tried to build it from scratch but it give the following errors...
system.pp:126894:Complex expression. Absolute segment assumed.
system.pp:126899:Complex expression. Absolute segment assumed.
system.pp:126904:Complex expression. Absolute segment assumed.
system.pp:126911:unknown section attribute: debug
system.pp:217537:unknown section attribute: debug
Error: Error while assembling exitcode 1
Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppcppc returned an error exitcode (normal if you did
not specify a source file to be compiled)
make[7]: *** [system.ppu] Error 1
make[6]: *** [darwin_all] Error 2
make[5]: *** [rtl] Error 2
make[4]: *** [next] Error 2
make[3]: *** [ppc1] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.powerpc-darwin] Error 2

Actually there are LOADS of system.pp:126894:Complex expression. Absolute
segment assumed. like messages before build stops.
That same SVN code compiles without any issues on the Intel MacBook and you
don't get the Absolute segment assumed messages either.

Would I be right in thinking that if I can get fpc and the rest of the rtl
compiling under 10.3.9, that my app shoud then compile correctly?


Thanks,


Dominique.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] compilation error of h2pas.pas on Mac OS X in the course of make all of the SVN sources

2005-09-23 Thread Jonas Maebe


On 16 sep 2005, at 15:32, Dr. Rolf Jansen wrote:


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

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] compilation error of h2pas.pas on Mac OS X in the course of make all of the SVN sources

2005-09-17 Thread Florian Klämpfl

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  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] compilation error of h2pas.pas on Mac OS X in the course of make all of the SVN sources

2005-09-16 Thread 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

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel