Recent

Author Topic: LazPaint compilation error on sid / and64  (Read 1307 times)

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
LazPaint compilation error on sid / and64
« on: December 23, 2022, 02:04:51 pm »
Hello,

Apparently, my app doesn't compile on Debian due to a linking problem.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026718

Code: [Select]
(9015) Linking /<<PKGBUILDDIR>>/lazpaint/release/bin/lazpaint
/usr/bin/ld.bfd: cannot find -lgdk-x11-2.0: No such file or directory
/usr/bin/ld.bfd: cannot find -lgtk-x11-2.0: No such file or directory
/usr/bin/ld.bfd: cannot find -lX11: No such file or directory
/usr/bin/ld.bfd: cannot find -lgdk_pixbuf-2.0: No such file or directory
/usr/bin/ld.bfd: cannot find -lgobject-2.0: No such file or directory
/usr/bin/ld.bfd: cannot find -lglib-2.0: No such file or directory
/usr/bin/ld.bfd: cannot find -lgthread-2.0: No such file or directory
/usr/bin/ld.bfd: cannot find -lgmodule-2.0: No such file or directory
/usr/bin/ld.bfd: cannot find -lpango-1.0: No such file or directory
/usr/bin/ld.bfd: cannot find -lcairo: No such file or directory
/usr/bin/ld.bfd: cannot find -latk-1.0: No such file or directory
/usr/bin/ld.bfd: cannot find -lpangocairo-1.0: No such file or directory
/<<PKGBUILDDIR>>/lazpaint/lazpaint.lpr(229,1) Error: (9013) Error while linking

Does anyone have an idea why this would happen?

Regards
Conscience is the debugger of the mind

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: LazPaint compilation error on sid / and64
« Reply #1 on: December 23, 2022, 02:10:18 pm »
Do you have gtk2 development packages installed ?

balazsszekely

  • Guest
Re: LazPaint compilation error on sid / and64
« Reply #2 on: December 23, 2022, 02:49:25 pm »
@circular
See point 3: https://wiki.lazarus.freepascal.org/BGRA_Installation_on_Linux , install every package, except subversion, zip and rar, you probably don't need those.

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint compilation error on sid / and64
« Reply #3 on: December 31, 2022, 01:18:05 am »
Hello @marcov and @GetMem

Thanks for the feedback.

I am not installing it myself, it is built on a Debian system. Probably using an automated tool which installs all necessary packages, but to be sure I asked on the bug thread (see link below).

Due to the compilation problem, the package is marked for removal on the Debian distribution:

Quote
lazpaint 7.2.2-1 is marked for autoremoval from testing on 2023-01-18

It is affected by these RC bugs:
1026718: lazpaint: FTBFS: /usr/bin/ld.bfd: cannot find -lpangocairo-1.0: No such file or directory
 https://bugs.debian.org/1026718

It (build-)depends on packages with these RC bugs:
1026719: lazarus: vmg: FTBFS: /usr/bin/ld.bfd: cannot find -latk-1.0: No such file or directory
 https://bugs.debian.org/1026719
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint compilation error on sid / and64
« Reply #4 on: January 03, 2023, 06:23:37 am »
Apparently, the problem is related to gtk2 dependency:
Quote from: Paul Gevers <elbrus@debian.org>
After this discussion (thanks for having it), I think it's best to
reopen bug 967348, have fp-units-gtk2-x.y.z depend on libgtk2.0-dev
again and *stop shipping* fp-units-gtk2-x.y.z once libgtk2.0-dev needs
to be removed.
Conscience is the debugger of the mind

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: LazPaint compilation error on sid / and64
« Reply #5 on: January 17, 2023, 10:01:05 pm »
I'm running Debian Bookworm/Sid on x86_64. What version of Lazarus and FPC do you have?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint compilation error on sid / and64
« Reply #6 on: January 21, 2023, 03:57:00 am »
It was using the current version on sid of fpc.

The problem has been reassigned to fpc and it seems it has been fixed.
Conscience is the debugger of the mind

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: LazPaint compilation error on sid / and64
« Reply #7 on: January 21, 2023, 08:34:45 am »
It was using the current version on sid of fpc.

