Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Sergei Gorelkin

02.04.2011 1:15, Joost van der Sluis пишет:

Hi all,

I've just committed a change in the Makefiles for the fcl-web package.
The Makefile now calls fpmake to build and install the package.


Another disaster occurs when I try to use the same source tree from different 
OSes.
Say first I build in Linux, it successfully creates the '/packages/fcl-web/fpmake' executable. After 
that building from Windows fails since it attempts to run the Linux fpmake without rebuilding it.
`make clean' from Windows does not remove Linux executable (tries to remove the 'fpmake.exe' or does 
not remove it at all, or maybe for some other reason). Removing it by hand solves the problem.


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


Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Joost van der Sluis
On Wed, 2011-04-06 at 12:28 +0400, Sergei Gorelkin wrote:
 02.04.2011 1:15, Joost van der Sluis пишет:
  Hi all,
 
  I've just committed a change in the Makefiles for the fcl-web package.
  The Makefile now calls fpmake to build and install the package.
 
 Another disaster occurs when I try to use the same source tree from different 
 OSes.
 Say first I build in Linux, it successfully creates the 
 '/packages/fcl-web/fpmake' executable. After 
 that building from Windows fails since it attempts to run the Linux fpmake 
 without rebuilding it.
 `make clean' from Windows does not remove Linux executable (tries to remove 
 the 'fpmake.exe' or does 
 not remove it at all, or maybe for some other reason). Removing it by hand 
 solves the problem.

The reason that fpmake is not removed, is that you need it to do the
clean. But maybe I can let the akefile compile fpmake, then run it to do
the cleanup, and then remove the executable again.

To solve your actual problem, we could add a suffix to the fpmake
executable name in case it is build by the Makefile. fppkg can simply
check if the existing executable does work, and if not, re-compile it. 

Joost.

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Joost van der Sluis
On Sun, 2011-04-03 at 03:51 +0400, Sergei Gorelkin wrote:
 On 02.04.2011 01:15, Joost van der Sluis wrote:
  Hi all,
 
  I've just committed a change in the Makefiles for the fcl-web package.
  The Makefile now calls fpmake to build and install the package.
 
 I'm unable to run the test suite with this change, apparently it tries to 
 install package files to 
 their permanent location (/usr/local/lib/fpc/2.5.1/units/...), while the test 
 suite uses a temporary 
 location under 'tests' directory. Following is a fragment of log showing a 
 correctly processed 
 package (fv) and the error:

This should be solved in r17261. Can you confirm that? 

Joost.

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Sergei Gorelkin

06.04.2011 12:56, Joost van der Sluis пишет:

Another disaster occurs when I try to use the same source tree from different 
OSes.
Say first I build in Linux, it successfully creates the 
'/packages/fcl-web/fpmake' executable. After
that building from Windows fails since it attempts to run the Linux fpmake 
without rebuilding it.
`make clean' from Windows does not remove Linux executable (tries to remove the 
'fpmake.exe' or does
not remove it at all, or maybe for some other reason). Removing it by hand 
solves the problem.


The reason that fpmake is not removed, is that you need it to do the
clean. But maybe I can let the akefile compile fpmake, then run it to do
the cleanup, and then remove the executable again.

I was seeing it from the point one system does not touch files created by/for the other system, to 
be honest.

The things are going to get even more interesting when cross-compilation comes 
in...


To solve your actual problem, we could add a suffix to the fpmake
executable name in case it is build by the Makefile. fppkg can simply
check if the existing executable does work, and if not, re-compile it.


...it will end up with a directory containing (hosts * targets) fpmake 
executables?
Just-in-time recompilation looks somewhat better in comparison with that :)

Regards,
Sergei

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-05 Thread Jonas Maebe

On 02 Apr 2011, at 15:35, Joost van der Sluis wrote:

 Done. Can someone who actually knows how to do that trigger a retry of a
 testsuite-run, and a new testsuite-mail?

Building still fails on darwin, I think because of a missing dependency on 
univint:

Start building package fcl-web for target powerpc-darwin.
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 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-base/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-db/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-xml/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-json/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-net/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-process/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fastcgi/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/httpd22/units/powerpc-darwin -Ur -Xs 
-O2 -n -Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/hash/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/paszlib/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-process/units/powerpc-darwin -Fu
/Users/fpc/snapshot/fpc-2.3/packages/fpmkunit/units/powerpc-darwin -FE. 
-FUunits/powerpc-darwin -ap -dpowerpc -dRELEASE src/base/cgiapp.pp failed with 
exit code 1. Console output:
Targ   Compiling src/base/cgiapp.pp
et OS: Darwin for PowerPC
Compiling src/base/cgiapp.pp
Fatal: Can't find unit MacOSAll used by CustApp
Fatal: Compilation aborted

Also, as you can see, the reported console output is mangled:

Targ   Compiling src/base/cgiapp.pp
et OS: Darwin for PowerPC


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


Re: [fpc-devel] Changes in Makefile-system

2011-04-05 Thread Joost van der Sluis
On Tue, 2011-04-05 at 08:11 +0200, Jonas Maebe wrote:
 On 02 Apr 2011, at 15:35, Joost van der Sluis wrote:
 
  Done. Can someone who actually knows how to do that trigger a retry of a
  testsuite-run, and a new testsuite-mail?
 
 Building still fails on darwin, I think because of a missing dependency on 
 univint:

This is actually a bug in fpcmake, but one that never led to problems
before. I'll fix it, test it on Darwin and commit.

 Start building package fcl-web for target powerpc-darwin.
 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 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-base/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-db/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-xml/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-json/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-net/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-process/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fastcgi/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/httpd22/units/powerpc-darwin -Ur -Xs 
 -O2 -n -Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/hash/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/paszlib/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-process/units/powerpc-darwin -
 Fu
 /Users/fpc/snapshot/fpc-2.3/packages/fpmkunit/units/powerpc-darwin -FE. 
 -FUunits/powerpc-darwin -ap -dpowerpc -dRELEASE src/base/cgiapp.pp failed 
 with exit code 1. Console output:
 Targ   Compiling src/base/cgiapp.pp
 et OS: Darwin for PowerPC
 Compiling src/base/cgiapp.pp
 Fatal: Can't find unit MacOSAll used by CustApp
 Fatal: Compilation aborted
 
 Also, as you can see, the reported console output is mangled:
 
 Targ   Compiling src/base/cgiapp.pp
 et OS: Darwin for PowerPC

Damn. I thought I fixed all these problems. Seems I still missed one.

Joost.

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-04 Thread Vincent Snijders
2011/4/1 Joost van der Sluis jo...@cnoc.nl:
 Hi all,

 I've just committed a change in the Makefiles for the fcl-web package.
 The Makefile now calls fpmake to build and install the package.

 It's a first test, so please try and report any problems you have when
 building the fcl-web package. (Or all packages, or just a complete
 fpc-checkout) I'll try to fix them as soon as possible.


Cross compiling is broken, the crosscompiler is used to compile fpmake
and the resulting fpmake is not for the host but the target os/cpu.
c:/lazarus/source/fpcbuild/trunk/fpcsrc/compiler/ppcrossarm.exe
-Twince -Parm -XParm-wince- -Xr -Ur -Xs -O2 -n -S2h
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/rtl/units/arm-wince
-FDc:\lazarus\source\binutils\arm-wince -FE. -FUunits/arm-wince -darm
-dRELEASE  src/fastcgi.pp
make.exe[2]: Leaving directory
`C:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fastcgi'
c:/lazarus/source/fpcbuild/trunk/install/binw32/make.exe -C fcl-web all
make.exe[2]: Entering directory
`C:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fcl-web'
c:/lazarus/source/fpcbuild/trunk/fpcsrc/compiler/ppcrossarm.exe
fpmake.pp -Twince -Parm -XParm-wince- -Xr -Ur -Xs -O2 -n
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/rtl/units/arm-wince
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/hash/units/arm-wince
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/paszlib/units/arm-wince
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fcl-process/units/arm-wince
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fpmkunit/units/arm-wince
-FDc:\lazarus\source\binutils\arm-wince -FE. -FUunits/arm-wince -darm
-dRELEASE
./fpmake build --localunitdir=../.. --globalunitdir=.. --os=wince
--cpu=arm -o -Twince -o -Parm -o -XParm-wince- -o -Xr -o -Ur -o -Xs -o
-O2 -o -n -o -FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/rtl/units/arm-wince
-o -FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/hash/units/arm-wince
-o -FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/paszlib/units/arm-wince
-o 
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fcl-process/units/arm-wince
-o -FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fpmkunit/units/arm-wince
-o -FDc:\lazarus\source\binutils\arm-wince -o -FE. -o
-FUunits/arm-wince -o -darm -o -dRELEASE
--compiler=c:/lazarus/source/fpcbuild/trunk/fpcsrc/compiler/ppcrossarm.exe
process_begin: 
CreateProcess(C:\lazarus\source\fpcbuild\trunk\fpcsrc\packages\fcl-web\fpmake.exe,
./fpmake build --localunitdir=../.. --globalunitdir=.. --os=wince
--cpu=arm -o -Twince -o -Parm -o -XParm-wince- -o -Xr -o -Ur -o -Xs -o
-O2 -o -n -o -FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/rtl/units/arm-wince
-o -FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/hash/units/arm-wince
-o -FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/paszlib/units/arm-wince
-o 
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fcl-process/units/arm-wince
-o -FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fpmkunit/units/arm-wince
-o -FDc:\lazarus\source\binutils\arm-wince -o -FE. -o
-FUunits/arm-wince -o -darm -o -dRELEASE
--compiler=c:/lazarus/source/fpcbuild/trunk/fpcsrc/compiler/ppcrossarm.exe,
...) failed.
make (e=193): Error 193make.exe[2]: *** [all] Error 193
make.exe[2]: Leaving directory
`C:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fcl-web'
make.exe[1]: *** [fcl-web_all] Error 2

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-04 Thread Marco van de Voort
In our previous episode, Vincent Snijders said:
  Hi all,
 
  I've just committed a change in the Makefiles for the fcl-web package.
  The Makefile now calls fpmake to build and install the package.
 
  It's a first test, so please try and report any problems you have when
  building the fcl-web package. (Or all packages, or just a complete
  fpc-checkout) I'll try to fix them as soon as possible.
 
 
 Cross compiling is broken, the crosscompiler is used to compile fpmake
 and the resulting fpmake is not for the host but the target os/cpu.

For me normal win32 building doesn't even work.

I suspect setting -O- in the OPTS is the cause for this, fpmake transforming
that into a -o no param or so.

make[3]: Entering directory `d:/repo/fpc/packages/fcl-web'
d:/repo/fpc/compiler/ppc386.exe fpmake.pp -Ur -Xs -O2 -n
-Fud:/repo/fpc/rtl/units/i386-win32
-Fud:/repo/fpc/packages/hash/units/i386-win32
-Fud:/repo/fpc/packages/paszlib/units/i386-win32
-Fud:/repo/fpc/packages/fcl-process/units/i386-win32
-Fud:/repo/fpc/packages/fpmkunit/units/i386-win32 -FE.
-FUunits/i386-win32 -O-gl -dUse_MINGW_GDB -di386 -dRELEASE
./fpmake build --localunitdir=../.. --globalunitdir=.. --os=win32 --cpu=i386
-o -Ur -o -Xs -o -O2 -o -n -o -Fud:/repo/fpc/rtl/units/i386-win32 -o
-Fud:/repo/fpc/packages/hash/units/i386-win32 -o
-Fud:/repo/fpc/packages/paszlib/units/i386-win32 -o
-Fud:/repo/fpc/packages/fcl-process/units/i386-win32 -o
-Fud:/repo/fpc/packages/fpmkunit/units/i386-win32 -o -FE. -o
-FUunits/i386-win32 -o -O-o -gl -o -dUse_MINGW_GDB -o -di386 -o
-dRELEASE --compiler=d:/repo/fpc/compiler/ppc386.exe -o -XX
-CX
'.' is not recognized as an internal or external command,
operable program or batch file.
make[3]: *** [smart] Error 1
make[3]: Leaving directory `d:/repo/fpc/packages/fcl-web'
make[2]: *** [fcl-web_smart] Error 2
make[2]: Leaving directory `d:/repo/fpc/packages'
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory `d:/repo/fpc'
make: *** [build-stamp.i386-win32] Error 2
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Changes in Makefile-system

