Recent

Author Topic: [SOLVED] lazarus svn compile error with fpc-2.6.0 on ubuntu 12.04  (Read 4703 times)

falu

  • Newbie
  • Posts: 6
  • frantic
    • Falu.me
Hi,

I was tried to install lazarus svn with fpc.2.6 on ubuntu 12.04:

1. download fpc deb packages to fpc-deb dir:
Code: [Select]
$ mkdir fpc-deb
$ cd fpc-deb
$ wget ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.6.0/i386-linux/deb/*.deb

2. installing:
Code: [Select]
$ sudo dpgk -i *.debhere comes some error... a few packages missing

3. solve it:
Code: [Select]
$ sudo apt-get install -f
4. install again:
Code: [Select]
$ sudo dpkg -i *.debfine!

5. download lazarus from svn:
Code: [Select]
$ cd ..
$ sudo apt-get install subversion
$ svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus

6. compile:
Code: [Select]
$ cd lazarus
$ make all

7. oops, i get this error message:
Code: [Select]
...
Compiling lazaruspackageintf.pas
Fatal: Can't find unit process used by RegisterFCL
Fatal: Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory `/home/user/lazarus/packager/registration'
make: *** [registration] Error 2

What am i doing wrong? With fpc-2.4 works well...

« Last Edit: July 21, 2012, 04:46:52 pm by falu »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: lazarus svn compile error with fpc-2.6.0 on ubuntu 12.04
« Reply #1 on: July 21, 2012, 12:07:11 am »
paste the output of this:
Code: [Select]
make clean all OPT=-vt | grep -m 50 -i "using unit path"

falu

  • Newbie
  • Posts: 6
  • frantic
    • Falu.me
Re: lazarus svn compile error with fpc-2.6.0 on ubuntu 12.04
« Reply #2 on: July 21, 2012, 03:35:21 pm »
Code: [Select]
Makefile:2332: warning: overriding commands for target `.'
Makefile:2330: warning: ignoring old commands for target `.'
Using unit path: ./
Using unit path: /usr/lib/fpc/2.6.0/units/i386-linux/rtl/
Using unit path: /usr/lib/fpc/2.6.0/
make[1]: *** [fcllaz.ppu] Error 1
make: *** [registration] Error 2

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: lazarus svn compile error with fpc-2.6.0 on ubuntu 12.04
« Reply #3 on: July 21, 2012, 04:14:17 pm »
Now it's clear your fpc.cfg doesn't contain -Fu line pointing to other units directory. Please edit it, actually a single -Fu line containing:
Code: [Select]
/usr/lib/fpc/$fpcversion/units/i386-linux/*Should be enough, no need for other -Fu (except for your own custom ones).

falu

  • Newbie
  • Posts: 6
  • frantic
    • Falu.me
Re: lazarus svn compile error with fpc-2.6.0 on ubuntu 12.04
« Reply #4 on: July 21, 2012, 04:46:03 pm »
Thank You!

It's working!

 

TinyPortal © 2005-2018