Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 672222

Summary: dev-lang/rust-1.30.1-r1: QA Notice: Files built without respecting CFLAGS have been detected
Product: Gentoo Linux Reporter: Tomáš Mózes <hydrapolic>
Component: Current packagesAssignee: Gentoo Rust Project <rust>
Status: RESOLVED CANTFIX    
Severity: QA    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tomáš Mózes 2018-11-29 07:06:42 UTC
* QA Notice: Files built without respecting CFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/lib64/rust-1.30.1/libproc_macro-8b37720ecc15c268.so
 * /usr/lib64/rust-1.30.1/librustc_lint-1c3809638d45e5de.so
 * /usr/lib64/rust-1.30.1/librustc_metadata_utils-7cb5c38aaebd33df.so
 * /usr/lib64/rust-1.30.1/libarena-87e7406558f48fbd.so
 * /usr/lib64/rust-1.30.1/libsyntax_pos-5c276d0ab3affff3.so
 * /usr/lib64/rust-1.30.1/libsyntax-cb1756488513f719.so
 * /usr/lib64/rust-1.30.1/librustc_privacy-15d2f5b67408c5a6.so
 * /usr/lib64/rust-1.30.1/librustc_metadata-64a034603ed05efa.so
 * /usr/lib64/rust-1.30.1/librustc_codegen_utils-c9f741cd7cf171eb.so
 * /usr/lib64/rust-1.30.1/librustc_resolve-45932357c789e1b9.so
 * /usr/lib64/rust-1.30.1/librustc_borrowck-f6b702f617ed6282.so
 * /usr/lib64/rust-1.30.1/libterm-2581be33845c7567.so
 * /usr/lib64/rust-1.30.1/librustc_driver-ded88d86ffc99afb.so
 * /usr/lib64/rust-1.30.1/libserialize-d4cb42f8430ecd45.so
 * /usr/lib64/rust-1.30.1/librustc_data_structures-d02083db688f2029.so
 * /usr/lib64/rust-1.30.1/libtest-b046803c714f931d.so
 * /usr/lib64/rust-1.30.1/libstd-4162564e49ecc406.so
 * /usr/lib64/rust-1.30.1/librustc_errors-b72770dfccabe910.so
 * /usr/lib64/rust-1.30.1/librustc_traits-56f8b3398691e04f.so
 * /usr/lib64/rust-1.30.1/librustc_cratesio_shim-8e2b5e0e91d87c10.so
 * /usr/lib64/rust-1.30.1/librustc-96d364fdb585870d.so
 * /usr/lib64/rust-1.30.1/librustc_target-7fc85450c1d948e8.so
 * /usr/lib64/rust-1.30.1/librustc_platform_intrinsics-d68416ec0b71f4b2.so
 * /usr/lib64/rust-1.30.1/librustc_incremental-a56a3f8812e50fb4.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-8b37720ecc15c268.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_lint-1c3809638d45e5de.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_metadata_utils-7cb5c38aaebd33df.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libLLVM-8svn.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libarena-87e7406558f48fbd.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libsyntax_pos-5c276d0ab3affff3.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libsyntax-cb1756488513f719.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_privacy-15d2f5b67408c5a6.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_metadata-64a034603ed05efa.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_codegen_utils-c9f741cd7cf171eb.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_resolve-45932357c789e1b9.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_borrowck-f6b702f617ed6282.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libterm-2581be33845c7567.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_driver-ded88d86ffc99afb.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libserialize-d4cb42f8430ecd45.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_data_structures-d02083db688f2029.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libtest-b046803c714f931d.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4162564e49ecc406.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_errors-b72770dfccabe910.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_traits-56f8b3398691e04f.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_cratesio_shim-8e2b5e0e91d87c10.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc-96d364fdb585870d.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_target-7fc85450c1d948e8.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_platform_intrinsics-d68416ec0b71f4b2.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_incremental-a56a3f8812e50fb4.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_passes-fb072e1b44d4ad5a.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_allocator-fe672e9ef418add6.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libfmt_macros-81848ab448b14644.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libgraphviz-d1d92ea457fc0634.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_typeck-8d6828bf4760977b.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_mir-b2971156bd552476.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_plugin-982552203aad8a11.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/libsyntax_ext-c1210e72e06758af.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_save_analysis-7ef465d5cc1c47e9.so
 * /usr/lib64/rust-1.30.1/rustlib/x86_64-unknown-linux-gnu/lib/librustc_fs_util-52b32f490068a4c6.so
 * /usr/lib64/rust-1.30.1/librustc_passes-fb072e1b44d4ad5a.so
 * /usr/lib64/rust-1.30.1/librustc_allocator-fe672e9ef418add6.so
 * /usr/lib64/rust-1.30.1/libfmt_macros-81848ab448b14644.so
 * /usr/lib64/rust-1.30.1/libgraphviz-d1d92ea457fc0634.so
 * /usr/lib64/rust-1.30.1/librustc_typeck-8d6828bf4760977b.so
 * /usr/lib64/rust-1.30.1/librustc_mir-b2971156bd552476.so
 * /usr/lib64/rust-1.30.1/librustc_plugin-982552203aad8a11.so
 * /usr/lib64/rust-1.30.1/libsyntax_ext-c1210e72e06758af.so
 * /usr/lib64/rust-1.30.1/librustc_save_analysis-7ef465d5cc1c47e9.so
 * /usr/lib64/rust-1.30.1/librustc_fs_util-52b32f490068a4c6.so
 * /usr/bin/rustc-1.30.1
 * /usr/bin/rustdoc-1.30.1
 * /usr/bin/cargo-1.30.1
 * One or more CMake variables were not used by the project:
 *   LLVM_OCAML_INSTALL_PATH
Comment 1 Tomáš Mózes 2018-11-29 07:07:13 UTC
Portage 2.3.52 (python 2.7.15-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.28-r2, 4.19.4-gentoo x86_64)
=================================================================
System uname: Linux-4.19.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem:    16318700 total,   8358768 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 28 Nov 2018 19:45:01 +0000
Head commit of repository gentoo: 94e29af9c6c17380f14fbaf10c99933bd5d9b345
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.13.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.39.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r1::gentoo
sys-devel/gcc:            8.2.0-r4::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r2::gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/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="-mtune=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-mtune=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-mtune=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nptl openmp pam pcre readline seccomp ssl tcpd unicode xattr zlib" ABI_X86="64" 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="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user 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 socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias watchdog proxy proxy_connect proxy_fcgi proxy_http" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx f16c popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 xen pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access charset gzip limit_conn limit_req log proxy rewrite gunzip upstream_check stub_status geoip2" NGINX_MODULES_STREAM="geoip2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1 php7-2" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7 pypy pypy3" RUBY_TARGETS="ruby23 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-11-29 14:36:27 UTC
Arguably the QA notice is wrong in this case: since these files are not generated from C source code, it's not clear that CFLAGS should apply to them.
Comment 3 Georgy Yakovlev archtester gentoo-dev 2020-03-05 09:32:25 UTC
It's ok to ignore, as rust is not C and does not use cflags indeed.
I add new files to ignore list but they pop back up every once in a while.