Summary: | gcc-3.4.0: trying to emerge gaim-0.77 - "ld: unrecognized option '--as-needed'" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kit Fenderson-Peters <lists> |
Component: | [OLD] Development | Assignee: | Please assign to toolchain <gcc-porting> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | brian |
Priority: | High | ||
Version: | 1.4 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Kit Fenderson-Peters
2004-05-02 12:22:39 UTC
Something tells me you didnt rebuild glibc since you have update gcc. If this is the case it would explain the break in the linker. Try updating glibc and then rebuild gaim it should compile fine I have tested it on my box wich uses harsh cflags compared to what you have and builds fine. It was recommended to me that I rebuild glibc. I attempted to emerge glibc, using gcc-3.4.0, and was unsuccessful. I had the same error. (i.e. /usr/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--as-needed') Attempting to re-emerge binutils produced the same result. Kit when did you build gcc 3.4 and if it is over a week old try to rebuild it ... it is most likely gonna give you the same error about not being able to find the linker. in response to questions on when I built GCC 3.4.0 - I emerged it on 29 April 2004. This is not a gaim problem. The user states that he has problems with many other apps as well. This is definitely a gcc-3.4.0 issue. What about if you drop back to gcc-3.3.3 (assuming you didn't unmerge it) and attempt to recompile binutils, glibc and then gcc-3.4.0 - does that help? Note that if you've compiled binutils with gcc-3.4.0 with "-O3" at any point, errors showing up all over the place are at best unsurprising... I switched to gcc 3.3.3 and re-emerged binutils. I then attempted to re-emerge glibc, which failed. relevant portion of config.log: onfigure:5434: gcc -march=pentium3 -pipe -O2 -freorder-blocks -pie -fpie -o conftest conftest.c 1>&5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: unreco gnized option '--as-needed' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: use th e --help option for usage information collect2: ld returned 1 exit status I have also modified my make.conf: CFLAGS="-march=pentium3 -O2 -pipe -msse2 -mfpmath=sse" CXXFLAGS="-march=pentium3 -O2 -pipe -msse2 -mfpmath=sse" there is no major problem when using -03 anywhere when your using gcc-3.4 I have rebuild over 400 packages using 3.4 without problem. Kit you are gonna have problems no matter what you try now that you rolled gcc back to 3.3.3 best thing you can do is find a binary of gcc and glibc and install them then rebuild using your optimization settings. I have gone threw many forums and found where your problem lies binutils is your problem find a way to upgrade to 2.15 and your compiler will be working again. hope that helps ya. Previous comment recommends upgrading to binutils 2.15. The installed version of binutils on my system is binutils 2.14.90.0.8-r1, which is the latest available via emerge synce as I write this. The original bug report lists gcc-3.4.0 but gcc-3.3.3-r3 is the current version in emerge sync and is also affected. I am having the same problem across basically any emerge command. I did an 'emerge -U world' on 8 May, and all other attempts to emerge since have failed. the emerge command will generally fail with one of two errors, either the previously mentioned: ld: unrecognized option '--as-needed' error and the error in configure of: checking for C compiler default output... configure: error: C compiler cannot create executables If anyone has information on binutils 2.15, or other information on characterizing and resolving this problem, I'd certainly appreciate it. It also seems that the severity of this bug should probably be higher than 'normal', given that it breaks the entire compile system... I successfully resolved this problem by emerging binutils 2.15. I used the ebuild: /usr/portage/sys-devel/binutils/binutils-2.15.90.0.3-r1.ebuild Date on this file is 4 May. I have had no further problems emerging anything. binutils-2.15.90.0.3-r1 has been hard masked. There are additional comments on this issue in the Forum at: http://forums.gentoo.org/viewtopic.php?t=166696 It appears that the forced *downgrade* to binutils 2.14 after rebuilding gcc using binutils 2.15 is what is causing the problem. It appears that this bug is actually a duplicate of bugs: Bug 49363 Bug 50441 Bug 50211 Emerging binutils-2.15.90.0.3-r1 has resolved my problem. I have successfully emerged gcc-3.4.0-r2 and gaim-0.77-r2. wrong solution closed *** This bug has been marked as a duplicate of 50211 *** |