Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] -msecure-plt not supported by your assembler
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Sun Jan 28, 2007 2:37 pm    Post subject: [solved] -msecure-plt not supported by your assembler Reply with quote

Note: I'm completely new to this. Running Gentoo on a Powermac G4.

I get the error
Code:
-msecure-plt not supported by your assembler


when attempting to update gcc to 4.1.1-r3 (currently 4.1.1).

I found in flag-o-matic.eclass that '-msecure-plt' is added to the ALLOWED_FLAGS. I am going to try to remove it and see if gcc will emerge without the error to 4.1.1-r3.

Can anyone see any consequences if I do this and it works? Is -msecure-plt needed? Why wouldn't it be supported by my assembler (which I assume is gcc 4.1.1)?

Also, does this have anything to do with the problem:
http://overlays.gentoo.org/dev/kevquinn/changeset/137

That part of the toolchain.eclass isn't even there anymore...


Last edited by fuzion on Fri Mar 09, 2007 12:24 am; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jan 28, 2007 2:41 pm    Post subject: Reply with quote

Are you sure you've sync'd recently? I don't see that anywhere.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Sun Jan 28, 2007 2:47 pm    Post subject: Reply with quote

Want me to emerge --sync? How can I find out the answer to your question?

This all started by doing
Code:
emerge -avuDN world


as recommended http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts when trying to fix my fonts.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jan 28, 2007 2:48 pm    Post subject: Reply with quote

Yes please, emerge --sync. When was the last time you did that?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Sun Jan 28, 2007 2:51 pm    Post subject: Reply with quote

I believe that was done 2-3 days ago at the latest. I'll do it again, should I put -msecure-plt back in to ALLOWED_FLAGS? Or are you saying that -msecure-plt isn't there anyways (and I had an outdated file that emerge --sync should fix)?
Back to top
View user's profile Send private message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Sun Jan 28, 2007 3:00 pm    Post subject: Reply with quote

I just finished emerge --sync and -msecure-plt is still in ALLOWED_FLAGS in /usr/portage/eclass/flag-o-matic.eclass.

Should I leave it there?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jan 28, 2007 3:57 pm    Post subject: Reply with quote

No, that shouldn't be a problem, allowed flags is present only for filtering flags. Unless you stuck the flag in your CFLAGs, it means nothing.

What are you trying to do exactly?
How are you upgrading?
What does your emerge --info look like?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Sun Jan 28, 2007 4:22 pm    Post subject: Reply with quote

I did:
Code:
emerge --sync


then
Code:
emerge -uvDN world


this is the last thing that happens before the error:
Code:
./xgcc -B./ -B/usr/powerpc-unknown-linux-gnu/bin/ -isystem /usr/powerpc-unknown-linux-gnu/include -isystem /user/powerpc-unknown-linux-gnu/sys-include -L/var/tmp/portage/gcc-4.1.1-r3/work/build/gcc/../ld -O2 -O2 -O2 -mcpu=G4 -mtune=G4 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -World-style-definition -isystem ./include -I. -I. -I/var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc -I/var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/. -I/var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/../include -I/var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -msdata=none \
  -c /var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/crtstuff.c -DCRT_BEGIN \
  -c crtbdgin.o
/var/tmp/portage/gcc-4.1.1-r3/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]: Leaving directory '/var/tmp/portage/gcc-4.1.1-r3/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory '/var/tmp/portage/gcc-4.1.1-r3/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel-gcc-4.1.1-r3 failed.
Call stack:
 ebuild.sh, line 1546: Called dyn_compile
 ebuild.sh, line 937: Called src_compile
 ebuild.sh, line 1255: Called toolchain_src_compile
 toolchain.eclass, line 24: Called gcc_src_compile
 toolchain.eclass, line 1537: Called gcc_do_make
 toolchain.eclass, line 1411: Called die

!!! emake failed with boostrap-lean
!!! If you need support, post the topmost build error, and the call stack if relevant.


here's what emerge --info looks like:

Code:
Gentoo Base System release 1.12.6
Portage 2.1.1-r2 (default-linux/ppc/ppc32/2006.1/G4, gcc-4.1.1, glibc-2.4-r3, 2.6.18.4 ppc)
=================================================================
System uname: 2.6.18.4 ppc 7400, altivec supported
Last Sync: Sun, 28 Jan 2007 14:31:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
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.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
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.17-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://adelie.polymtl.ca/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ "
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X a52 aac aalib acl 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 altivec apache2 bash-completion bcmath bidi bitmap-fonts bzip2 caps cdparanoia cjk cli cracklib crypt cscope ctype curl curlwrappers dga dio directfb dlloader doc dri dts dv dvb dvd dvdread elibc_glibc encode esd examples fam fastcgi fbcon ffmpeg firefox flac flatfile fltk ftp gcj gd gdbm ggi gif glut gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hardened hardenedphp howl iconv idn ieee1394 imagemagick imap imlib inifile innodb input_devices_keyboard input_devices_mouse input_devices_ps2mouse isdnlog jack java javascript jbig jikes jpeg jpeg2000 junit kerberos kernel_linux lash lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lcms ldap libcaca libedit libnotify libwww mad maildir mailwrapper memlimit milter mime ming mmap mng motif mozilla mp3 mpeg mpi mplayer msn musepack mysql mysqli ncurses nls nntp nptl nptlonly nsplugin odbc ogg openal openexr opengl osc oss pam pcntl pcre pdf perl php png portaudio posix postgres pppd profile python qt3 qt4 quicktime readline recode reflection ruby samba sasl sdl session sharedext sharedmem shorten simplexml snmp soap sockets socks5 source sox speex spell spl ssl startup-notification symlink sysvipc szip tcl tcltk tcpd test tetex theora threads tidy tk tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l vcd verbose video_cards_r128 vim-syntax vorbis wmf wxwindows xface xine xinerama xml xml-rpc xorg xpm xsl xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Sun Jan 28, 2007 8:56 pm    Post subject: Reply with quote

It looks like there's a dependency on binutils:
https://bugs.gentoo.org/show_bug.cgi?id=160709

I removed -msecure-plt from ALLOWED_FLAGS and then ran
Code:
emerge -uv gcc


It emerged binutils first and now gcc seems to be emerging fine. I should probably stick -msecure-plt back in (think I should recompile gcc with it?)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jan 29, 2007 3:24 am    Post subject: Reply with quote

Well, that's weird. It should have updated binutils before gcc (it's in the DEPEND, not RDEPEND). Did you specifically try to emerge only gcc before updating the rest of the system?

Well, I guess it's working now. :) Glad you fixed it.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sat Feb 10, 2007 9:26 am    Post subject: Reply with quote

@fuzion

Did gcc finally finish building? as I have the same error.

Had it for a couple of weeks, but just not had time to report it.

Trying your fix now.....

scooby
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Sun Feb 11, 2007 12:27 am    Post subject: gcc compiled fine when done alone (-msecure-plt removed) Reply with quote

gcc finished and worked for me

I don't know if you have to remove -msecure-plt from ALLOWED_FLAGS or not... when it worked for me I had it removed (and stuck it back in afterwards)

I think what really fixed it for me was emerging gcc by itself via emerge -uv gcc, my guess is that there is a dependency that is not picked up via emerge -uvDN world. So once emerge -uv gcc is finished then do emerge -uvDN world.
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Wed Feb 14, 2007 11:46 pm    Post subject: Reply with quote

I added -msecure-plt to my CHOST flags in make.conf and gcc built, otherwise it would give me the error.
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1609
Location: U.S.A.

PostPosted: Wed Apr 04, 2007 7:30 am    Post subject: Reply with quote

It wouldn't have anything to do with having 'hardened' as a USE flag, would it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum