Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492750 - cross-i386-mingw32/gcc-4.8.2 - .../work/gcc-4.8.2/libgcc/config/i386/cygwin.S:29: Error: unknown pseudo-op: `.cfi_sections'
Summary: cross-i386-mingw32/gcc-4.8.2 - .../work/gcc-4.8.2/libgcc/config/i386/cygwin.S...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-27 23:29 UTC by Martin Bays
Modified: 2013-12-10 04:36 UTC (History)
0 users

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


Attachments
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,80.76 KB, application/x-bzip-compressed-tar)
2013-11-27 23:29 UTC, Martin Bays
Details
cross-i386-mingw32:binutils-2.23.2:20131207-151328.log (cross-i386-mingw32:binutils-2.23.2:20131207-151328.log,494.26 KB, text/plain)
2013-12-07 17:00 UTC, Martin Bays
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bays 2013-11-27 23:29:19 UTC
Please see attached logs.


$ emerge --info '=cross-i386-mingw32/gcc-4.8.2::crossdev-portage' && emerge -pqv '=cross-i386-mingw32/gcc-4.8.2::crossdev-portage'
Portage 2.2.7 (default/linux/x86/13.0/desktop, gcc-4.8.2, glibc-2.16.0, 3.13.0-rc1 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.13.0-rc1-i686-Intel-R-_Pentium-R-_4_CPU_2.66GHz-with-gentoo-2.2
KiB Mem:      503408 total,    116484 free
KiB Swap:    2939820 total,   2755344 free
Timestamp of tree: Wed, 27 Nov 2013 18:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p39-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.3.6-r2::<unknown repository>, 2.4.6, 2.5.4-r4, 2.6.7-r2, 2.7.5-r4, 3.1.5-r1, 3.2.5-r3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13::<unknown repository>, 2.69
sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.2, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            3.2.3-r1::<unknown repository>, 3.3.6-r1::<unknown repository>, 3.4.6-r2::<unknown repository>, 4.1.2::<unknown repository>, 4.2.4, 4.3.6-r1, 4.4.4-r2, 4.5.3-r2, 4.7.2-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        1.4.3-r1::<unknown repository>, 2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.16.0::<unknown repository>
Repositories: gentoo crossdev-portage zugaina interactive-fiction sunrise gamerlay martin-s-local-portage-repo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=pentium4 -pipe"
DISTDIR="/usr/portage-distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-crossdev /var/lib/layman/zugaina /var/lib/layman/interactive-fiction /var/lib/layman/sunrise /var/lib/layman/gamerlay /usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa apache2 avi bash-completion berkdb branding bzip2 caca cairo cdda cdr cli consolekit cracklib crypt cxx dbus dga directfb dri dts dvd dvdr emacs emboss encode exif fam fbcon firefox flac fortran gatos gdbm gif gpm gtk guile iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mozilla mp3 mp4 mpeg mudflap ncurses nls nptl nsplugin ogg oggvorbis opengl openmp oss pam pango pcre pdf perl png policykit ppds profile python qt3support qt4 readline real sdl session spell sse ssl startup-notification svg svga tcpd theora tiff truetype udev udisks unicode upower usb v4l v4l2 vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci cs4236" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

[ebuild  NS   ] cross-i386-mingw32/gcc-4.8.2 [4.2.0] USE="cxx fortran nls nptl openmp (-altivec) -doc (-fixed-point) -gcj -go -graphite -gtk -hardened -libssp -lto -mudflap (-multilib) -multislot -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 

!!! The following installed packages are masked:
- dev-java/blackdown-jre-1.4.2.03-r14::gentoo (masked by: sun-bcla-java-vm license(s))
A copy of the 'sun-bcla-java-vm' license is located at '/usr/portage/licenses/sun-bcla-java-vm'.

- www-plugins/adobe-flash-11.1.102.55::gentoo (masked by: AdobeFlash-10.3 license(s))
A copy of the 'AdobeFlash-10.3' license is located at '/usr/portage/licenses/AdobeFlash-10.3'.

- app-portage/udept-0.5.99.0.2.95-r1::__unknown__ (masked by: package.mask)
- net-ftp/proftpd-1.3.4a::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Michael Weber <xmw@gentoo.org> (9 Jul 2013)
# Masked for security bug 450746, CVE-2012-6095

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 1 Martin Bays 2013-11-27 23:29:52 UTC
Created attachment 364108 [details]
gcc-build-logs.tar.bz2
Comment 2 SpanKY gentoo-dev 2013-12-07 07:53:41 UTC
looks like your binutils is broken:
configure:22604: checking assembler for cfi sections directive
configure:22616: /usr/libexec/gcc/i386-mingw32/as    -o conftest.o conftest.s >&5
conftest.s: Assembler messages:
conftest.s:2: Error: unknown pseudo-op: `.cfi_sections'
configure:22619: $? = 1
configure: failed program was
    .text
    .cfi_sections .debug_frame, .eh_frame
    .cfi_startproc
    .cfi_endproc
configure:22645: result: no

that works for me:
$ cat test.s
    .text
    .cfi_sections .debug_frame, .eh_frame
    .cfi_startproc
    .cfi_endproc
$ /usr/libexec/gcc/i386-mingw32/as test.s
$ /usr/libexec/gcc/i386-mingw32/as --version
GNU assembler (GNU Binutils) 2.23.2


what version of binutils is your i386-mingw32 using ?  post the output of the build by doing `emerge cross-i386-mingw32/binutils` and attach the log.
Comment 3 Martin Bays 2013-12-07 16:59:00 UTC
I did have GNU assembler 2.17;
cross-i386-mingw32/binutils-2.23.2 merged successfully (build log attached);
currently attempting to merge cross-i386-mingw32/gcc-4.8.2;
will report back.
Comment 4 Martin Bays 2013-12-07 17:00:01 UTC
Created attachment 364826 [details]
cross-i386-mingw32:binutils-2.23.2:20131207-151328.log

build log for cross-i386-mingw32/binutils-2.23.2
Comment 5 Martin Bays 2013-12-07 18:01:05 UTC
Build of gcc failed despite binutils upgrade; same error
"""
/mnt/seabass/tmp-portage/portage/cross-i386-mingw32/gcc-4.8.2/work/gcc-4.8.2/libgcc/config/i386/cygwin.S:
Assembler messages:
/mnt/seabass/tmp-portage/portage/cross-i386-mingw32/gcc-4.8.2/work/gcc-4.8.2/libgcc/config/i386/cygwin.S:29:
Error: unknown pseudo-op: `.cfi_sections'
Makefile:461: recipe for target '_chkstk_s.o' failed
"""
Comment 6 SpanKY gentoo-dev 2013-12-09 00:35:38 UTC
(In reply to Martin Bays from comment #5)

please run the commands that i did in comment #2
Comment 7 Martin Bays 2013-12-09 02:15:44 UTC
The plot thickens...

I get the same error, because the emerge of cross-i386-mingw32/binutils-2.32.2
didn't actually change that 'as'.

The emerge log shows it installed in
    /usr/i686-pc-linux-gnu/i386-mingw32/binutils-bin/2.23.2/
, but that one gives a different error. Please see below.

$  /usr/libexec/gcc/i386-mingw32/as --version
GNU assembler 2.17
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i386-mingw32'.
$ cat test.s
    .text
    .cfi_sections .debug_frame, .eh_frame
    .cfi_startproc
    .cfi_endproc
$ /usr/libexec/gcc/i386-mingw32/as test.s
test.s: Assembler messages:
test.s:2: Error: unknown pseudo-op: `.cfi_sections'
$ /usr/i686-pc-linux-gnu/i386-mingw32/binutils-bin/2.23.2/as test.s
Assembler messages:
Fatal error: selected target format 'pe-i386' unknown
$ eselect binutils list
Installed binutils for target avr
  [1]   2.23.2 *
Installed binutils for target i386-mingw32
  [2]   2.17 *
  [3]   2.23.2
Installed binutils for target i386-unknown-linux-gnu
  [4]   2.23.2 *
Installed binutils for target i686-mingw32
  [5]   2.17 *
Installed binutils for target i686-pc-linux-gnu
  [6]   2.23.2 *
$ eselect binutils set 3
Switching to i386-mingw32-2.23.2...
!!! Error: Can't cd /usr/i386-mingw32/binutils-bin/2.23.2!
exiting
Comment 8 SpanKY gentoo-dev 2013-12-09 04:08:03 UTC
(In reply to Martin Bays from comment #7)

use `binutils-config` to switch versions
Comment 9 Martin Bays 2013-12-09 15:51:10 UTC
Aha, thanks.

After using binutils-config, emerge of cross-i386-mingw32/gcc completed
successfully.