Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-02-01 Thread Antonio Fortuny



Le 28/01/2013 13:16, Mattias Gaertner a écrit :


Have you tried to use lazarus from svn?
Yes. Downloaded last SVN trunk on /home/sources/lazarus (with sita user, 
using Gnome commander from svn.freepascal.org/svn/lazarus/trunk/)

in a shell (myuser):
sita@linux-5yg5:/home/sources/lazarus make clean all
... all clean stuff
/bin/mkdir -p ../units/x86_64-linux
/usr/bin/ppcx64 -Ur -Xs -O2 -n -MObjFPC -Scghi -O1 -g -gl -vewnhi -l 
-Fu. -FE. -FU../units/x86_64-linux -Cg -dx86_64 -dRELEASE fcllaz.pas

Free Pascal Compiler version 2.6.0 [2012/05/14] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling fcllaz.pas
Fatal: Can't find unit system used by fcllaz
Fatal: Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory `/home/sources/lazarus/packager/registration'
make: *** [registration] Error 2

in /etc/fpc.cfg
-rw-r--r-- 1 sita users 7181 May 14  2012 /etc/fpc.cfg
...
# searchpath for units and other system dependent things
#IFDEF CPU64
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/rtl
*** all those folders exist and

linux-5yg5:/usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl #
-rw-r--r--  1 sita users  363028 May 14  2012 system.o
-rw-r--r--  1 sita users  806260 May 14  2012 system.ppu

#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ENDIF
...




Maybe there is a problem with OpenSuse 64bit.



Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-02-01 Thread Mattias Gaertner
On Fri, 01 Feb 2013 10:21:00 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 
 
 Le 28/01/2013 13:16, Mattias Gaertner a écrit :
 
  Have you tried to use lazarus from svn?
 Yes. Downloaded last SVN trunk on /home/sources/lazarus (with sita user, 
 using Gnome commander from svn.freepascal.org/svn/lazarus/trunk/)
 in a shell (myuser):
 sita@linux-5yg5:/home/sources/lazarus make clean all
 ... all clean stuff
 /bin/mkdir -p ../units/x86_64-linux
 /usr/bin/ppcx64 -Ur -Xs -O2 -n -MObjFPC -Scghi -O1 -g -gl -vewnhi -l 
 -Fu. -FE. -FU../units/x86_64-linux -Cg -dx86_64 -dRELEASE fcllaz.pas

From where comes the -Ur -Xs -O2 -n?

The -n tells the compiler to ignore the /etc/fpc.cfg. No wonder it can
not find system.ppu.
The -O2 is cancelled by the following -O1.
Do not use -Ur with Lazarus packages.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-02-01 Thread Antonio Fortuny



Le 01/02/2013 13:58, Mattias Gaertner a écrit :

On Fri, 01 Feb 2013 10:21:00 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:




Le 28/01/2013 13:16, Mattias Gaertner a écrit :


Have you tried to use lazarus from svn?

Yes. Downloaded last SVN trunk on /home/sources/lazarus (with sita user,
using Gnome commander from svn.freepascal.org/svn/lazarus/trunk/)
in a shell (myuser):
sita@linux-5yg5:/home/sources/lazarus make clean all
... all clean stuff
/bin/mkdir -p ../units/x86_64-linux
/usr/bin/ppcx64 -Ur -Xs -O2 -n -MObjFPC -Scghi -O1 -g -gl -vewnhi -l
-Fu. -FE. -FU../units/x86_64-linux -Cg -dx86_64 -dRELEASE fcllaz.pas


 From where comes the -Ur -Xs -O2 -n?

No idea but it should be in the original Makefile I presume
I did not change anything after download from SVN, just: make clean all 
in new downloaded lazarus folder


The -n tells the compiler to ignore the /etc/fpc.cfg. No wonder it can
not find system.ppu.
The -O2 is cancelled by the following -O1.
Do not use -Ur with Lazarus packages.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-02-01 Thread Mattias Gaertner
On Fri, 01 Feb 2013 14:02:54 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 
 
 Le 01/02/2013 13:58, Mattias Gaertner a écrit :
  On Fri, 01 Feb 2013 10:21:00 +0100
  Antonio Fortuny a.fort...@sitasoftware.lu wrote:
 
 
 
  Le 28/01/2013 13:16, Mattias Gaertner a écrit :
 
  Have you tried to use lazarus from svn?
  Yes. Downloaded last SVN trunk on /home/sources/lazarus (with sita user,
  using Gnome commander from svn.freepascal.org/svn/lazarus/trunk/)
  in a shell (myuser):
  sita@linux-5yg5:/home/sources/lazarus make clean all
  ... all clean stuff
  /bin/mkdir -p ../units/x86_64-linux
  /usr/bin/ppcx64 -Ur -Xs -O2 -n -MObjFPC -Scghi -O1 -g -gl -vewnhi -l
  -Fu. -FE. -FU../units/x86_64-linux -Cg -dx86_64 -dRELEASE fcllaz.pas
 
   From where comes the -Ur -Xs -O2 -n?
 No idea but it should be in the original Makefile I presume
 I did not change anything after download from SVN, just: make clean all 
 in new downloaded lazarus folder

Your RELEASE environment variable is set. Clear it.

RELEASE=
make clean all

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-02-01 Thread Antonio Fortuny


Your RELEASE environment variable is set. Clear it.

RELEASE=
make clean all

OK, it works !! Thanks again Mattias
But, because I wouldn't like to die stupid, would you be so kind to 
explain to me how this |@#µ$[!! environment variable has been set ?


Antonio.



Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny



Le 25/01/2013 09:42, Mattias Gaertner a écrit :


Antonio Fortuny a.fort...@sitasoftware.lu hat am 25. Januar 2013 um 09:07
geschrieben:

Yes, again.
Hi Folks.

On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0
After a successful compilation of Indy 10.5.9 package (latest SVN
source) when trying to install it: BOUM !
All packages up to SQLDBLaz have been compiled OK
Fatal: Can't find unit system used by Lazarus
while Lazarus was compiling itself.
Removing the package from the installation list does not help.
In a Win32 compilation and intallation of the same package was a success
I'm almost sure that this error has been reported some time ago but Im
not able to find it.
Any ideas ?


Maybe you mixed two Lazarus?

If yes:
Close IDE.
Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml.
Start IDE and build it clean.

doesn't work: still asks for system unit not available
I've installed 1.0.4 along with FPC 2.6.0: rpm's, under sudo rpm -ivh...
First launch: asks to downgrade parameters from 1.1 to 1.0, OK.
Some packages (outide of Lazarus and FPC folders) recompiled clean
So far so good
lazdaemon about to be installed:

complie it: BOUM !
Write error: Unable to create  file 
/usr/lib64/lazarus/packager/registration/fclaz.pas

ABORT

tools-configure build lazarus:
Optimized IDe, gtk2, verbose, clea up automatically, restart after 
build, confirm before build, no update revision

Button Build:  BOUM !
same error as above

After installation under sudo, all folders and files have root as owner 
and all folders have permission rwxr-xr-x, same for executable files
It sounds good for Linux permissions but a normal user can't rebuild the 
IDE, right ?

Something to do with permissions (chown, chmod) ?
So what's next, doctor ?

Antonio.





Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Mattias Gaertner
On Mon, 28 Jan 2013 09:58:51 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 
 
 Le 25/01/2013 09:42, Mattias Gaertner a écrit :
 
  Antonio Fortuny a.fort...@sitasoftware.lu hat am 25. Januar 2013 um 09:07
  geschrieben:
  Yes, again.
  Hi Folks.
 
  On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0
  After a successful compilation of Indy 10.5.9 package (latest SVN
  source) when trying to install it: BOUM !
  All packages up to SQLDBLaz have been compiled OK
  Fatal: Can't find unit system used by Lazarus
  while Lazarus was compiling itself.
  Removing the package from the installation list does not help.
  In a Win32 compilation and intallation of the same package was a success
  I'm almost sure that this error has been reported some time ago but Im
  not able to find it.
  Any ideas ?
 
  Maybe you mixed two Lazarus?
 
  If yes:
  Close IDE.
  Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml.
  Start IDE and build it clean.
 doesn't work: still asks for system unit not available

The system unit is needed to compile any unit. If some units were
compiled, then there are two possibilities:
- You have messed up your FPC install.
- You found a bug in the compiler, which is triggered by the Indy
  package.


 I've installed 1.0.4 along with FPC 2.6.0: rpm's, under sudo rpm -ivh...
 First launch: asks to downgrade parameters from 1.1 to 1.0, OK.
 Some packages (outide of Lazarus and FPC folders) recompiled clean
 So far so good
 lazdaemon about to be installed:
 
 complie it: BOUM !
 Write error: Unable to create  file 
 /usr/lib64/lazarus/packager/registration/fclaz.pas
 ABORT

It should never write that file. Unless you changed the package
fcl.lpk.


 tools-configure build lazarus:
 Optimized IDe, gtk2, verbose, clea up automatically, restart after 
 build, confirm before build, no update revision
 Button Build:  BOUM !
 same error as above
 
 After installation under sudo, all folders and files have root as owner 
 and all folders have permission rwxr-xr-x, same for executable files
 It sounds good for Linux permissions but a normal user can't rebuild the 
 IDE, right ?

A normal user can not change files under /usr/
That's why the IDE compiles under ~/.lazarus/bin


 Something to do with permissions (chown, chmod) ?
 So what's next, doctor ?

Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install
fpc-2.6.0-2.fc17.x86_64.rpm
fpc-src-2.6.0-2.fc17.x86_64.rpm
lazarus-1.0.4-0.x86_64.rpm
Install package lazdaemon.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny


Le 28/01/2013 10:16, Mattias Gaertner a écrit :

If this email is not spam, click here to submit the signatures to FortiGuard -
AntiSpam Service.
http://nospammer.net/SubmitSpam/submitspam.php?id=I3RVAXkWHVZcDXRfeUJzUw__sig=e3g1IT.ol4BoIzFkaiVlcHl4NCx2MTNwOFjQVGolZXB5eDQrdjEzcDEiObhqJWVweXg0K3YxM3AxIjmmaiVlcHl4NC92MTNwP2ykCWolZXN5eDQsdjEzbQkNVwMYURAfADhHRQJQQBsOV0YNGEBLHQx4NCx0MTN0aCMxbE5pBAsYCkFfNl1aBxxQHwALXwQDDAsaSgRUVgQJUFINBgsKAx54NCx0MTN0aCMxbFZNEQUJQhsDGlhAABsNXQ0QRBcEClZSXhNUQxUbQFAAREoXFlYVVUUaXFIaR09YHx5MCxcWV1hNDFBBARsjMWxuJWVxeXg0LG4xM3RqIzFmsHnElieL4ARtuRWUMHfU27k_


On Mon, 28 Jan 2013 09:58:51 +0100

Antonio Fortuny  wrote:



 Le 25/01/2013 09:42, Mattias Gaertner a écrit :
 
  Antonio Fortuny  hat am 25. Januar 2013 um 09:07
  geschrieben:
  Yes, again.
  Hi Folks.
 
  On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0
  After a successful compilation of Indy 10.5.9 package (latest SVN
  source) when trying to install it: BOUM !
  All packages up to SQLDBLaz have been compiled OK
  Fatal: Can't find unit system used by Lazarus
  while Lazarus was compiling itself.
  Removing the package from the installation list does not help.
  In a Win32 compilation and intallation of the same package was a success
  I'm almost sure that this error has been reported some time ago but Im
  not able to find it.
  Any ideas ?
 
  Maybe you mixed two Lazarus?
 
  If yes:
  Close IDE.
  Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml.
  Start IDE and build it clean.
 doesn't work: still asks for system unit not available

The system unit is needed to compile any unit. If some units were
compiled, then there are two possibilities:
- You have messed up your FPC install.
- You found a bug in the compiler, which is triggered by the Indy
package.


 I've installed 1.0.4 along with FPC 2.6.0: rpm's, under sudo rpm -ivh...
 First launch: asks to downgrade parameters from 1.1 to 1.0, OK.
 Some packages (outide of Lazarus and FPC folders) recompiled clean
 So far so good
 lazdaemon about to be installed:

 complie it: BOUM !
 Write error: Unable to create  file
 /usr/lib64/lazarus/packager/registration/fclaz.pas
 ABORT

It should never write that file. Unless you changed the package
fcl.lpk.

Sorry, I didn't change anything after install



 tools-configure build lazarus:
 Optimized IDe, gtk2, verbose, clea up automatically, restart after
 build, confirm before build, no update revision
 Button Build:  BOUM !
 same error as above

 After installation under sudo, all folders and files have root as owner
 and all folders have permission rwxr-xr-x, same for executable files
 It sounds good for Linux permissions but a normal user can't rebuild the
 IDE, right ?

A normal user can not change files under /usr/
That's why the IDE compiles under ~/.lazarus/bin


 Something to do with permissions (chown, chmod) ?
 So what's next, doctor ?

Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install
fpc-2.6.0-2.fc17.x86_64.rpm
fpc-src-2.6.0-2.fc17.x86_64.rpm
lazarus-1.0.4-0.x86_64.rpm
Install package lazdaemon.
This is exactly what I've done. But lazdaemon doesn't even compile (see 
error above)

I can do it again if you ask me to do so


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny

After doing a chown -R myuser:users ./lazarus/*
lazdaemon package compiles
The install the package (from the package project: More-Install-build 
Lazarus), a lot of packages do compile OK;

But then when Lazarus itself is about to compile: BOUM:

Compiling package SynEdit 1.0 completed
/usr/lib64/lazarus/components/sqldb/sqlstringspropertyeditordlg.pas(64,7) Hint: 
Parameter Shift not used

Compiling package SQLDBLaz 1.0.1 completed
Fatal: Can't find unit system used by Lazarus

It seems to be a persions problem. I guess I'll have to do the same for 
fpc units ans sources output folder


Remember that installation couldn't be done unless sudo is used. All 
files are therefore owned by root.


Antonio.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny
I've done the same (chown myuser:users) on /usr/share/fpcsorc/* when 
trying to install the lazdaemon package:


Fatal: Can't find unit system used by Lazarus

Antonio.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Mattias Gaertner
On Mon, 28 Jan 2013 10:34:16 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 After doing a chown -R myuser:users ./lazarus/*
 lazdaemon package compiles
 The install the package (from the package project: More-Install-build 
 Lazarus), a lot of packages do compile OK;
 But then when Lazarus itself is about to compile: BOUM:
 
 Compiling package SynEdit 1.0 completed
 /usr/lib64/lazarus/components/sqldb/sqlstringspropertyeditordlg.pas(64,7) 
 Hint: 
 Parameter Shift not used
 Compiling package SQLDBLaz 1.0.1 completed
 Fatal: Can't find unit system used by Lazarus
 
 It seems to be a persions problem. I guess I'll have to do the same for 
 fpc units ans sources output folder
 
 Remember that installation couldn't be done unless sudo is used. All 
 files are therefore owned by root.

All system files are owned by root. That are the files in /usr/*.
All files in ~/lazarus should be owned by your user. Unless you start
Lazarus with another user. You did start the IDE as myuser, not with
sudo, do you?

I will check in my 64bit fedora vm.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny


Le 28/01/2013 10:54, Mattias Gaertner a écrit :


 It seems to be a persions problem. I guess I'll have to do the same for
 fpc units ans sources output folder

 Remember that installation couldn't be done unless sudo is used. All
 files are therefore owned by root.

All system files are owned by root. That are the files in /usr/*.

Sounds OK

All files in ~/lazarus should be owned by your user. Unless you start
Lazarus with another user. You did start the IDE as myuser, not with
sudo, do you?

Right.

I've tried to build Lazarus IDE with -vut option. It does not give more 
information.

somewhere in 25 megs of data:
...
Unitsearch: /usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl/system.ppu
Searching file /usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl/system.ppu... 
found
*PPU Loading /usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl/system.ppu 
-- the good one*

(SYSTEM)   PPU Name: /usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl/system.ppu
Unitsearch: system.ppu
Searching file system.ppu... not found
...

Last lines are:
PPU Loading 
/usr/lib64/lazarus/ideintf/units/x86_64-linux/gtk2/idedialogs.ppu
PPU Loading 
/usr/lib64/lazarus/ideintf/units/x86_64-linux/gtk2/listviewpropedit.ppu
PPU Loading 
/usr/lib64/lazarus/ideintf/units/x86_64-linux/gtk2/imagelisteditor.ppu

PPU Loading /usr/lib64/lazarus/lcl/units/x86_64-linux/colorbox.ppu
PPU Loading 
/usr/lib64/lazarus/ideintf/units/x86_64-linux/gtk2/componenttreeview.ppu
PPU Loading 
/usr/lib64/lazarus/ideintf/units/x86_64-linux/gtk2/oifavouriteproperties.ppu
PPU Loading 
/usr/lib64/lazarus/packager/units/x86_64-linux/lazaruspackageintf.ppu
/usr/lib64/lazarus/components/synedit/syneditlazdsgn.pas(37,55) Hint: 
Unit SynGutterLineOverview not used in SynEditLazDsgn
PPU Loading 
/usr/lib64/lazarus/components/synedit/units/x86_64-linux/gtk2/syneditregexsearch.ppu
PPU Loading 
/usr/lib64/lazarus/components/synedit/units/x86_64-linux/gtk2/synhighlighterjscript.ppu
PPU Loading 
/usr/lib64/lazarus/components/synedit/units/x86_64-linux/gtk2/synhighlighterposition.ppu
PPU Loading 
/usr/lib64/lazarus/components/synedit/units/x86_64-linux/gtk2/synplugintemplateedit.ppu
PPU Loading 
/usr/lib64/lazarus/components/synedit/units/x86_64-linux/gtk2/syneditmarkupguttermark.ppu

Compiling package SynEdit 1.0 completed
Compiling package SQLDBLaz 1.0.1 completed
*Fatal: Can't find unit system used by Lazarus*



I will check in my 64bit fedora vm.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Mattias Gaertner
On Mon, 28 Jan 2013 10:16:31 +0100
Mattias Gaertner nc-gaert...@netcologne.de wrote:

[...]
 Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install
 fpc-2.6.0-2.fc17.x86_64.rpm
 fpc-src-2.6.0-2.fc17.x86_64.rpm
 lazarus-1.0.4-0.x86_64.rpm
 Install package lazdaemon.

It works on Fedora 17 64bit.

After uninstall, check that the following files are gone:
/usr/lib64/fpc
/usr/lib64/lazarus
/etc/fpc.cfg
~/.lazarus

Maybe there is a problem with OpenSuse 64bit.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny



Le 28/01/2013 11:30, Mattias Gaertner a écrit :

On Mon, 28 Jan 2013 10:16:31 +0100
Mattias Gaertner nc-gaert...@netcologne.de wrote:


[...]
Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install
fpc-2.6.0-2.fc17.x86_64.rpm
fpc-src-2.6.0-2.fc17.x86_64.rpm
lazarus-1.0.4-0.x86_64.rpm
Install package lazdaemon.


It works on Fedora 17 64bit.

After uninstall, check that the following files are gone:
/usr/lib64/fpc
/usr/lib64/lazarus
/etc/fpc.cfg
~/.lazarus

done all this with 1.0.5 and latest 1.1. Always the same scenario:
install ok
build lazdaemon: permission error
chmod myuser:users lazaus/* fpc/* and fpcsrc/*
re-buuild lazdaemon: OK
install: all packages rebuilt OK
but
Fatal: Can't find unit system used by Lazarus

I'm really disappointed

I have a clone of this OpenSuse VM in which the Inlylaz package has been 
successfully installed. But it is a test machine and the only I have 
which can complie production projects. So there is no chance to use it 
for testing.





Maybe there is a problem with OpenSuse 64bit.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Mattias Gaertner
On Mon, 28 Jan 2013 13:11:07 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 
 
 Le 28/01/2013 11:30, Mattias Gaertner a écrit :
  On Mon, 28 Jan 2013 10:16:31 +0100
  Mattias Gaertner nc-gaert...@netcologne.de wrote:
 
  [...]
  Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install
  fpc-2.6.0-2.fc17.x86_64.rpm
  fpc-src-2.6.0-2.fc17.x86_64.rpm
  lazarus-1.0.4-0.x86_64.rpm
  Install package lazdaemon.
 
  It works on Fedora 17 64bit.
 
  After uninstall, check that the following files are gone:
  /usr/lib64/fpc
  /usr/lib64/lazarus
  /etc/fpc.cfg
  ~/.lazarus
 done all this with 1.0.5 and latest 1.1. Always the same scenario:
 install ok
 build lazdaemon: permission error
 chmod myuser:users lazaus/* fpc/* and fpcsrc/*
 re-buuild lazdaemon: OK
 install: all packages rebuilt OK
 but
 Fatal: Can't find unit system used by Lazarus
 
 I'm really disappointed
 
 I have a clone of this OpenSuse VM in which the Inlylaz package has been 
 successfully installed. But it is a test machine and the only I have 
 which can complie production projects. So there is no chance to use it 
 for testing.

Have you tried to use lazarus from svn?


  Maybe there is a problem with OpenSuse 64bit.


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny

Look at the last lines of the messages window

/usr/bin/fpc -Ur -Xs -O2 -n -gl -Sci -dlclgtk2 -Fu../designer 
-Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager 
-Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fiinclude 
-Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/gtk2 -Cg 
-Fl/usr/lib64/gcc/x86_64-suse-linux/4.5 -Fl/usr/X11R6/lib64/Xaw3d 
-Fl/usr/X11R6/lib64 -Fl/usr/lib64/Xaw3d -Fl/usr/X11R6/lib/Xaw3d 
-Fl/usr/X11R6/lib -Fl/usr/lib/Xaw3d -Fl/usr/x86_64-suse-linux/lib 
-Fl/usr/local/lib -Fl/opt/kde3/lib -Fl/lib64 -Fl/lib -Fl/usr/lib64 
-Fl/usr/lib -Fl/usr/local/lib64 -Fl/opt/kde3/lib64 -Flinclude 
-Fl/etc/ld.so.conf.d/*.conf @/home/sita/.lazarus/idemake.cfg 
-FU/usr/lib64/lazarus/units/x86_64-linux/gtk2 -FE/usr/lib64/lazarus 
-dx86_64 -dRELEASE lazarus.pp

Fatal: Can't find unit system used by Lazarus

Nowhere any /usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl/ nor 
/usr/share/fpcsrc/rtl/units/x86_64-linux/ are named in -Fu


When I submit the compilation line in a shell under myuser I get the 
same error, as well as under root !!



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny
When I add -Fu/usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl to the 
previous command line, I get another error:

Fatal: Can't find unit contnrs used by Masks

This means that system.ppu has been found !

I guess that adding folders it will work one day !
What's wrong ? /etc/fpc.cfg ?


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Mattias Gaertner
On Mon, 28 Jan 2013 14:24:30 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 Look at the last lines of the messages window
 
 /usr/bin/fpc -Ur -Xs -O2 -n -gl -Sci -dlclgtk2 -Fu../designer 
 -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager 
 -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fiinclude 
 -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/gtk2 -Cg 
 -Fl/usr/lib64/gcc/x86_64-suse-linux/4.5 -Fl/usr/X11R6/lib64/Xaw3d 
 -Fl/usr/X11R6/lib64 -Fl/usr/lib64/Xaw3d -Fl/usr/X11R6/lib/Xaw3d 
 -Fl/usr/X11R6/lib -Fl/usr/lib/Xaw3d -Fl/usr/x86_64-suse-linux/lib 
 -Fl/usr/local/lib -Fl/opt/kde3/lib -Fl/lib64 -Fl/lib -Fl/usr/lib64 
 -Fl/usr/lib -Fl/usr/local/lib64 -Fl/opt/kde3/lib64 -Flinclude 
 -Fl/etc/ld.so.conf.d/*.conf @/home/sita/.lazarus/idemake.cfg 
 -FU/usr/lib64/lazarus/units/x86_64-linux/gtk2 -FE/usr/lib64/lazarus 
 -dx86_64 -dRELEASE lazarus.pp
 Fatal: Can't find unit system used by Lazarus
 
 Nowhere any /usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl/ nor 
 /usr/share/fpcsrc/rtl/units/x86_64-linux/ are named in -Fu

They are defined in the global fpc config: /etc/fpc.cfg.

 
 When I submit the compilation line in a shell under myuser I get the 
 same error, as well as under root !!


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Mattias Gaertner
On Mon, 28 Jan 2013 11:30:03 +0100
Mattias Gaertner nc-gaert...@netcologne.de wrote:

 On Mon, 28 Jan 2013 10:16:31 +0100
 Mattias Gaertner nc-gaert...@netcologne.de wrote:
 
 [...]
  Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install
  fpc-2.6.0-2.fc17.x86_64.rpm
  fpc-src-2.6.0-2.fc17.x86_64.rpm
  lazarus-1.0.4-0.x86_64.rpm
  Install package lazdaemon.
 
 It works on Fedora 17 64bit.
 
 After uninstall, check that the following files are gone:
 /usr/lib64/fpc
 /usr/lib64/lazarus
 /etc/fpc.cfg
 ~/.lazarus
 
 Maybe there is a problem with OpenSuse 64bit.

It works on OpenSuse 12.1 64bit too.
I successfully installed lazdaemon.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Mattias Gaertner
On Mon, 28 Jan 2013 14:29:30 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 When I add -Fu/usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl to the 
 previous command line, I get another error:
 Fatal: Can't find unit contnrs used by Masks
 
 This means that system.ppu has been found !

You wrote that some packages compiled successfully. So system.ppu was
found.
What about compiling a simple project?

 
 I guess that adding folders it will work one day !
 What's wrong ? /etc/fpc.cfg ?

/etc/fpc.cfg is installed by the fpc rpm.

It should contain the lines:
#IFDEF CPU64
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/rtl
#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ENDIF

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny


Le 28/01/2013 14:33, Mattias Gaertner a écrit :

On Mon, 28 Jan 2013 11:30:03 +0100
Mattias Gaertner nc-gaert...@netcologne.de wrote:


On Mon, 28 Jan 2013 10:16:31 +0100
Mattias Gaertner nc-gaert...@netcologne.de wrote:


[...]
Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install
fpc-2.6.0-2.fc17.x86_64.rpm
fpc-src-2.6.0-2.fc17.x86_64.rpm
lazarus-1.0.4-0.x86_64.rpm
Install package lazdaemon.

It works on Fedora 17 64bit.

After uninstall, check that the following files are gone:
/usr/lib64/fpc
/usr/lib64/lazarus
/etc/fpc.cfg
~/.lazarus

Maybe there is a problem with OpenSuse 64bit.

It works on OpenSuse 12.1 64bit too.
I have my clone VM wich works too (OpenSuse 12.1 like you). I did an IDE 
successfull compilation. And all installed packges have been 
successfully compiled too. Tha's why I can't figure out yet what's still 
missing :-$

I successfully installed lazdaemon.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Mattias Gaertner
On Mon, 28 Jan 2013 14:44:58 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 
 Le 28/01/2013 14:33, Mattias Gaertner a écrit :
  On Mon, 28 Jan 2013 11:30:03 +0100
  Mattias Gaertner nc-gaert...@netcologne.de wrote:
 
  On Mon, 28 Jan 2013 10:16:31 +0100
  Mattias Gaertner nc-gaert...@netcologne.de wrote:
 
  [...]
  Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install
  fpc-2.6.0-2.fc17.x86_64.rpm
  fpc-src-2.6.0-2.fc17.x86_64.rpm
  lazarus-1.0.4-0.x86_64.rpm
  Install package lazdaemon.
  It works on Fedora 17 64bit.
 
  After uninstall, check that the following files are gone:
  /usr/lib64/fpc
  /usr/lib64/lazarus
  /etc/fpc.cfg
  ~/.lazarus
 
  Maybe there is a problem with OpenSuse 64bit.
  It works on OpenSuse 12.1 64bit too.
 I have my clone VM wich works too (OpenSuse 12.1 like you). I did an IDE 
 successfull compilation. And all installed packges have been 
 successfully compiled too. Tha's why I can't figure out yet what's still 
 missing :-$
  I successfully installed lazdaemon.

Can you send me the output of View / IDE Internals / About FPC?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny



Le 28/01/2013 14:39, Mattias Gaertner a écrit :

On Mon, 28 Jan 2013 14:29:30 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:


When I add -Fu/usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl to the
previous command line, I get another error:
Fatal: Can't find unit contnrs used by Masks

This means that system.ppu has been found !


You wrote that some packages compiled successfully. So system.ppu was
found.
What about compiling a simple project?

A simple project compiles ok, but a shared library outputs this:
/usr/bin/ld: warning: /home/sources/release/link.res contains output 
sections; did you forget -T?
/usr/bin/ld: 
/usr/lib64/lazarus/components/lazutils/lib/x86_64-linux/lazutf8.o: 
relocation R_X86_64_32S against `.data' can not be used when making a 
shared object; recompile with -fPIC
/usr/lib64/lazarus/components/lazutils/lib/x86_64-linux/lazutf8.o: could 
not read symbols: Bad value

