Created attachment 512688 [details] Error of buid and emerge --info dev-libs/libgpg-error-1.27-r1 fails to build when 'emerge -avuND @world' after 'eselect profile set' 6 and, or 19. That is default/linux/amd64/13.0/desktop/plasma and default/linux/amd64/17.0/desktop/plasma, in beginig of Gentoo instalation.
(chroot) sysresccd / # emerge --info Portage 2.3.13 (python 3.4.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r9, 4.4.28-std490-amd64 x86_64) ================================================================= System uname: Linux-4.4.28-std490-amd64-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-gentoo-2.4.1 KiB Mem: 16342108 total, 12055016 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Tue, 02 Jan 2018 04:00:01 +0000 Head commit of repository gentoo: e5f430619b1dbdce1d9ba7836db55fee065798dd sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 app-shells/bash: 4.3_p48-r1::gentoo dev-lang/perl: 5.24.3::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.11::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 6.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r9::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* @EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask-write" FCFLAGS="-O2 -pipe" FEATURES="assume-digests 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="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j13" 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="X a52 aac acl acpi activities alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gstreamer gtk iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64 32" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma4 mmx mmxext popent sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop 3dnow 3dnowext fma3 avx2" 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="emu efi-64 pc" INPUT_DEVICES="evdev wacom keyboard mouse" KERNEL="linux" L10N="en_GB en_US.UTF-8 en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en_US.UTF-8 en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby24" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
The error from https://bpaste.net/show/219bad9fb54c: > >>> Configuring source in /var/tmp/portage/dev-libs/libgpg-error-1.27-r1/work/libgpg-error-1.27 ... > [32;01m*[0m abi_x86_32.x86: running multilib-minimal_abi_src_configure > * econf: updating libgpg-error-1.27/build-aux/config.guess with /usr/share/gnuconfig/config.guess > * econf: updating libgpg-error-1.27/build-aux/config.sub with /usr/share/gnuconfig/config.sub > /var/tmp/portage/dev-libs/libgpg-error-1.27-r1/work/libgpg-error-1.27/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libgpg-error-1.27-r1 --htmldir=/usr/share/doc/libgpg-error-1.27-r1/html --libdir=/usr/lib32 CC_FOR_BUILD=x86_64-pc-linux-gnu-gcc -m32 --enable-threads --enable-nls --disable-static --disable-languages --disable-languages > configure: error: unrecognized option: `-m32' > Try `/var/tmp/portage/dev-libs/libgpg-error-1.27-r1/work/libgpg-error-1.27/configure --help' for more information
Created attachment 512692 [details, diff] libgpg-error-1.27-r1-ebuild.patch Please try creating a local custom repository if you don't already have one: https://wiki.gentoo.org/wiki/Custom_repository Then please copy the ebuild to the local repository, something like: mkdir -p /usr/local/portage/dev-libs/libgpg-error cd /usr/local/portage/dev-libs/libgpg-error cp -pR /usr/portage/dev-libs/libgpg-error/* . Then please try editing the ebuild, and add double quotes around $(tc- getBUILD_CC) on line 40, or apply the ebuild patch: patch --verbose -p 5 </path-to-patch/libgpg-error-1.27-r1-ebuild.patch repoman fix
(In reply to Mark Wright from comment #3) > Created attachment 512692 [details, diff] [details, diff] > libgpg-error-1.27-r1-ebuild.patch do I understand it correctly that the issue is m32 being returned from tc-getBUILD_CC()? The eclass description of the function states 133 # @RETURN: name of the C preprocessor for building binaries to run on the b uild machine i.e it doesn't indicate any arguments. Is the -m32 specified in the correct place here?
dev-libs/libgpg-error was somehow relying on a short, incorrect output of tc-getBUILD_CC() which was fixed yesterday in: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea988da8e02e1ba501c73c961147f6ec63c58033
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #5) > dev-libs/libgpg-error was somehow relying on a short, incorrect output of > tc-getBUILD_CC() which was fixed yesterday in: > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=ea988da8e02e1ba501c73c961147f6ec63c58033 Is there a tracker bug for breakages on this already? It seems that the function descriptions needs updating in addition to that code change, to begin with.
Created attachment 512706 [details] build.log (In reply to Kristian Fiskerstrand from comment #4) > do I understand it correctly that the issue is m32 being returned from > tc-getBUILD_CC()? Yes that is what I think is happening in the attached build.log. When I hacked the ebuild to add the double quotes it builds fine.
(In reply to Mark Wright from comment #7) > Created attachment 512706 [details] > build.log > > (In reply to Kristian Fiskerstrand from comment #4) > > do I understand it correctly that the issue is m32 being returned from > > tc-getBUILD_CC()? > Yes that is what I think is happening in the attached build.log. When I > hacked the ebuild to add the double quotes it builds fine. I've added toolchain as CC, so we'll see if that is expected behavior or not, it seems to contradict the function description at least.
(In reply to Mark Wright from comment #3) > Created attachment 512692 [details, diff] [details, diff] > libgpg-error-1.27-r1-ebuild.patch Thanks, this patch works for me
(In reply to Kristian Fiskerstrand from comment #8) > I've added toolchain as CC, so we'll see if that is expected behavior or > not, it seems to contradict the function description at least. Given that CC contains '-m32', I dare say it's expected. I can't think of any other way this could work, given our hacks so far.
(In reply to Kristian Fiskerstrand from comment #8) > (In reply to Mark Wright from comment #7) > > Created attachment 512706 [details] > > build.log > > > > (In reply to Kristian Fiskerstrand from comment #4) > > > do I understand it correctly that the issue is m32 being returned from > > > tc-getBUILD_CC()? > > Yes that is what I think is happening in the attached build.log. When I > > hacked the ebuild to add the double quotes it builds fine. > > I've added toolchain as CC, so we'll see if that is expected behavior or > not, it seems to contradict the function description at least. It is expected, yes. CC can contain not just a compiler binary but also injected flags and tc-getBUILD_CC() returns CC value without any stripping. Thus ebuild quoting fix is the correct one. Looks like the tree has quite a few of those: ::gentoo $ git grep -E '=\$\(tc-get' I agree the function description is very vague. I'll try to come up with better blurb. I'm not sure where unquoted tradition comes from. autoconf-generated ./configure scripts rely on it a lot by calling '$CC $CFLAGS <something>' and similar (not '"$CC" $CFLAGS....'). Would be nice to find it documented explicitly in autoconf manual.
*** Bug 643274 has been marked as a duplicate of this bug. ***
Same problem here. My solution was the following: I'd deleted the abi_x86-lines from the .ebuild, because the emul-linux-package didn't exist anymore. After ebuild … manifest everything is fine. RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) abi_x86_32? ( !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] !<=app-emulation/emul-linux-x86-baselibs-20131008-r12 )"
*** Bug 643680 has been marked as a duplicate of this bug. ***