Recent

Author Topic: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39  (Read 1724 times)

GhostCoder

  • Newbie
  • Posts: 5
I've just installed Lazarus IDE 2.2.6 through Fedora 39's Discover Package Manager. The package installed was 2.2.6-5.fc39 However, I've been receiving the following error:
  • Failed to generate the configuration file "/home/krisrh21/.config/fppkg.cfg": Could not find libgcc
    Could not find libgcc
    An unhandled exception occurred at $00000000004032E0:
    EInOutError: Access denied
      $00000000004032E0

After this error, the following error then pops up:
  • Failed to create a new Fppkg configuration () You will have to fix the configuration manually or reinstall Free Pascal.

These startup errors doesn't stop Lazarus from working normally nor prevent me from working on any Pascal projects, but it will prevent me from installing packages is what I'm guessing.

In Konsole, I've queried Fedora if libgcc is installed with the command sudo dnf list libgcc and found libgcc 13.2.1-4.fc39 is indeed installed. I've attached a screenshot of the error as received by Lazarus IDE 2.2.6.

How do I fix this?
« Last Edit: November 20, 2023, 03:26:22 am by GhostCoder »

zeljko

  • Hero Member
  • *****
  • Posts: 1585
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #1 on: November 20, 2023, 03:14:28 pm »
Try to install libgcc-devel if it exists (maybe helps)

GhostCoder

  • Newbie
  • Posts: 5
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #2 on: November 21, 2023, 07:19:08 am »
sudo dnf install libgcc-devel reports the following error in Konsole:
  • No match for argument: libgcc-devel
    Error: Unable to find a match: libgcc-devel

Could I try copying libgcc over to Lazarus's directory and see if that fixes the problem?
« Last Edit: November 21, 2023, 07:22:48 am by GhostCoder »

Seenkao

  • Hero Member
  • *****
  • Posts: 539
    • New ZenGL.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

GhostCoder

  • Newbie
  • Posts: 5
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #4 on: November 21, 2023, 09:44:49 am »
sudo dnf install libgcc-dev produces error:
  • No match for argument: libgcc-dev
.
« Last Edit: November 21, 2023, 09:47:38 am by GhostCoder »

Zvoni

  • Hero Member
  • *****
  • Posts: 2229
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #5 on: November 21, 2023, 09:50:16 am »
sudo dnf install libgcc-dev produces error:
  • No match for argument: libgcc-dev
.
Instead of just blindly trying to dnf whatever people throw at you, how about researching it first?
https://packages.fedoraproject.org/pkgs/gcc/
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

Seenkao

  • Hero Member
  • *****
  • Posts: 539
    • New ZenGL.
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #6 on: November 21, 2023, 02:02:02 pm »
sudo dnf install libgcc-dev produces error:
  • No match for argument: libgcc-dev
.
да, это моя ошибка. Зайдите в менеджер пакетов и посмотрите какая версия gcc у вас установлена. И установите ту же версию с -dev.

google translate:
yes, it's my mistake. Go to your package manager and see what version of gcc you have installed. And install the same version with -dev.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

zeljko

  • Hero Member
  • *****
  • Posts: 1585
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #7 on: November 21, 2023, 04:24:42 pm »

Seenkao

  • Hero Member
  • *****
  • Posts: 539
    • New ZenGL.
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #8 on: November 21, 2023, 04:37:09 pm »
Не знал, очередная моя ошибка. Значит её нужно учесть и не делать моих ошибок! )))

Google translate:
I didn't know, another mistake of mine. This means you need to take it into account and not make my mistakes! )))
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

GhostCoder

  • Newbie
  • Posts: 5
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #9 on: November 22, 2023, 07:00:52 am »
sudo dnf install libgcc-dev produces error:
  • No match for argument: libgcc-dev
.
да, это моя ошибка. Зайдите в менеджер пакетов и посмотрите какая версия gcc у вас установлена. И установите ту же версию с -dev.

google translate:
yes, it's my mistake. Go to your package manager and see what version of gcc you have installed. And install the same version with -dev.

Strangely enough, Discover does even show libgcc in it's Installed section, so I started Konsole and typed in the command sudo dnf list libgcc and it reported the library version at 13.2.1-4.fc39.

Doesn't help the fact that, Fedora doesn't have libgcc-dev.
« Last Edit: November 22, 2023, 07:03:17 am by GhostCoder »

GhostCoder

  • Newbie
  • Posts: 5
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #10 on: November 22, 2023, 07:06:21 am »
libgcc-devel
libgcc-dev

Fedora uses pkg-devel, debian alikes are pkg-dev.

I've tried that. Fedora has no package named libgcc-devel or libgcc-dev.

TRon

  • Hero Member
  • *****
  • Posts: 2229
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #11 on: November 22, 2023, 10:58:17 am »
I've just installed Lazarus IDE 2.2.6 through Fedora 39's Discover Package Manager. The package installed was 2.2.6-5.fc39 However, I've been receiving the following error:
Known issue with Lazarus 2.2.6

Quote
These startup errors doesn't stop Lazarus from working normally nor prevent me from working on any Pascal projects, but it will prevent me from installing packages is what I'm guessing.
It will prevent you from installing packages using the Free Pascal (fppkg) package manager which Lazarus does not use.

You can safely ignore the error message. All it is, is annoying.

In case that is something that bothers you too much then consider installing Lazarus 3.0RC2.

Quote
How do I fix this?
Simple answer: You don't.

Elaborated answer: by patching the Lazarus source-code

Zvoni

  • Hero Member
  • *****
  • Posts: 2229
Re: "Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39
« Reply #12 on: November 22, 2023, 01:30:06 pm »
Or bottom line (final idea):
Don't install Lazarus/Freepascal from any Linux-Repos (which is a bad idea in general....)

Use fpcupdeluxe.
it pulls everything as source-code and compiles it in situ
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018