SitaUdfLib.lpr(11) Error: Error while linking

but in project options, other, there are:
-fPIC
-dFPC_PIC





I guess that adding folders it will work one day !
What's wrong ? /etc/fpc.cfg ?


/etc/fpc.cfg is installed by the fpc rpm.

It should contain the lines:
#IFDEF CPU64
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/rtl
#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ENDIF

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny



Le 28/01/2013 14:39, Mattias Gaertner a écrit :

/etc/fpc.cfg is installed by the fpc rpm.

It should contain the lines:
#IFDEF CPU64
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/rtl
#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ENDIF

Mattias

my /etc/fpc.cfg

# searchpath for units and other system dependent things
#IFDEF CPU64
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/rtl
#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ENDIF
permissions where root:root rw-r--r--
I changed them to myuser:users without success. Still system unit missing



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Mattias Gaertner
On Mon, 28 Jan 2013 15:06:58 +0100
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 
 
 Le 28/01/2013 14:39, Mattias Gaertner a écrit :
  On Mon, 28 Jan 2013 14:29:30 +0100
  Antonio Fortuny a.fort...@sitasoftware.lu wrote:
 
  When I add -Fu/usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl to the
  previous command line, I get another error:
  Fatal: Can't find unit contnrs used by Masks
 
  This means that system.ppu has been found !
 
  You wrote that some packages compiled successfully. So system.ppu was
  found.
  What about compiling a simple project?
 A simple project compiles ok, but a shared library outputs this:
 /usr/bin/ld: warning: /home/sources/release/link.res contains output 
 sections; did you forget -T?
 /usr/bin/ld: 
 /usr/lib64/lazarus/components/lazutils/lib/x86_64-linux/lazutf8.o: 
 relocation R_X86_64_32S against `.data' can not be used when making a 
 shared object; recompile with -fPIC
 /usr/lib64/lazarus/components/lazutils/lib/x86_64-linux/lazutf8.o: could 
 not read symbols: Bad value
 SitaUdfLib.lpr(11) Error: Error while linking
 
 but in project options, other, there are:
 -fPIC
 -dFPC_PIC

According to the documentation units in a library must be compiled with
-Cg (=-fPIC). Maybe all units must be compiled with this flag?

Maybe you can ask on the fpc list.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-25 Thread Mattias Gaertner

Antonio Fortuny a.fort...@sitasoftware.lu hat am 25. Januar 2013 um 09:07
geschrieben:
 Yes, again.
 Hi Folks.

 On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0
 After a successful compilation of Indy 10.5.9 package (latest SVN
 source) when trying to install it: BOUM !
 All packages up to SQLDBLaz have been compiled OK
 Fatal: Can't find unit system used by Lazarus
 while Lazarus was compiling itself.
 Removing the package from the installation list does not help.
 In a Win32 compilation and intallation of the same package was a success
 I'm almost sure that this error has been reported some time ago but Im
 not able to find it.
 Any ideas ?

Maybe you mixed two Lazarus?

If yes:
Close IDE.
Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml.
Start IDE and build it clean.


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-25 Thread Antonio Fortuny



Le 25/01/2013 09:42, Mattias Gaertner a écrit :

Any ideas ?


Maybe you mixed two Lazarus?

AFAIK this isn't the case


If yes:
Close IDE.
Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml.
Start IDE and build it clean.


I'll try this anyway


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus