Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Compiling Lazarus 3.0 fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
n1ese
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2019
Posts: 82

PostPosted: Mon Jun 10, 2024 11:01 pm    Post subject: [SOLVED] Compiling Lazarus 3.0 fails Reply with quote

I need to upgrade my Lazarus build to 3.0 but it's not compiling. Any thoughts? Looks like it's having an issue with qt5.

Code:
ganymede /home/n1ese # emerge -pqv '=dev-lang/lazarus-3.0::gentoo'
[ebuild     U ] dev-lang/lazarus-3.0 [2.2.4-r1] USE="gui qt5%* -extras -gtk% -gtk2 -qt6%"


Code:

/usr/bin/ld: /var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus/lcl/units/x86_64-linux/qt5/qtint.o: in function `CREATE':
/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus/lcl/interfaces/qt5//qtobject.inc:44:(.text.n_qtint$_$tqtwidgetset_$__$$_create$$tqtwidgetset+0x16e): undefined reference to `QGuiApplication_setFallbackSessionManagementEnabled'
/usr/bin/ld: /var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus/lcl/units/x86_64-linux/qt5/qtobjects.o: in function `ENDX11SELECTIONLOCK':
/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus/lcl/interfaces/qt5//qtobjects.pas:3873:(.text.n_qtobjects$_$tqtclipboard_$__$$_endx11selectionlock+0x4d): undefined reference to `QTimer_singleShot3'
/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus/ide/lazarus.pp(171,1) Error: (9013) Error while linking
/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus/ide/lazarus.pp(171,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [Makefile:4362: lazarus] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus/ide'
make[1]: *** [Makefile:4801: ide] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus/ide'
make: *** [Makefile:3116: ide] Error 2
 * ERROR: dev-lang/lazarus-3.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/lazarus-3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/lazarus-3.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/lazarus-3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/lazarus-3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus'
 * S: '/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus'

>>> Failed to emerge dev-lang/lazarus-3.0, Log file:

>>>  '/var/tmp/portage/dev-lang/lazarus-3.0/temp/build.log'

 * Messages for package dev-lang/lazarus-3.0:

 * ERROR: dev-lang/lazarus-3.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/lazarus-3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/lazarus-3.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/lazarus-3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/lazarus-3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus'
 * S: '/var/tmp/portage/dev-lang/lazarus-3.0/work/lazarus


Code:
Portage 3.0.65 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr/no-multilib, gcc-14, glibc-2.39-r7, 6.10.0-rc2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.10.0-rc2-x86_64-Intel-R-_Core-TM-_i3-N305-with-glibc2.39
KiB Mem:    16150712 total,  13312612 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Mon, 10 Jun 2024 17:30:00 +0000
Head commit of repository gentoo: 4085720af6d3c01cce453aa0bf214f62e142f027
Timestamp of repository guru: Mon, 10 Jun 2024 11:33:42 +0000
Head commit of repository guru: 6761226647f484216f9e31579e8caebab733a144

sh bash 5.2_p26-r3
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r3::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-lang/perl:             5.38.2-r6::gentoo
dev-lang/python:           3.12.3-r1::gentoo, 3.13.0_beta1_p3::gentoo
dev-lang/rust:             1.78.0::gentoo
sys-apps/baselayout:      2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.6::gentoo
sys-devel/gcc:             14.1.1_p20240518::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.6::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=alderlake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XD
G_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=alderlake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-st
rict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch
userpriv usersandbox usersync xattr"
FFLAGS="-march=alderlake -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclud
e=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 bluetooth bzip2 cet crypt dbus elogind gdbm grub iconv icu libtirpc lm-sensors ncurses nls opengl openmp pam pcre pulseaudio readline seccomp split-usr ssl test-rust truetype unicode xattr z
lib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_use
r autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id user
dir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdran
d sha sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="l
ua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="
intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, L
IBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE,
STRINGS, STRIP, YACC, YFLAGS


Last edited by n1ese on Fri Jun 14, 2024 3:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
e8root
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2024
Posts: 94

PostPosted: Tue Jun 11, 2024 4:35 am    Post subject: Reply with quote

Same issue here.
First it complained about gtk and qt5 flags not being possible at the same time and then failed with qt5 with... just verified and it is the same error.
With qt6 also fails due to linker error but does not show what it is missing.

I managed to build it with gtk and separately with gtk2 USE flag and tried to build double commander using gtk2. Resulting program looks slightly different due to theme differences... but I guess it proves it compiled using new Lazarus version.

Then again how do I fix qt5 version?

p.s. Latest stable Lazarus is 2.0.12 and latest stable Portage is 3.0.63-r1. I use stable Portage.
_________________
Unix Wars - Episode V: AT&T Strikes Back
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 624
Location: Fife, Scotland

PostPosted: Tue Jun 11, 2024 8:38 am    Post subject: Reply with quote

The qt bindings are provided by dev-libs/libqt5pas.

It looks like libqt5pas needs a version bump - it is actually part of the lazarus source archive, and the current/only dev-libs/libqt5pas-1.2.9 is hardwired to the lazarus-2.2.4-0.tar.gz archive.

I'd suggest raising a bug on lazarus or libqt5pas.

I'm away from my main PC for a few days so I can't do very much.
Back to top
View user's profile Send private message
e8root
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2024
Posts: 94

PostPosted: Wed Jun 12, 2024 5:16 am    Post subject: Reply with quote

Copying files from https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_3_4?ref_type=tags to ebuild of dev-libs/libqt5pas 1.2.9 I was able to build and install new version and subsequently install Lazarus 3.0 with qt5 USE flag so indeed libqt5pas needs updating and updating it would resolve the issue.
_________________
Unix Wars - Episode V: AT&T Strikes Back
Back to top
View user's profile Send private message
n1ese
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2019
Posts: 82

PostPosted: Fri Jun 14, 2024 3:41 pm    Post subject: Reply with quote

I filed a bug report a few days ago. Appears to be fixed, version also bumped to 3.4. libqt5pas also bumped to 1.2.15.

https://bugs.gentoo.org/934158
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum