Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391405 - sys-devel/gcc-4.5.3-r1: Misleading warning
Summary: sys-devel/gcc-4.5.3-r1: Misleading warning
Status: RESOLVED DUPLICATE of bug 391357
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 17:19 UTC by Alexander Bezrukov
Modified: 2011-11-23 18:27 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bezrukov 2011-11-22 17:19:15 UTC
When being rebuild, sys-devel/gcc-4.5.3-r1[gcj] complains as follows:
 * GCJ requires a C++ compiler, disabled due to USE="-cxx"

The actual USE flags are as follows:

>emerge -pv =sys-devel/gcc-4.5.3-r1

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-devel/gcc-4.5.3-r1  USE="cxx doc fortran gcj gtk mudflap (multilib) multislot nls nptl openmp (-altivec) -bootstrap -build (-fixed-point) -graphite (-hardened) (-libffi) -lto -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

g++ and gcj are built seemingly OK.

Reproducible: Always

Steps to Reproduce:
1. USE="cxx gcj" emerge -1 =sys-devel/gcc-4.5.3-r1
Actual Results:  
 * Messages for package sys-devel/gcc-4.5.3-r1:

 * GCJ requires a C++ compiler, disabled due to USE="-cxx"
 * If you have issues with packages unable to locate libstdc++.la,
 * then try running 'fix_libtool_files.sh' on the old gcc versions.
 * You might want to review the GCC upgrade guide when moving between
 * major versions (like 4.2 to 4.3):
 * http://www.gentoo.org/doc/en/gcc-upgrading.xml

Expected Results:  
 * Messages for package sys-devel/gcc-4.5.3-r1:

 * If you have issues with packages unable to locate libstdc++.la,
 * then try running 'fix_libtool_files.sh' on the old gcc versions.
 * You might want to review the GCC upgrade guide when moving between
 * major versions (like 4.2 to 4.3):
 * http://www.gentoo.org/doc/en/gcc-upgrading.xml

>emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.12.2-r0, 3.0.8-alb x86_64)
=================================================================
System uname: Linux-3.0.8-alb-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_285-with-gentoo-2.0.3
Timestamp of tree: Tue, 22 Nov 2011 14:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo vmware nx x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA sun-bcla-java-vm Oracle-BCLA-JavaSE dlj-1.1 skype-eula googleearth AdobeFlash-10.1 Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-combine -march=native -O2 -pipe -fomit-frame-pointer -finline-functions-called-once -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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="-combine -march=native -O2 -pipe -fomit-frame-pointer -finline-functions-called-once -ftree-vectorize"
DISTDIR="/scratch/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-combine -march=native -O2 -pipe -fomit-frame-pointer -finline-functions-called-once -ftree-vectorize -fprefetch-loop-arrays -funroll-loops"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fa ru"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vmware /var/lib/layman/nx /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 apng bash-completion berkdb bidi bzip2 caps cdr cjk cli cracklib crypt cscope cups cxx dbus djvu dri dvd dvdr dvdread eselect exif fontconfig fortran gdbm gif gmp gnome gpm gtk hardened iconv icu ieee1394 java jpeg jpeg2k lcms ldap ldapsam libnotify lm_sensors lock loop-aes mmap mmx modules mudflap multilib ncurses nls nodrm nptl nptlonly nsplugin opengl openmp pam pcre png pppd python qt3support readline samba session sse sse2 ssl startup-notification sysfs tcpd threads thunar tiff truetype udev unicode usb winbind xorg xulrunner zlib" 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" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="alias auth_basic auth_digest authn_alias authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_user autoindex deflate dir env expires filter headers info log_config logio mime mime_magic negotiation status unique_id userdir rewrite" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fa ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexander Bezrukov 2011-11-22 17:25:41 UTC
The message itself is produced by toolchain_pkg_setup() function in toolchain eclass:

if ! is_cxx ; then
 use_if_iuse go && ewarn 'Go requires a C++ compiler, disabled due to USE="-cxx"'
 use_if_iuse objc++ && ewarn 'Obj-C++ requires a C++ compiler, disabled due to USE="-cxx"'
 use_if_iuse gcj && ewarn 'GCJ requires a C++ compiler, disabled due to USE="-cxx"'
fi
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-11-22 17:36:33 UTC
Is this reproducible, or just a "one-time migration issue" ?
Comment 3 Alexander Bezrukov 2011-11-22 21:20:01 UTC
(In reply to comment #2)
> Is this reproducible, or just a "one-time migration issue" ?

Jeremy, I've just reproduced it twice and have reproduced it twice on another host before. During the build, this warning is preceeded by the following error:
grep: /tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/*/config-lang.in: No such file or directory
Comment 4 SpanKY gentoo-dev 2011-11-22 21:57:08 UTC
without a full build log, i'm just going to assume it's a dupe and your tree is out of date

*** This bug has been marked as a duplicate of bug 391357 ***
Comment 5 Alexander Bezrukov 2011-11-22 23:39:41 UTC
SpanKY, thank you, yes, indeed. 
The tree was not very much "out of date" (synced about 1 hour before reporting the bug) but probably the fix hasn't got propagated to the mirrors.

After re-running emerge --sync everything seems OK, except the following (new) warning:
 * QA Notice: Expected SLOT='4.5', got 'x86_64-pc-linux-gnu-4.5.3'

(by the way, gcc slot mismatch is another annoying problem when doing revdep-rebuild, revdep-rebuild is (or at least consistently was) trying to build an inexistent slot and fails)

Sorry about creating the noise, I have failed to find the already reported bug, although tried to.
Comment 6 SpanKY gentoo-dev 2011-11-23 18:27:28 UTC
there's nothing i can do about the SLOT warning until people fix PMS