Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799185 - dev-lang/lazarus-2.0.6 - /.../compiler_compilation_options.pas(395,18) Error: (3205) Illegal qualifier
Summary: dev-lang/lazarus-2.0.6 - /.../compiler_compilation_options.pas(395,18) Error:...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-29 08:01 UTC by Toralf Förster
Modified: 2022-12-12 18:59 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.10 KB, text/plain)
2021-06-29 08:01 UTC, Toralf Förster
Details
dev-lang:lazarus-2.0.6:20210629-072448.log.bz2 (dev-lang:lazarus-2.0.6:20210629-072448.log.bz2,65.26 KB, application/x-bzip)
2021-06-29 08:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,74.26 KB, text/plain)
2021-06-29 08:01 UTC, Toralf Förster
Details
environment (environment,32.87 KB, text/plain)
2021-06-29 08:01 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.62 KB, application/x-bzip)
2021-06-29 08:01 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,74.89 KB, application/x-bzip)
2021-06-29 08:01 UTC, Toralf Förster
Details
Patch to fix compilation error with fpc-3.2.2 (lazarus-2.0.6-fix-for-fpc-3.2.2.patch,3.03 KB, patch)
2021-08-24 16:26 UTC, Bill Binder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-06-29 08:01:41 UTC
(3104) Compiling ./frames/compiler_compilation_options.pas
/var/tmp/portage/dev-lang/lazarus-2.0.6/work/lazarus/ide/./frames/compiler_compilation_options.pas(65,26) Hint: (5024) Parameter "ADialog" not used
/var/tmp/portage/dev-lang/lazarus-2.0.6/work/lazarus/ide/./frames/compiler_compilation_options.pas(395,18) Error: (3205) Illegal qualifier
/var/tmp/portage/dev-lang/lazarus-2.0.6/work/lazarus/ide/./frames/compiler_compilation_options.pas(421,18) Error: (3205) Illegal qualifier
compiler_compilation_options.pas(442) Fatal: (10026) There were 2 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [Makefile:4144: lazarus] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j3-20210628-090704

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
/usr/lib/llvm/12
12.0.0
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  HEAD of ::gentoo
commit 07ec4fc5f33792c94b79d9503359f341662bbd6e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jun 29 06:36:26 2021 +0000

    2021-06-29 06:36:25 UTC

emerge -qpvO dev-lang/lazarus
[ebuild  N    ] dev-lang/lazarus-2.0.6  USE="-minimal"
Comment 1 Toralf Förster gentoo-dev 2021-06-29 08:01:42 UTC
Created attachment 720066 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-06-29 08:01:44 UTC
Created attachment 720069 [details]
dev-lang:lazarus-2.0.6:20210629-072448.log.bz2
Comment 3 Toralf Förster gentoo-dev 2021-06-29 08:01:45 UTC
Created attachment 720072 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-06-29 08:01:47 UTC
Created attachment 720075 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-06-29 08:01:48 UTC
Created attachment 720078 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-06-29 08:01:49 UTC
Created attachment 720081 [details]
temp.tar.bz2
Comment 7 Bill Binder 2021-08-23 15:40:24 UTC
I just got this problem today - portage decided to rebuild dev-lang/lazarus-2.0.6. Lazarus was last emerged successfully on 2021-05-17.

sys-libs/binutils-libs went to 2.36.1-r2 today - it had been 2.35.2 since 2021-04-12 (before the last successfull build of lazarus).

----------------
# emerge --info
Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.3.0, glibc-2.33-r1, 5.10.52-gentoo x86_64)
=================================================================
System uname: Linux-5.10.52-gentoo-x86_64-Intel-R-_Core-TM-_i7-10700K_CPU_@_3.80GHz-with-glibc2.33
KiB Mem:    65801428 total,  37519836 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Mon, 23 Aug 2021 02:00:01 +0000
Head commit of repository gentoo: 09d6258c4ae2dde5b5f06961a03206417c6a8e4b
Timestamp of repository brother-overlay: Wed, 18 Aug 2021 18:36:56 +0000
Head commit of repository brother-overlay: a72e4de7e2d38f8129ccea481a6878040dd281b7

Timestamp of repository eigenlay: Tue, 03 Aug 2021 11:36:45 +0000
Head commit of repository eigenlay: ce9873c47e6cdff9944498ba91c44756cc44d4c8

Timestamp of repository guru: Fri, 20 Aug 2021 19:06:14 +0000
Head commit of repository guru: 3a48fe6995460d713a65b2730d997f0506973ff0

Head commit of repository wjbinder: cee30fa84a95

sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.9.6_p1::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.43.5::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            8.5.0-r1::gentoo, 10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

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

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo

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

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

wjbinder
    location: /var/db/repos/wjbinder
    sync-type: mercurial
    sync-uri: http://wjbsvr/hg/localportage
    masters: gentoo

Installed sets: @wjb-core
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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=native -O2 -pipe"
GENTOO_MIRRORS="https://mirrors.evowise.com/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://172.67.6.37/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
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 --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 apache2 bluetooth branding bzip2 cairo cdda cdr cgi cleartype cli corefonts crypt cups dbus declarative dga dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gstreamer gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc lm_sensors mad mng mp3 mp4 mpeg mtp multilib ncurses net45 nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l v4l2 vdpau vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="access_compat actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias unixd authn_core authz_core socache_shmcb" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="x86_64 arm" RUBY_TARGETS="ruby26" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 8 Bill Binder 2021-08-24 16:26:57 UTC
Created attachment 735616 [details, diff]
Patch to fix compilation error with fpc-3.2.2

The compile error appears to be happening since the last fpc update, to fpc-3.2.2. Can't confirm because fpc-3.0.4 does not compile.

The error line lazarus/ide/frames/compiler_compilation_options.pas (Line 395) is:

   Push(Options.ExecuteBefore.Command);

The other error is a similar line in the same function.

'Options' is a local variable of the function, but in this statement it's getting confused with something else called 'Options' - I didn't manage to figure what exactly.

Anyway, the attached patch renames the local variable 'Options' to something else (CompOptions). Works for me (tm).
Comment 9 Paul Jewell 2021-08-31 16:21:58 UTC
Just to confirm - same issue here, and the supplied patch gets around the problem. Many thanks!
Comment 10 Amy Liffey gentoo-dev 2022-02-02 13:08:46 UTC
(In reply to Paul Jewell from comment #9)
> Just to confirm - same issue here, and the supplied patch gets around the
> problem. Many thanks!

Is it the case also for 2.0.12?
Comment 11 Paul Jewell 2022-02-02 16:05:31 UTC
(In reply to Amy Liffey from comment #10)
> (In reply to Paul Jewell from comment #9)
> > Just to confirm - same issue here, and the supplied patch gets around the
> > problem. Many thanks!
> 
> Is it the case also for 2.0.12?

I can confirm that 2.0.12 is working without the patch.
Comment 12 Paul Jewell 2022-02-02 16:06:42 UTC
For confirmation - I have fpc-3.2.2 installed.