Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160709 - sys-devel/gcc-4.1.1-r1 compile fails on G3 with error: -msecure-plt not supported by your assembler
Summary: sys-devel/gcc-4.1.1-r1 compile fails on G3 with error: -msecure-plt not suppo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-07 15:58 UTC by Mike Hammill
Modified: 2007-01-08 04:44 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 Mike Hammill 2007-01-07 15:58:40 UTC
Recently installed machine.  Trying to upgrade from stage3 given compiler, gcc-4.1.1 to latest stable gcc-gcc-4.1.1-r1.  Works for quite a while but fails on 

/var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/gcc/crtstuff.c:1: error: -msecure-plt not supported by your assembler
/var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/gcc/crtstuff.c:1: error: -msecure-plt not supported by your assembler
make[2]: *** [crtbegin.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [crtbeginS.o] Error 1
rm gfortran.pod
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-4.1.1-r1 failed.

Can post entire log if needed.

Here is my environment:
watery ~ # emerge --info
Portage 2.1.1-r2 (default-linux/ppc/ppc32/2006.1/G3, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo-r3 ppc)
=================================================================
System uname: 2.6.18-gentoo-r3 ppc 740/750
Gentoo Base System version 1.12.6
Last Sync: Sun, 07 Jan 2007 13:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-Os -mcpu=750 -pipe -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -mcpu=750 -pipe -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo http://ftp.rhnet.is/pub/gentoo/ http://mirror.gentoo.no/ http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://giddy.michael.hammill.name/gentoo-portage"
USE="ppc alsa alsa_cards_aoa alsa_cards_aoa-fabric-layout alsa_cards_aoa-onyx alsa_cards_aoa-soundbus alsa_cards_aoa-soundbus-i2s alsa_cards_aoa-tas alsa_cards_aoa-toonie alsa_cards_powermac alsa_cards_usb-audio alsa_cards_via82xx alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 arts berkdb bitmap-fonts bonobo cdr cli cracklib crypt cups curl dlloader dri dvd eds elibc_glibc emacs emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtkhtml iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux ldap libg++ libwww mad mikmod mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre perl png pppd python qt3 qt4 quicktime readline reflection ruby sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_fbdev video_cards_radeon vorbis xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

Machine is a G3 (Blue & White).  The odd thing is that I have another G3 B&W which has been under Gentoo for awhile (1 yr?) and it has had no problems with this.  Perhaps even more odd is that this successfull G3 is running FLAGS that are perhaps not considered safe, whereas the machine in question for this bug is running the flags suggested on the safe flags wiki.

G3 with success has:
birdy ~ # emerge -pv gcc

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

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.1.1-r1  USE="fortran gcj gtk nls (-altivec) -bootstrap -build -doc (-hardened) (-ip28) -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB

Total size of downloads: 0 kB

"New" G3, where the bug occurs is using:
watery ~ # emerge -pv gcc

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

Calculating dependencies... done!
[ebuild     U ] sys-devel/gcc-4.1.1-r1 [4.1.1] USE="fortran nls (-altivec) -bootstrap -build -doc -gcj -gtk* (-hardened) (-ip28) -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test% -vanilla" 0 kB

Total size of downloads: 0 kB


Reproducible: Always

Steps to Reproduce:
1. emerge gcc
2. crashes
3. scratch head

Actual Results:  
Puts a bit of a crimp in going ahead with further building.  I would just as soon update the compiler but for updating world in general.

Expected Results:  
A nice shinny new gcc, just as on my other G3 B&W.
Comment 1 Mike Hammill 2007-01-07 16:04:14 UTC
Forgot to give the flags in use on the two G3s:

Successful G3: CFLAGS="-O3 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe -fomit-frame-pointer"

G3 that gets bug: CFLAGS="-Os -mcpu=750 -pipe -fno-strict-aliasing"

I really have no idea what might be the problem.  File systems have been checked.  No problems.
Comment 2 Mike Hammill 2007-01-07 23:53:52 UTC
This problem has now disappeared, although I can unfortunately not say exactly what solved it.  One can say it was the upgrade of at least one of the 57 packages listed below.  In the list below, you see the packages that needed to be updated when I initially tried to upgrade gcc.  I wanted to upgrade gcc before all other upgrades, so they would benefit from having the latest compiler.  After hitting the gcc bug, I decided to go ahead and just start plowing through the regular upgrade path (however emerge -vauDN world dished it out) and see what happened.  Taking this route, gcc DID compile without incident.  This seems to imply that gcc depends on some other package????  That comes as a surprise to me.

I _guess_ you can close this ticket, although it might have implications for the gcc upgrade guide, namely that some other package(s) might need to be updated before gcc?  BTW, I had upgraded gcc-config before gcc.

The list follows.  Best regards,  /Mike

watery ~ # emerge -vauDN world

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

Calculating world dependencies... done!
[ebuild     U ] sys-libs/gpm-1.20.1-r5 [1.20.1-r4] USE="(-selinux) (-emacs%)" 0 kB
[ebuild     U ] sys-libs/ncurses-5.5-r3 [5.5-r2] USE="gpm unicode -bootstrap -build -debug -doc -minimal -nocxx -trace%" 0 kB
[ebuild     U ] app-shells/bash-3.1_p17 [3.1_p16] USE="nls (-afs) -bashlogger -vanilla% (-build%)" 0 kB
[ebuild     U ] sys-devel/gettext-0.15 [0.14.4] USE="emacs* nls -doc -nocxx%" 0 kB
[ebuild     U ] sys-devel/gnuconfig-20060702 [20060227] 0 kB
[ebuild     U ] sys-libs/db-4.2.52_p4-r2 [4.2.52_p2-r1] USE="-bootstrap -doc -java -nocxx -tcl% -test% (-tcltk%)" 0 kB
[ebuild     U ] dev-libs/openssl-0.9.8d [0.9.7j] USE="emacs* zlib -bindist (-sse2) -test" 0 kB
[ebuild     U ] perl-core/Test-Harness-2.62 [2.56] USE="(-minimal%)" 0 kB
[ebuild     U ] app-admin/perl-cleaner-1.04.3 [1.04] 0 kB
[ebuild     U ] perl-core/PodParser-1.34 [1.32] USE="(-minimal%)" 0 kB
[ebuild     U ] dev-lang/python-2.4.3-r4 [2.4.3-r1] USE="berkdb gdbm ipv6 ncurses readline ssl -bootstrap -build -doc -nocxx -tk% -ucs2 (-X%*) (-tcltk%)" 0 kB
[ebuild     U ] sys-apps/sed-4.1.5 [4.1.4-r1] USE="nls -static (-bootstrap%) (-build%)" 0 kB
[ebuild     U ] sys-apps/texinfo-4.8-r5 [4.8-r2] USE="nls -build -static" 0 kB
[ebuild     U ] sys-devel/autoconf-wrapper-4-r3 [3.2] 0 kB
[ebuild     U ] sys-devel/m4-1.4.7 [1.4.4] USE="nls" 0 kB
[ebuild     U ] sys-devel/autoconf-2.61 [2.59-r7] USE="emacs*" 0 kB
[ebuild  N    ] perl-core/Test-Simple-0.64  0 kB
[ebuild  N    ] virtual/perl-Test-Simple-0.64  0 kB
[ebuild  N    ] dev-perl/Locale-gettext-1.05  0 kB
[ebuild  N    ] sys-apps/help2man-1.36.4  USE="nls" 83 kB
[ebuild     U ] sys-devel/automake-wrapper-2-r1 [1-r1] 0 kB
[ebuild     U ] sys-apps/groff-1.19.2-r1 [1.19.1-r2] USE="-X* -cjk%" 2,835 kB
[ebuild     U ] sys-apps/man-1.6d [1.6-r1] USE="nls" 263 kB
[ebuild     U ] sys-apps/man-pages-2.42 [2.33] USE="nls" 1,777 kB
[ebuild     U ] sys-kernel/linux-headers-2.6.16 [2.6.11-r4] USE="-gcc64%" 39,922 kB
[ebuild     U ] sys-libs/com_err-1.39 [1.38] USE="nls" 3,608 kB
[ebuild     U ] sys-libs/ss-1.39 [1.38] USE="nls" 0 kB
[ebuild     U ] sys-fs/e2fsprogs-1.39 [1.38-r1] USE="nls -static" 0 kB
[ebuild     U ] sys-apps/util-linux-2.12r-r4 [2.12r-r3] USE="crypt nls perl -old-crypt (-selinux) -static" 1,504 kB
[ebuild     U ] sys-apps/grep-2.5.1a-r1 [2.5.1a] USE="nls pcre%* -static (-build%)" 515 kB
[ebuild     U ] app-arch/gzip-1.3.5-r10 [1.3.5-r8] USE="nls -build -pic -static" 323 kB
[ebuild     U ] sys-devel/bison-2.2 [2.1] USE="nls -static" 1,052 kB
[ebuild     U ] sys-apps/findutils-4.3.2 [4.1.20-r2] USE="nls (-selinux) -static (-build%)" 1,276 kB
[ebuild     U ] sys-devel/binutils-config-1.9-r3 [1.8-r7] 0 kB
[ebuild     U ] sys-devel/binutils-2.17 [2.16.1-r3] USE="nls -multislot -multitarget -test -vanilla" 13,484 kB
[ebuild     U ] dev-libs/mpfr-2.2.0_p16 [2.2.0_p10] 738 kB
[ebuild     U ] sys-devel/gcc-4.1.1-r1 [4.1.1] USE="fortran nls (-altivec) -bootstrap -build -doc -gcj -gtk* (-hardened) (-ip28) -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test% -vanilla" 0 kB
[ebuild     U ] sys-libs/timezone-data-2006p [2006g] USE="nls%*" 336 kB
[ebuild     U ] sys-libs/glibc-2.4-r4 [2.4-r3] USE="nls nptl nptlonly -build -glibc-compat20% -glibc-omitfp -hardened (-multilib) -profile (-selinux)" 15,711 kB
[ebuild     U ] sys-devel/make-3.81 [3.80-r4] USE="nls -static (-build%)" 1,124 kB
[ebuild   R   ] sys-apps/sysvinit-2.86-r5  USE="(-ibm) (-selinux) -static (-bootstrap%) (-build%)" 100 kB
[ebuild     U ] sys-apps/coreutils-6.4 [5.94-r1] USE="nls -acl (-selinux) -static (-build%)" 5,216 kB
[ebuild     U ] sys-libs/cracklib-2.8.9-r1 [2.8.9] USE="nls python" 562 kB
[ebuild     U ] sys-apps/net-tools-1.60-r12 [1.60-r11] USE="nls -static" 297 kB
[ebuild     U ] sys-apps/kbd-1.12-r8 [1.12-r6] USE="nls" 867 kB
[ebuild     U ] sys-apps/busybox-1.2.2.1 [1.1.3] USE="-debug -make-symlinks -netboot -savedconfig -static (-floppyboot%)" 1,380 kB
[ebuild     U ] net-nds/openldap-2.3.27-r3 [2.3.24-r1] USE="berkdb crypt gdbm ipv6 perl readline ssl tcpd -debug -kerberos -minimal -odbc -overlays -samba -sasl (-selinux) -slp -smbkrb5passwd%" 3,669 kB
[ebuild     U ] sys-apps/gawk-3.1.5-r2 [3.1.5-r1] USE="nls (-build%)" 2,256 kB
[ebuild     U ] sys-apps/shadow-4.0.18.1 [4.0.15-r2] USE="cracklib%* nls pam -nousuid (-selinux) -skey" 1,480 kB
[ebuild   R   ] sys-process/psmisc-22.2  USE="ipv6 nls -X* (-selinux)" 238 kB
[ebuild     U ] sys-apps/module-init-tools-3.2.2-r1 [3.2.1] USE="-no-old-linux%" 394 kB
[ebuild     U ] sys-apps/file-4.18 [4.17-r1] USE="python (-build%)" 523 kB
[ebuild     U ] net-misc/rsync-2.6.9-r1 [2.6.8-r2] USE="ipv6 -acl -static -xinetd (-build%)" 792 kB
[ebuild     U ] sys-apps/debianutils-2.15-r1 [2.15] USE="-build -static" 181 kB
[ebuild     U ] net-misc/openssh-4.4_p1-r6 [4.3_p2-r1] USE="ldap pam tcpd -X% -X509 -chroot -hpn -kerberos -libedit (-selinux) -skey -smartcard -static (-ipv6%*) (-sftplogging%)" 1,079 kB
[ebuild     U ] app-editors/nano-2.0.1 [1.3.11-r2] USE="ncurses nls spell unicode -debug -justify -minimal -slang (-build%)" 1,268 kB
[ebuild     U ] sys-apps/hdparm-6.6 [6.3] 44 kB

Total size of downloads: 104,914 kB

Would you like to merge these packages? [Yes/No]

BTW, the upgrade is now as far as glibc.  I has already made it through gcc.
Comment 3 SpanKY gentoo-dev 2007-01-08 04:44:04 UTC
this is prob the one that fixed it:

[ebuild     U ] sys-devel/binutils-2.17 [2.16.1-r3] USE="nls -multislot
-multitarget -test -vanilla" 13,484 kB

i'll for 2.17 or newer for ppc targets