Re: [lazarus] Bug in recompiling IDE

2007-11-05 Thread Vincent Snijders

Michael Van Canneyt schreef:


When you recompile the 32-bit lazarus IDE for 64-bit, you get the following 
error:

TLazPackageGraph.CheckIfPackageNeedsCompilation  Compiler filename changed for 
SDFLaz 0.1.1
  Old=/usr/local/bin/ppc386
  Now=/usr/local/bin/ppcx64
[TExternalToolList.Run] CmdLine=/usr/local/bin/ppcx64  -S2cgi -OG1 -Tlinux -gl -vewnhi -l 
-Fu../../lcl/units/i386-linux/ -Fu../../lcl/units/i386-linux/gtk/ 
-Fu../../packager/units/i386-linux/ -Fu. -FUlib/i386-linux/ -dLCL -dLCLgtk sdflaz.pas 
WorkDir=/home/michael/projects/lazarus/components/sdf/

As you can see, the IDE passes the 32-bit paths to the packages.

Steps to reproduce:

- Load 32-bit Lazarus.
- Set compiler to 64-bit compiler
- Build Lazarus
Voila...

Solution:
use make to build initial 64-bit IDE, then use this ide to do build lazarus.


Did you change the target CPU in the build lazarus dialog?

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Bug in recompiling IDE

2007-11-05 Thread Michael Van Canneyt


On Mon, 5 Nov 2007, Vincent Snijders wrote:

 Michael Van Canneyt schreef:
  
  When you recompile the 32-bit lazarus IDE for 64-bit, you get the following
  error:
  
  TLazPackageGraph.CheckIfPackageNeedsCompilation  Compiler filename changed
  for SDFLaz 0.1.1
Old=/usr/local/bin/ppc386
Now=/usr/local/bin/ppcx64
  [TExternalToolList.Run] CmdLine=/usr/local/bin/ppcx64  -S2cgi -OG1 -Tlinux
  -gl -vewnhi -l -Fu../../lcl/units/i386-linux/
  -Fu../../lcl/units/i386-linux/gtk/ -Fu../../packager/units/i386-linux/ -Fu.
  -FUlib/i386-linux/ -dLCL -dLCLgtk sdflaz.pas
  WorkDir=/home/michael/projects/lazarus/components/sdf/
  
  As you can see, the IDE passes the 32-bit paths to the packages.
  
  Steps to reproduce:
  
  - Load 32-bit Lazarus.
  - Set compiler to 64-bit compiler
  - Build Lazarus
  Voila...
  
  Solution:
  use make to build initial 64-bit IDE, then use this ide to do build
  lazarus.
 
 Did you change the target CPU in the build lazarus dialog?

Nope, nothing is set explicitly. 
When not set, doesn't it determine it from the compiler binary ?

Or does it take the same CPU as the IDE was compiled for ? 
That would explain the behaviour, of course...

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Bug in recompiling IDE

2007-11-05 Thread Michael Van Canneyt


When you recompile the 32-bit lazarus IDE for 64-bit, you get the following 
error:

TLazPackageGraph.CheckIfPackageNeedsCompilation  Compiler filename changed for 
SDFLaz 0.1.1
  Old=/usr/local/bin/ppc386
  Now=/usr/local/bin/ppcx64
[TExternalToolList.Run] CmdLine=/usr/local/bin/ppcx64  -S2cgi -OG1 -Tlinux -gl 
-vewnhi -l -Fu../../lcl/units/i386-linux/ -Fu../../lcl/units/i386-linux/gtk/ 
-Fu../../packager/units/i386-linux/ -Fu. -FUlib/i386-linux/ -dLCL -dLCLgtk 
sdflaz.pas WorkDir=/home/michael/projects/lazarus/components/sdf/

As you can see, the IDE passes the 32-bit paths to the packages.

Steps to reproduce:

- Load 32-bit Lazarus.
- Set compiler to 64-bit compiler
- Build Lazarus
Voila...

Solution:
use make to build initial 64-bit IDE, then use this ide to do build lazarus.

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Bug in recompiling IDE

2007-11-05 Thread Marc Weustink

Michael Van Canneyt wrote:


On Mon, 5 Nov 2007, Vincent Snijders wrote:


Michael Van Canneyt schreef:

When you recompile the 32-bit lazarus IDE for 64-bit, you get the following
error:

TLazPackageGraph.CheckIfPackageNeedsCompilation  Compiler filename changed
for SDFLaz 0.1.1
  Old=/usr/local/bin/ppc386
  Now=/usr/local/bin/ppcx64
[TExternalToolList.Run] CmdLine=/usr/local/bin/ppcx64  -S2cgi -OG1 -Tlinux
-gl -vewnhi -l -Fu../../lcl/units/i386-linux/
-Fu../../lcl/units/i386-linux/gtk/ -Fu../../packager/units/i386-linux/ -Fu.
-FUlib/i386-linux/ -dLCL -dLCLgtk sdflaz.pas
WorkDir=/home/michael/projects/lazarus/components/sdf/

As you can see, the IDE passes the 32-bit paths to the packages.

Steps to reproduce:

- Load 32-bit Lazarus.
- Set compiler to 64-bit compiler
- Build Lazarus
Voila...

Solution:
use make to build initial 64-bit IDE, then use this ide to do build
lazarus.

Did you change the target CPU in the build lazarus dialog?


Nope, nothing is set explicitly. 
When not set, doesn't it determine it from the compiler binary ?


Or does it take the same CPU as the IDE was compiled for ? 


The latter :(


That would explain the behaviour, of course...


I ran into this several times.
IMO some defaults should be set by the choosen compiler.

OTOH, when you use fpc as compiler, the target options determine pass 
the right option to is.



Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives