View previous topic :: View next topic |
Author |
Message |
dreameat n00b
Joined: 20 Feb 2007 Posts: 10
|
Posted: Wed Mar 21, 2007 6:30 pm Post subject: [solved]problem about hashstyle.. |
|
|
I followed every steps of the http://gentoo-wiki.com/HOWTO_Hashstyle but when I emerge -e world I got the error about"ld: unrecognized option '--hash-style=both'"
Code: | # emerge -e system
Calculating system dependencies... done!
>>> Emerging (1 of 123) sys-apps/portage-2.1.2.2 to /
* portage-2.1.2.tar.bz2 RMD160 ;-) ... [ ok ]
* portage-2.1.2.tar.bz2 SHA1 ;-) ... [ ok ]
* portage-2.1.2.tar.bz2 SHA256 ;-) ... [ ok ]
* portage-2.1.2.tar.bz2 size ;-) ... [ ok ]
* portage-2.1.2.2.patch.bz2 RMD160 ;-) ... [ ok ]
* portage-2.1.2.2.patch.bz2 SHA1 ;-) ... [ ok ]
* portage-2.1.2.2.patch.bz2 SHA256 ;-) ... [ ok ]
* portage-2.1.2.2.patch.bz2 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking portage-2.1.2.tar.bz2 ;-) ... [ ok ]
* checking portage-2.1.2.2.patch.bz2 ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking portage-2.1.2.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.1.2.2/work
>>> Unpacking portage-2.1.2.2.patch.bz2 to /var/tmp/portage/sys-apps/portage-2.1.2.2/work
* Applying portage-2.1.2.2.patch ... [ ok ]
* Setting portage.VERSION to 2.1.2.2 ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/portage-2.1.2.2/work/portage-2.1.2 ...
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--hash-style=both'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
!!! ERROR: sys-apps/portage-2.1.2.2 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 3342: Called src_compile
portage-2.1.2.2.ebuild, line 86: Called die
!!! Failed to build tbz2tool
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/portage-2.1.2.2/temp/build.log'.
|
I use unstable Gentoo and I have got the latest version of gcc binutils and glibc,and I have add the "hashstyle" USE FLAGS to the /etc/make.conf,and I have emerged binutils glibc with it,,,why '--hash-style=both' is still unrecognized?
Last edited by dreameat on Thu Mar 22, 2007 2:32 am; edited 1 time in total |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
dreameat n00b
Joined: 20 Feb 2007 Posts: 10
|
Posted: Wed Mar 21, 2007 7:39 pm Post subject: |
|
|
I have switched binutils,
Code: | binutils-config -l
[1] i686-pc-linux-gnu-2.16.1
[2] i686-pc-linux-gnu-2.17 *
|
but after env-update && source /etc/profile Igot the error still
Code: |
>>> Compiling source in /var/tmp/portage/sys-apps/portage-2.1.2.2/work/portage-2.1.2 ...
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--hash-style=both'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
!!! ERROR: sys-apps/portage-2.1.2.2 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 3342: Called src_compile
portage-2.1.2.2.ebuild, line 86: Called die
!!! Failed to build tbz2tool
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/portage-2.1.2.2/temp/build.log'.
|
|
|
Back to top |
|
|
nbvcxz Guru
Joined: 02 Sep 2005 Posts: 379 Location: Kraków / PL
|
Posted: Wed Mar 21, 2007 7:57 pm Post subject: |
|
|
http://gentoo-wiki.com/HOWTO_Hashstyle wrote: | Please ensure you are emerging binutils >= 2.17.50.0.3 below. If it isn't, please adjust package.keywords, etc. |
so please upgrade your binutils first (and then select upgraded binutils with binutils-config)
and everything should go right _________________ nBVCXz
zen-kernel (bfq compcache) | /tmp -> tmpfs | ext4 | zsh | xfce | schedtool |
|
Back to top |
|
|
dreameat n00b
Joined: 20 Feb 2007 Posts: 10
|
Posted: Thu Mar 22, 2007 1:21 am Post subject: |
|
|
nbvcxz wrote: | http://gentoo-wiki.com/HOWTO_Hashstyle wrote: | Please ensure you are emerging binutils >= 2.17.50.0.3 below. If it isn't, please adjust package.keywords, etc. |
so please upgrade your binutils first (and then select upgraded binutils with binutils-config)
and everything should go right |
but I have already updated the binutilsis to version 2.17.50.0.13 ...........and gcc-4.1.2, glibc-2.5-r1
here is something in my make.conf
Code: |
CFLAGS="-O3 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,--hash-style=both"
MAKEOPTS="-j2"
USE="hashstyle symlink x86 nvidia -gdbm tcpd uclibc unicode usb vanilla win32codecs xmms xv zlib xvid examples ffmpeg ft
p gd gphoto2 jpeg matrox mozilla mp3 mpeg mule nas opengl oss perl pdflib png qt sdl spell sse svg svga mmx esd encode em
acs-w3 pic nptl nptlonly -ipv6 -gnome -gtk nls cjk X a52 aac alsa arts avi bash-completion bzip2 cdr caps dga divx4linux d
io dvd emacs xine ogg pdf audiofile bitmap-fonts directfb exif expat fbcon flac ggi gpm kdeenablefinal kdexdeltas mikmod
mad motif ncurses nocd oggvorbis openal pam pcre quicktime python readline scanner slang truetype truetype-fonts type1-fon
ts vorbis"
FEATURES="autoaddcvs autoconfig ccache cvs strict sfperms"
ACCEPT_KEYWORDS="~x86"
|
|
|
Back to top |
|
|
Tagx n00b
Joined: 18 Apr 2006 Posts: 61
|
Posted: Thu Mar 22, 2007 1:31 am Post subject: |
|
|
Post the output of binutils-config -l
It seems you do not have the required version of binutils for hashstyle. The latest in portage is 2.17.50.0.13.
My binutils-config -l looks like this: Code: | [1] x86_64-pc-linux-gnu-2 |
|
|
Back to top |
|
|
dreameat n00b
Joined: 20 Feb 2007 Posts: 10
|
Posted: Thu Mar 22, 2007 1:53 am Post subject: |
|
|
Tagx wrote: | Post the output of binutils-config -l
It seems you do not have the required version of binutils for hashstyle. The latest in portage is 2.17.50.0.13.
My binutils-config -l looks like this: Code: | [1] x86_64-pc-linux-gnu-2 |
|
Code: | binutils-config -l
[1] i686-pc-linux-gnu-2.16.1
[2] i686-pc-linux-gnu-2.17 *
|
I do have the binutils 2.17.50.0.13,,but I found this just now,sys-devel/binutils: 2.16.1-r3 is still in use
Code: | # emerge --info bunitils
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r3W.G.N. i686)
=================================================================
System Settings
=================================================================
System uname: 2.6.20-gentoo-r3W.G.N. i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 20 Mar 2007 03:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python: 2.4.4, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
sys-apps/sandbox: 1.2.18.1
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.15-r1
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.20-r2
|
now I have unmerged sys-devel/binutils-2.16.1-r3
emerge --info bunitils shows
Code: | # emerge --info bunitils
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r3W.G.N. i686)
=================================================================
System Settings
=================================================================
System uname: 2.6.20-gentoo-r3W.G.N. i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 20 Mar 2007 03:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python: 2.4.4, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
sys-apps/sandbox: 1.2.18.1
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.17
|
then I emerge -e system,nothing change,got the same errors |
|
Back to top |
|
|
predatorfreak l33t
Joined: 13 Jan 2005 Posts: 708 Location: USA, Michigan.
|
Posted: Thu Mar 22, 2007 2:13 am Post subject: |
|
|
The required binutils version is masked by a negative keyword, so you need to unmask -* or it will not merge. _________________ System: predatorbox
Distro: Arch Linux x86_64
Current projects: blackhole, convmedia and anything else I cook up. |
|
Back to top |
|
|
dreameat n00b
Joined: 20 Feb 2007 Posts: 10
|
Posted: Thu Mar 22, 2007 2:30 am Post subject: |
|
|
predatorfreak wrote: | The required binutils version is masked by a negative keyword, so you need to unmask -* or it will not merge. |
yeah,,I got it,you are right
Code: | # emerge -av binutils
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS ] sys-devel/binutils-2.17.50.0.13 USE="multislot nls vanilla -multitarget -test" 0 kB
Total: 1 package (1 in new slot), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No] y
|
I have "~x86"keywords in my make.conf,so I think I needn't to unmask the binutils so foolish
thank you all,everything is ok now ,I am emerging -e system
thank you verymuch |
|
Back to top |
|
|
|
|
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
|
|