Sign in Join

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

Mailing lists / lazarus / 2016-03

Compiling on Odroid / RaspberryPi

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

steveg

I am trying to compile Laz on an Odroid Arm system (running Lubuntu 14.04 - LXDE)
I have fpc 3.1.1 compiled and installed ok (I believe)

Compiling the latest svn of Laz is giving the following error - (cant find unit)
process.ppu and friends are in
/usr/local/lib/fpc/3.1.1/units/arm-linux/fcl-process

as far as I can tell, the make script seems to only scan within the base and rtl dirs ? - therefore not seeing process.ppu and others.

appreciate any thoughts here

In the svn'd Lazarus dir - make OPT='vt' gives the following (cut to beginning of problem)

Searching file registerfcl.pas... found
(10000) Unitsearch: process.ppu
Searching file process.ppu... not found
Searching file PROCESS.PPU... not found
(10000) Unitsearch: ../units/arm-linux/process.ppu Searching file ../units/arm-linux/process.ppu... not found Searching file ../units/arm-linux/PROCESS.PPU... not found (10000) Unitsearch: process.pp
Searching file process.pp... not found
Searching file PROCESS.PP... not found
(10000) Unitsearch: process.pas
Searching file process.pas... not found
Searching file PROCESS.PAS... not found
(10000) Unitsearch: process.ppu
Searching file process.ppu... not found
Searching file PROCESS.PPU... not found
(10000) Unitsearch: process.pp
Searching file process.pp... not found
Searching file PROCESS.PP... not found
(10000) Unitsearch: process.pas
Searching file process.pas... not found
Searching file PROCESS.PAS... not found
(10000) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.ppu Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.ppu... not found Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PPU... not found (10000) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pp Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pp... not found Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PP... not found (10000) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pas Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pas... not found Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PAS... not found (10000) Unitsearch: /usr/local/lib/fpc/3.1.1/process.ppu Searching file /usr/local/lib/fpc/3.1.1/process.ppu... not found Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PPU... not found (10000) Unitsearch: /usr/local/lib/fpc/3.1.1/process.pp Searching file /usr/local/lib/fpc/3.1.1/process.pp... not found Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PP... not found (10000) Unitsearch: /usr/local/lib/fpc/3.1.1/process.pas Searching file /usr/local/lib/fpc/3.1.1/process.pas... not found Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PAS... not found (10000) Unitsearch: process.pp
Searching file process.pp... not found
Searching file PROCESS.PP... not found
(10000) Unitsearch: process.pas
Searching file process.pas... not found
Searching file PROCESS.PAS... not found
(10000) Unitsearch: process.pp
Searching file process.pp... not found
Searching file PROCESS.PP... not found
(10000) Unitsearch: process.pas
Searching file process.pas... not found
Searching file PROCESS.PAS... not found
(10000) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pp Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pp... not found Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PP... not found (10000) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pas Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pas... not found Searching file
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PAS... not found (10000) Unitsearch: /usr/local/lib/fpc/3.1.1/process.pp Searching file /usr/local/lib/fpc/3.1.1/process.pp... not found Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PP... not found (10000) Unitsearch: /usr/local/lib/fpc/3.1.1/process.pas Searching file /usr/local/lib/fpc/3.1.1/process.pas... not found Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PAS... not found /media/odroid/10e421d6-9d3e-4a3e-9281-fb50d1bd13e1/Apps/lazarus/packager/registration/registerfcl.pas(45,22) Fatal: (10022) Can't find unit process used by RegisterFCL Searching file registerfcl.pas... found
Fatal: (1018) Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory
`/media/odroid/10e421d6-9d3e-4a3e-9281-fb50d1bd13e1/Apps/lazarus/packager/registration' make: *** [registration] Error 2

Reply by email

Mattias Gaertner
to steveg
Show quoted text 11 lines
I am trying to compile Laz on an Odroid Arm system (running Lubuntu 14.04 - LXDE) I have fpc 3.1.1 compiled and installed ok (I believe) Compiling the latest svn of Laz is giving the following error - (cant find unit) process.ppu and friends are in /usr/local/lib/fpc/3.1.1/units/arm-linux/fcl-process as far as I can tell, the make script seems to only scan within the base and rtl dirs ? - therefore not seeing process.ppu and others.

Check that your /etc/fpc.cfg contains the -Fu paths to the fpc units.

Mattias

Reply by email

steveg
to Mattias Gaertner

Thanks Mattias -

I dont seem to have a /etc/fpc.cfg - possibly I didnt install fpc correctly ?
I svn'd fpc,
then make clean all / make install

Should I use a copy of another fpc.cfg and install it to /etc (and do I need to modify it at all)

I have been going around in circles with this for awhile (google etc), so I dont mind if you just point me to a web page to learn for myself - just need the right page :)

Thanks

Mattias Gaertner wrote 24 lines
On Tue, 15 Mar 2016 21:12:03 +1030 steveg wrote: > I am trying to compile Laz on an Odroid Arm system (running Lubuntu > 14.04 - LXDE) > I have fpc 3.1.1 compiled and installed ok (I believe) > > Compiling the latest svn of Laz is giving the following error - (cant > find unit) > process.ppu and friends are in > /usr/local/lib/fpc/3.1.1/units/arm-linux/fcl-process > > as far as I can tell, the make script seems to only scan within the base > and rtl dirs ? - therefore not seeing process.ppu and others. Check that your /etc/fpc.cfg contains the -Fu paths to the fpc units. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

steveg
to steveg
steveg wrote 15 lines
Thanks Mattias - I dont seem to have a /etc/fpc.cfg - possibly I didnt install fpc correctly ? I svn'd fpc, then make clean all / make install Should I use a copy of another fpc.cfg and install it to /etc (and do I need to modify it at all) I have been going around in circles with this for awhile (google etc), so I dont mind if you just point me to a web page to learn for myself - just need the right page :) Thanks

Sorry about the top post there -

have copied a 'standard' fpc.cfg to /etc (no instant fix though) tried adding '-Fu/units/$fpctarget/fcl-process' just to check for changes (no change)
Suggests I have my 'incoming' settings for '-Fu' all fu'd up :) Not sure where to go next, but still trying

Reply by email

Mattias Gaertner
to steveg: Thanks Mattias - I dont seem to have a /etc/fpc.cfg - possibly I didnt install fpc…
Show quoted text 6 lines
Thanks Mattias - I dont seem to have a /etc/fpc.cfg - possibly I didnt install fpc correctly ? I svn'd fpc, then make clean all / make install

In order to to do that you need a starting fpc. How did you install the first fpc on the system?

"make install" does everything, except making it the default compiler. This way "make install" can be used to install a second compiler. I wonder if there is a simple command to do a complete install as the main compiler.
To create a config you can use on Linux (Maybe it works on Odroid too):

./compiler/utils/samplecfg /usr/local/lib/fpc/3.1.1 /etc

Should I use a copy of another fpc.cfg and install it to /etc (and do I need to modify it at all)

That's possible too.

Mattias

Reply by email

steveg
to Mattias Gaertner
Show quoted text 17 lines
In order to to do that you need a starting fpc. How did you install the first fpc on the system? "make install" does everything, except making it the default compiler. This way "make install" can be used to install a second compiler. I wonder if there is a simple command to do a complete install as the main compiler. To create a config you can use on Linux (Maybe it works on Odroid too): ./compiler/utils/samplecfg /usr/local/lib/fpc/3.1.1 /etc > Should I use a copy of another fpc.cfg and install it to /etc > (and do I need to modify it at all) That's possible too. Mattias

That fixed the compiling - 1 small step for .... me

moving on to next problem though (way into compile) - now getting error in fpcres
running /usr/local/bin/fpres -v
/media/odroid/diskxxx/lazarus/ide/lazbuild.lpr
gives error of -
Debug: Trying to open file (as above)
Error: No known file format detected for file (as above) will continue with my investigations here

Thanks

Reply by email