2011-04-03 Thread de_jean_7777
When trying to build FPC from svn on a win32 system (win7 and xp) on 
three different systems I get the same error. I'm using a 2.5.1 compiler 
to build fpc from svn.


make -C fcl-web smart
make[3]: Entering directory `C:/Programming/fpc/packages/fcl-web'
C:/Programming/fpc/compiler/ppc386.exe fpmake.pp -Ur -Xs -O2 -n 
-FuC:/Programmin
g/fpc/rtl/units/i386-win32 
-FuC:/Programming/fpc/packages/hash/units/i386-win32
-FuC:/Programming/fpc/packages/paszlib/units/i386-win32 
-FuC:/Programming/fpc/pa
ckages/fcl-process/units/i386-win32 
-FuC:/Programming/fpc/packages/fpmkunit/unit

s/i386-win32 -FE. -FUunits/i386-win32 -di386 -dRELEASE
./fpmake build --localunitdir=../.. --globalunitdir=.. --os=win32 
--cpu=i386 -o
-Ur -o -Xs -o -O2 -o -n -o -FuC:/Programming/fpc/rtl/units/i386-win32 -o 
-FuC:/P
rogramming/fpc/packages/hash/units/i386-win32 -o 
-FuC:/Programming/fpc/packages/
paszlib/units/i386-win32 -o 
-FuC:/Programming/fpc/packages/fcl-process/units/i38
6-win32 -o -FuC:/Programming/fpc/packages/fpmkunit/units/i386-win32 -o 
-FE. -o -
FUunits/i386-win32 -o -di386 -o -dRELEASE 
--compiler=C:/Programming/fpc/compiler

/ppc386.exe -o -XX -CX
'.' is not recognized as an internal or external command,
operable program or batch file.
make[3]: *** [smart] Error 1
make[3]: Leaving directory `C:/Programming/fpc/packages/fcl-web'
make[2]: *** [fcl-web_smart] Error 2
make[2]: Leaving directory `C:/Programming/fpc/packages'
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory `C:/Programming/fpc'
make: *** [build-stamp.i386-win32] Error 2
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Michael Van Canneyt



On Fri, 1 Apr 2011, Joost van der Sluis wrote:


Hi all,

I've just committed a change in the Makefiles for the fcl-web package.
The Makefile now calls fpmake to build and install the package.

It's a first test, so please try and report any problems you have when
building the fcl-web package. (Or all packages, or just a complete
fpc-checkout) I'll try to fix them as soon as possible.


Works like a charm here.

Only noticeable problem, we'll need to work on the 'clean' target.

home: make clean
./fpmake clean --localunitdir=../.. --globalunitdir=.. --os=linux --cpu=x86_64 
-o -Fu../../rtl/units/x86_64-linux -o -Fu../../packages/hash/units/x86_64-linux 
-o -Fu../../packages/paszlib/units/x86_64-linux -o 
-Fu../../packages/fcl-process/units/x86_64-linux -o 
-Fu../../packages/fpmkunit/units/x86_64-linux -o -FE. -o -FUunits/x86_64-linux 
-o -Cg -o -dx86_64 --compiler=/usr/local/bin/ppcx64
Clean of package fcl-web completed
home: ls  units/x86_64-linux/
extjsjson.rst  fcgigate.rst fpextjs.rstfpmake.o  fpwebdata.rst
extjsxml.rst   fpextdirect.rst  fpjsonrpc.rst  sqldbwebdata.rst

I think that the clean command for a unit should also look for .rst files ?
And while we're at it, a .or may also exist, if I'm correct.

If you agree, I'll take that on me ?

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Jonas Maebe

On 01 Apr 2011, at 23:15, Joost van der Sluis wrote:

 It's a first test, so please try and report any problems you have when
 building the fcl-web package. (Or all packages, or just a complete
 fpc-checkout) I'll try to fix them as soon as possible.

It broke the compilation of 2.5.1 on all tested platforms last night. Here's 
the error I got on Darwin/ppc:

make -C fcl-web all
/Users/fpc/snapshot/fpc-2.3/compiler/ppcppc fpmake.pp -Ur -Xs -O2 -n 
-Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/hash/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/paszlib/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-process/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fpmkunit/units/powerpc-darwin -FE. 
-FUunits/powerpc-darwin -ap -dpowerpc -dRELEASE
{standard input}:unknown:FATAL:can't create output file: 
units/powerpc-darwin/fpmake.o
fpmake.pp(173,27) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted


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


Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Michael Van Canneyt



On Sat, 2 Apr 2011, Jonas Maebe wrote:



On 01 Apr 2011, at 23:15, Joost van der Sluis wrote:


It's a first test, so please try and report any problems you have when
building the fcl-web package. (Or all packages, or just a complete
fpc-checkout) I'll try to fix them as soon as possible.


It broke the compilation of 2.5.1 on all tested platforms last night. Here's 
the error I got on Darwin/ppc:

make -C fcl-web all
/Users/fpc/snapshot/fpc-2.3/compiler/ppcppc fpmake.pp -Ur -Xs -O2 -n 
-Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/hash/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/paszlib/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-process/units/powerpc-darwin 
-Fu/Users/fpc/snapshot/fpc-2.3/packages/fpmkunit/units/powerpc-darwin -FE. 
-FUunits/powerpc-darwin -ap -dpowerpc -dRELEASE
{standard input}:unknown:FATAL:can't create output file: 
units/powerpc-darwin/fpmake.o
fpmake.pp(173,27) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted


Does the output directory exist at all ?

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Jonas Maebe

On 02 Apr 2011, at 11:35, Michael Van Canneyt wrote:

 On Sat, 2 Apr 2011, Jonas Maebe wrote:
 
 It broke the compilation of 2.5.1 on all tested platforms last night. Here's 
 the error I got on Darwin/ppc:
 
 make -C fcl-web all
 /Users/fpc/snapshot/fpc-2.3/compiler/ppcppc fpmake.pp -Ur -Xs -O2 -n 
 -Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/hash/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/paszlib/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-process/units/powerpc-darwin 
 -Fu/Users/fpc/snapshot/fpc-2.3/packages/fpmkunit/units/powerpc-darwin -FE. 
 -FUunits/powerpc-darwin -ap -dpowerpc -dRELEASE
 {standard input}:unknown:FATAL:can't create output file: 
 units/powerpc-darwin/fpmake.o
 fpmake.pp(173,27) Fatal: There were 1 errors compiling module, stopping
 Fatal: Compilation aborted
 
 Does the output directory exist at all ?

Probably not. It has to be created by the Makefile/fpmake. All nightly runs are 
built from clean svn checkouts, so they don't have that units directory 
(while you, and probably Joost, presumably still had it a available from a 
previous build). That directory also has to be erased when performing a make 
distclean.


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


Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Joost van der Sluis
On Sat, 2011-04-02 at 10:50 +0200, Michael Van Canneyt wrote:
 
 On Fri, 1 Apr 2011, Joost van der Sluis wrote:
 
  Hi all,
 
  I've just committed a change in the Makefiles for the fcl-web package.
  The Makefile now calls fpmake to build and install the package.
 
  It's a first test, so please try and report any problems you have when
  building the fcl-web package. (Or all packages, or just a complete
  fpc-checkout) I'll try to fix them as soon as possible.
 
 Works like a charm here.
 
 Only noticeable problem, we'll need to work on the 'clean' target.
 
 home: make clean
 ./fpmake clean --localunitdir=../.. --globalunitdir=.. --os=linux 
 --cpu=x86_64 -o -Fu../../rtl/units/x86_64-linux -o 
 -Fu../../packages/hash/units/x86_64-linux -o 
 -Fu../../packages/paszlib/units/x86_64-linux -o 
 -Fu../../packages/fcl-process/units/x86_64-linux -o 
 -Fu../../packages/fpmkunit/units/x86_64-linux -o -FE. -o 
 -FUunits/x86_64-linux -o -Cg -o -dx86_64 --compiler=/usr/local/bin/ppcx64
 Clean of package fcl-web completed
 home: ls  units/x86_64-linux/
 extjsjson.rst  fcgigate.rst fpextjs.rstfpmake.o  fpwebdata.rst
 extjsxml.rst   fpextdirect.rst  fpjsonrpc.rst  sqldbwebdata.rst
 
 I think that the clean command for a unit should also look for .rst files ?

It does, as long as the fpmake.pp is correct. There's a boolean field to
indicate that a unit creates a .rst file.

 And while we're at it, a .or may also exist, if I'm correct.
 If you agree, I'll take that on me ?

You may work on the .a and .or?

Joost.

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Joost van der Sluis
On Sat, 2011-04-02 at 11:44 +0200, Jonas Maebe wrote:
 On 02 Apr 2011, at 11:35, Michael Van Canneyt wrote:
 
  On Sat, 2 Apr 2011, Jonas Maebe wrote:
  
  It broke the compilation of 2.5.1 on all tested platforms last night. 
  Here's the error I got on Darwin/ppc:
  
  make -C fcl-web all
  /Users/fpc/snapshot/fpc-2.3/compiler/ppcppc fpmake.pp -Ur -Xs -O2 -n 
  -Fu/Users/fpc/snapshot/fpc-2.3/rtl/units/powerpc-darwin 
  -Fu/Users/fpc/snapshot/fpc-2.3/packages/hash/units/powerpc-darwin 
  -Fu/Users/fpc/snapshot/fpc-2.3/packages/paszlib/units/powerpc-darwin 
  -Fu/Users/fpc/snapshot/fpc-2.3/packages/fcl-process/units/powerpc-darwin 
  -Fu/Users/fpc/snapshot/fpc-2.3/packages/fpmkunit/units/powerpc-darwin -FE. 
  -FUunits/powerpc-darwin -ap -dpowerpc -dRELEASE
  {standard input}:unknown:FATAL:can't create output file: 
  units/powerpc-darwin/fpmake.o
  fpmake.pp(173,27) Fatal: There were 1 errors compiling module, stopping
  Fatal: Compilation aborted
  
  Does the output directory exist at all ?
 
 Probably not. It has to be created by the Makefile/fpmake. All nightly runs 
 are built from clean svn checkouts, so they don't have that units directory 
 (while you, and probably Joost, presumably still had it a available from a 
 previous build). That directory also has to be erased when performing a make 
 distclean.

Indeed. I'll fix that.

Joost.

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Michael Van Canneyt



On Sat, 2 Apr 2011, Joost van der Sluis wrote:


On Sat, 2011-04-02 at 10:50 +0200, Michael Van Canneyt wrote:


On Fri, 1 Apr 2011, Joost van der Sluis wrote:


Hi all,

I've just committed a change in the Makefiles for the fcl-web package.
The Makefile now calls fpmake to build and install the package.

It's a first test, so please try and report any problems you have when
building the fcl-web package. (Or all packages, or just a complete
fpc-checkout) I'll try to fix them as soon as possible.


Works like a charm here.

Only noticeable problem, we'll need to work on the 'clean' target.

home: make clean
./fpmake clean --localunitdir=../.. --globalunitdir=.. --os=linux --cpu=x86_64 
-o -Fu../../rtl/units/x86_64-linux -o -Fu../../packages/hash/units/x86_64-linux 
-o -Fu../../packages/paszlib/units/x86_64-linux -o 
-Fu../../packages/fcl-process/units/x86_64-linux -o 
-Fu../../packages/fpmkunit/units/x86_64-linux -o -FE. -o -FUunits/x86_64-linux 
-o -Cg -o -dx86_64 --compiler=/usr/local/bin/ppcx64
Clean of package fcl-web completed
home: ls  units/x86_64-linux/
extjsjson.rst  fcgigate.rst fpextjs.rstfpmake.o  fpwebdata.rst
extjsxml.rst   fpextdirect.rst  fpjsonrpc.rst  sqldbwebdata.rst