The problem has been reassigned to fpc and it seems it has been fixed.

So a Debian packaging problem.

It's important to distinguish this from other potential linking problems: Bookworm/Sid requires FPC 3.2.2.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

TRon

  • Hero Member
  • *****
  • Posts: 2435
Re: LazPaint compilation error on sid / and64
« Reply #8 on: January 21, 2023, 09:14:10 am »
It's important to distinguish this from other potential linking problems: Bookworm/Sid requires FPC 3.2.2.
Upfront apologies as I've read this without using context.

Do you mean the official FPC distro package, the combination with Lazarus or should I take that as a challenge to get a FPC < 3.2.2 working on bookworm ?

Thaddy

  • Hero Member
  • *****
  • Posts: 14214
  • Probably until I exterminate Putin.
Re: LazPaint compilation error on sid / and64
« Reply #9 on: January 21, 2023, 09:20:10 am »
If it is fixed it  may be in backports, so add that. Btw I have 3.2.2 and 3.2.0 running on Debian x86_64-linux, but I installed from source.
Specialize a type, not a var.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: LazPaint compilation error on sid / and64
« Reply #10 on: January 21, 2023, 09:27:25 am »
a challenge to get a FPC < 3.2.2 working on bookworm ?

That one. I'll try to fill in a bit more detail later, but from memory it's a problem that won't raise its head unless importing C libraries (i.e. cthreads etc.) and is something to do with a symbol which should be marked optional.

Also you won't be able to progress from 3.0.4 on x86_64 "Bookworm" to 3.2.2.

Usual developer response: "we only support the current version".

Slightly later: https://forum.lazarus.freepascal.org/index.php/topic,61001.msg457935.html#msg457935

Also looking at a moderately-large app which I was hoping to continue to be able to build using a slightly-older version of Lazarus (because of stuff on the console window screen which was subsequently disabled):

Code: Text  [Select][+][-]
  1. ...
  2. (9015) Linking /usr/local/src/b5500-emulator/trunk/B5k5-x86_64-linux
  3. Warning: (9034) "crtbeginS.o" not found, this will probably cause a linking failure
  4. Warning: (9034) "crtendS.o" not found, this will probably cause a linking failure
  5. /usr/bin/ld: warning: /usr/local/src/b5500-emulator/trunk/link.res contains output sections; did you forget -T?
  6. /usr/bin/ld: /usr/local/lib/fpc/3.0.4/units/x86_64-linux/rtl/cprt0.o: in function `_start':
  7. (.text+0x3c): undefined reference to `__libc_csu_init'
  8. /usr/bin/ld: (.text+0x43): undefined reference to `__libc_csu_fini'
  9. Error: (9013) Error while linking
  10. Fatal: (10026) There were 1 errors compiling module, stopping
  11. Fatal: (1018) Compilation aborted
  12. Error: (lazarus) Compile Project, Target: B5k5-x86_64-linux: stopped with exit code 1
  13. Error: (lazbuild) failed compiling of project /usr/local/src/b5500-emulator/trunk/B5k5.lpi
  14.  

That was FPC 3.0.4 with Lazarus 2.0.6, multithreaded app but apart from that nothing particularly fancy.

MarkMLl

« Last Edit: January 21, 2023, 09:45:26 am by MarkMLl »
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

TRon

  • Hero Member
  • *****
  • Posts: 2435
Re: LazPaint compilation error on sid / and64
« Reply #11 on: January 21, 2023, 09:50:02 am »
Thank you for the additional information MarkMLI.

I'll have a look at it but unfortunately a bit later as currently the ftp mirrors of FPC are down for me (this let my current build-script fail as it is not suited for SF).

PS: should we transfer the conversation over to the link you posted or open up another thread in order not to pollute this one ?

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: LazPaint compilation error on sid / and64
« Reply #12 on: January 21, 2023, 10:04:56 am »
New thread I'd suggest. However my suspicion is that the C library issue is fixed in the development version- albeit with no plans to backport to 3.2- and the other one is a "won't fix".

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018