Recent

Author Topic: [SOLVED] "The system.ppu for this target was not found in the FPC..."  (Read 13240 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Hi,

I'm updating lazarus and fpc from svn like I always do:

1. Updating SVN repository of lazarus and fpc
2. Creating DEB packages:
- sudo ./create_fpc_deb.sh fpc /path/to/the/sources/of/fpc/
- Uninstall old and install new fpc
- ./create_fpc_deb.sh fpc-src /path/to/the/sources/of/fpc/
- ./create_lazarus_deb.sh append-revision
3. Install new debs (uninstall old first)

But today, when I run lazarus I get error:

"The project uses target OS=linux and CPU=x86_64.
The system.ppu for this target was not found in the FPC binary directories.
Make sure fpc is installed correctly for this target and fpc.cfg contains the right directories"

This error I have in new empty projects too. I Uninstalled this debs and installed debs that worked earlier and I have the same error. In environment -> Files, directories look ok. I can build all projects, so I do not know why this error occurs

Ubuntu 10.4 64 bit

Regards
« Last Edit: August 25, 2010, 01:24:21 pm by Dibo »

Dibo

  • Hero Member
  • *****
  • Posts: 1057
I unistalled fpc, fpc-src, lazarus and deleted directories. I deleted /etc/fpc.cfg too. Now I have "clean install" situation. After installing the packages, I still have the same error. Is fpc.cfg file in some other place too or this is new lazarus bug?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12019
  • Debugger - SynEdit - and more
    • wiki
try compiling with -va

This will cause a flood of information (many 1000 of lines, so make sure you capture the output in a file)

It will tell you for every file, all the paths that have been trie, and what was found (or not).

First look (grep) for  any other fpc.cfg file.
Maybe in your users home dir, maybe elsewhere (/etc/fpc/cfg is not the only location).

If no unexpected file was found, then check where it did look for the system.ppu, and where it found it.


Dibo

  • Hero Member
  • *****
  • Posts: 1057
try compiling with -va
I'm novice in linux. I'm using create_fpc_deb.sh and create_lazarus_deb.sh script. How can I use -va switch?
P.S. Should I somehow clean svn directories before run this scripts?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12595
  • FPC developer.

"The project uses target OS=linux and CPU=x86_64.
The system.ppu for this target was not found in the FPC binary directories.
Make sure fpc is installed correctly for this target and fpc.cfg contains the right directories"

Sounds like you didn't install a proper (x86_64) fpc release before you ran the scripts.

What does

fpc -iTP

print? It should print x86_64
This error I have in new empty projects too. I Uninstalled this debs and installed debs that worked earlier and I have the same error. In environment -> Files, directories look ok. I can build all projects, so I do not know why this error occurs

Ubuntu 10.4 64 bit

Regards
[/quote]

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Ok, problem solved. I forgot that Lazarus creates its own hidden directory in /home. I delete this folder before "clean install" and error disappeared. Thanks.

 

TinyPortal © 2005-2018