I think that the clean command for a unit should also look for .rst files ?


It does, as long as the fpmake.pp is correct. There's a boolean field to
indicate that a unit creates a .rst file.


Correct, I'd forgotten about it.




And while we're at it, a .or may also exist, if I'm correct.
If you agree, I'll take that on me ?


You may work on the .a and .or?


And I'll set the boolean field in the fcl-web fpmake :-)

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


Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Sergei Gorelkin

On 02.04.2011 01:15, Joost van der Sluis wrote:

Hi all,

I've just committed a change in the Makefiles for the fcl-web package.
The Makefile now calls fpmake to build and install the package.

I'm unable to run the test suite with this change, apparently it tries to install package files to 
their permanent location (/usr/local/lib/fpc/2.5.1/units/...), while the test suite uses a temporary 
location under 'tests' directory. Following is a fragment of log showing a correctly processed 
package (fv) and the error:


make[3]: Вход в каталог `/media/TRASH/trunk/packages/fv'
/usr/local/bin/fpcmake -p -Tx86_64-linux Makefile.fpc
Processing Makefile.fpc
 Writing Package.fpc
/usr/bin/install -m 755 -d /media/TRASH/trunk/tests/units/x86_64-linux
/usr/bin/install -c -m 644 Package.fpc 
/media/TRASH/trunk/tests/units/x86_64-linux
/usr/bin/install -m 755 -d /media/TRASH/trunk/tests/units/x86_64-linux
/usr/bin/install -c -m 644 units/x86_64-linux/app.ppu (...a long list of files...) 
/media/TRASH/trunk/tests/units/x86_64-linux
/usr/bin/install -c -m 644 units/x86_64-linux/app.o (...a long list of files...) 
/media/TRASH/trunk/tests/units/x86_64-linux

make[3]: Выход из каталога `/media/TRASH/trunk/packages/fv'
make -C fcl-web install
make[3]: Вход в каталог `/media/TRASH/trunk/packages/fcl-web'
./fpmake install --localunitdir=../.. --globalunitdir=.. --os=linux --cpu=x86_64 -o 
-Fu../../rtl/units/x86_64-linux -o -Fu../../packages/hash/units/x86_64-linux -o 
-Fu../../packages/paszlib/units/x86_64-linux -o -Fu../../packages/fcl-process/units/x86_64-linux -o 
-Fu../../packages/fpmkunit/units/x86_64-linux -o -FE. -o -FUunits/x86_64-linux -o -Cg -o -dx86_64 
--compiler=/media/TRASH/trunk/compiler/ppcx64 --prefix=

The installer encountered the following error:
Unable to create file 
/usr/local/lib/fpc/2.5.1/units/x86_64-linux/fcl-web/cgiapp.o
make[3]: *** [install] Ошибка 1
make[3]: Выход из каталога `/media/TRASH/trunk/packages/fcl-web'
make[2]: *** [fcl-web_install] Ошибка 2
make[2]: Выход из каталога `/media/TRASH/trunk/packages'
make[1]: *** [packages-stamp.x86_64-linux] Ошибка 2
make[1]: Выход из каталога `/media/TRASH/trunk/tests/units'
make: *** [units] Ошибка 2


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


[fpc-devel] Changes in Makefile-system

2011-04-01 Thread Joost van der Sluis
Hi all,

I've just committed a change in the Makefiles for the fcl-web package.
The Makefile now calls fpmake to build and install the package.

It's a first test, so please try and report any problems you have when
building the fcl-web package. (Or all packages, or just a complete
fpc-checkout) I'll try to fix them as soon as possible.

If you are really stuck, the old Makefile.fpc is copied to Makefile.org.
Copy the Makefile.org to Makefile.fpc, and run 'fpcmake -TAll' in the
fcl-web directory. And don't forget to report your problems.

Joost.

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