Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811732 - sci-geosciences/gpsd fails with "Implicit dependency `l1-cache-line-size=64' not found" with respective CFLAGS in make.conf
Summary: sci-geosciences/gpsd fails with "Implicit dependency `l1-cache-line-size=64' ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-05 13:02 UTC by Matthias Nagel
Modified: 2023-12-06 08:19 UTC (History)
2 users (show)

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


Attachments
Ebuild log (sci-geosciences:gpsd-3.21:20210905-123315.log,12.14 KB, text/plain)
2021-09-06 10:55 UTC, Matthias Nagel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Nagel 2021-09-05 13:02:17 UTC
The make.conf contains the line

FLAGS="-O2 -march=haswell -pipe -ggdb --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=8192"

building the package fails with

scons: *** [libgpsdpacket.so.27.0.0] Implicit dependency `l1-cache-line-size=64' not found, needed by target `libgpsdpacket.so.27.0.0'.

Reproducible: Always

Actual Results:  
Compilation fails

Expected Results:  
Compilation succeeds.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-05 17:11:15 UTC
Please share the full build.log and emerge --info.
Comment 2 Matthias Nagel 2021-09-06 10:52:17 UTC
# emerge --info
Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.3.0, glibc-2.33-r1, 5.13.1-gentoo x86_64)
=================================================================
System uname: Linux-5.13.1-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1230_v3_@_3.30GHz-with-glibc2.33
KiB Mem:    16327596 total,   9254088 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Mon, 06 Sep 2021 10:15:01 +0000
Head commit of repository gentoo: 7759614a9e2a716a6373f0218f08690971d91876
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.3 [disabled]
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.8.11::gentoo, 3.9.6_p1::gentoo
dev-lang/rust-bin:        1.53.0::gentoo
dev-util/ccache:          4.3-r2::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::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.35.2::gentoo
sys-devel/gcc:            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: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync9.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

matthias
    location: /usr/local/portage
    masters: gentoo

Installed sets: @lychee
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=haswell -pipe -ggdb --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=8192"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/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="-O2 -march=haswell -pipe -ggdb --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=8192"
DISTDIR="/usr/portage/distfiles"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://mirrors.evowise.com/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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 aacplus aacs acl acpi activities addressbook alsa amd64 apng avx bash-completion bluetooth bluray bzip2 cairo calendar caps cdda cddb cdr cjk cleartype cli clucene corefonts crypt cups cvs dbus declarative dhclient dolphin dri dts dvd dvdr emboss encode exif ffmpeg firefox flac fontconfig foomaticdb fortran g3dvl gdbm geolocation gif gimp git gnutls google googledrive gphoto2 gpm graphviz gstreamer gudev gui handbook hwdb iconv icu ieee1394 imagemagick inotify iproute2 ipv6 java java6 jce jpeg jpeg2k kde keymap kipi kpathsea kwallet lcdfilter lcms ldap lensfun libglvnd libnotify libtirpc lm-sensors lm_sensors mad marble mariadb markdown mercurial mikmod minizip mmap mmxext mng modemmanager mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl nsplugin office ogg opengl openmp openvg osmesa pam pango pcre pdf phonon pim plasma png policykit postproc ppds pulseaudio qml qt5 quicktime raptor readline samba scanner script sdl seccomp semantic-desktop smp soprano spell split-usr sqlite sse3 sse4 sse4_1 ssh ssl startup-notification subversion svg syslog system-av1 system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp systemd taglib tcpd telepathy theora threads thumbnail tiff truetype udev udisks unicode upower usb user-session v4l v4l2 vaapi vcd vdpau vorbis vpx webkit webkit2 widgets wmf x264 xattr xcb xetex xinerama xml xmp xpm xscreensaver xv xvid xvmc zeroconf 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="authn_core authz_core socache_shmcb unixd 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 cgid 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" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mabm mcx16 mlzcnt mmx mmxext msahf popcnt 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de-DE de-CH de-1901 en en-AU en-CA en-GB en-US en-ZA fr fr-CA" 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-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8 python3_9" RUBY_TARGETS="ruby26" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 3 Matthias Nagel 2021-09-06 10:55:19 UTC
Created attachment 737863 [details]
Ebuild log
Comment 4 Mike Gilbert gentoo-dev 2021-09-06 13:27:27 UTC
SConstruct uses env.MergeFlags to incorporate flags from the environment.

There is a comment indicating this doesn't work very well for multi-word flags, and a suggestion to use a different option format as a workaround.

> # Set defaults from environment.  Note that scons doesn't cope well
> # with multi-word CPPFLAGS/LDFLAGS/SHLINKFLAGS values; you'll have to
> # explicitly quote them or (better yet) use the "=" form of GNU option
> # settings.
> # Scons also uses different internal names than most other build-systems.
> # So we rely on MergeFlags/ParseFlags to do the right thing for us.
Comment 5 cJ 2023-12-05 19:54:48 UTC
Opened an upstream issue ( https://gitlab.com/gpsd/gpsd/-/issues/263 ) as there wasn't any that I could find.