public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
@ 2011-04-22 10:12 gmarkhor at gmail dot com
2011-04-22 12:56 ` Jan Hubicka
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: gmarkhor at gmail dot com @ 2011-04-22 10:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48725
Summary: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gmarkhor@gmail.com
My GCC version is 4.6.0 release, working under Ubuntu 10.10 x64.
gcc -###
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/.../x86_64-gcc-4.6.0/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/.../x86_64-gcc-4.6.0 --enable-shared
--with-arch=native --enable-languages=c,c++ --enable-lto --enable-plugin
--enable-gold --enable-linker-build-id --disable-multilib --enable-ld=default
--with-plugin-ld=ld.gold
Thread model: posix
gcc version 4.6.0 (GCC)
It uses binutils 2.21.51, installed at the same prefix "/.../x86_64-gcc-4.6.0".
ld.gold --version
GNU gold (GNU Binutils 2.21.51.20110414) 1.11
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
I make p7zip 9.20.1, downloadable at p7zip.sourceforge.net. I use makefile
named makefile.linux_amd64 with the following addition:
OPTFLAGS=-O2 -flto
When it comes to linking 7z.so, I get the following:
...
make[1]: Entering directory `/???/p7zip_9.20.1/CPP/7zip/Bundles/Format7zFree'
g++ -m64 -O2 -flto -pipe -s -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG
-D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -fPIC -DEXTERNAL_CODECS -DUNICODE
-D_UNICODE -fPIC -shared -o ../../../../bin/7z.so wine_date_and_time.o
myGetTickCount.o CRC.o IntToString.o MyMap.o MyString.o MyWindows.o MyXml.o
StringConvert.o StringToInt.o MyVector.o UTFConvert.o Wildcard.o FileDir.o
FileFind.o FileIO.o PropVariant.o PropVariantUtils.o Synchronization.o System.o
Time.o InBuffer.o InOutTempBuffer.o CreateCoder.o CWrappers.o FilterCoder.o
LimitedStreams.o LockedStream.o MethodId.o MethodProps.o MemBlocks.o
OffsetStream.o OutBuffer.o OutMemStream.o ProgressMt.o ProgressUtils.o
StreamBinder.o StreamObjects.o StreamUtils.o VirtThread.o ArchiveExports.o
DllExports2.o ApmHandler.o ArjHandler.o Bz2Handler.o CpioHandler.o
CramfsHandler.o DebHandler.o DeflateProps.o DmgHandler.o ElfHandler.o
FatHandler.o FlvHandler.o GzHandler.o LzhHandler.o LzmaHandler.o MachoHandler.o
MbrHandler.o MslzHandler.o MubHandler.o NtfsHandler.o PeHandler.o PpmdHandler.o
RpmHandler.o SplitHandler.o SwfHandler.o SquashfsHandler.o VhdHandler.o
XarHandler.o XzHandler.o ZHandler.o CoderMixer2.o CoderMixer2MT.o
CrossThreadProgress.o DummyOutStream.o FindSignature.o InStreamWithCRC.o
ItemNameUtils.o MultiStream.o OutStreamWithCRC.o OutStreamWithSha1.o
HandlerOut.o ParseProperties.o 7zCompressionMode.o 7zDecode.o 7zEncode.o
7zExtract.o 7zFolderInStream.o 7zFolderOutStream.o 7zHandler.o 7zHandlerOut.o
7zHeader.o 7zIn.o 7zOut.o 7zProperties.o 7zSpecStream.o 7zUpdate.o 7zRegister.o
CabBlockInStream.o CabHandler.o CabHeader.o CabIn.o CabRegister.o
ChmHandler.o ChmHeader.o ChmIn.o ChmRegister.o ComHandler.o ComIn.o
ComRegister.o HfsHandler.o HfsIn.o HfsRegister.o IsoHandler.o IsoHeader.o
IsoIn.o IsoRegister.o NsisDecode.o NsisHandler.o NsisIn.o NsisRegister.o
RarHandler.o RarHeader.o RarIn.o RarItem.o RarVolumeInStream.o RarRegister.o
TarHandler.o TarHandlerOut.o TarHeader.o TarIn.o TarOut.o TarUpdate.o
TarRegister.o UdfHandler.o UdfIn.o UdfRegister.o WimHandler.o WimHandlerOut.o
WimIn.o WimRegister.o ZipAddCommon.o ZipHandler.o ZipHandlerOut.o ZipHeader.o
ZipIn.o ZipItem.o ZipOut.o ZipUpdate.o ZipRegister.o CodecExports.o
ArjDecoder1.o ArjDecoder2.o Bcj2Coder.o Bcj2Register.o BcjCoder.o BcjRegister.o
BitlDecoder.o BranchCoder.o BranchMisc.o BranchRegister.o ByteSwap.o BZip2Crc.o
BZip2Decoder.o BZip2Encoder.o BZip2Register.o CopyCoder.o CopyRegister.o
Deflate64Register.o DeflateDecoder.o DeflateEncoder.o DeflateRegister.o
DeltaFilter.o Lzma2Decoder.o Lzma2Encoder.o Lzma2Register.o ImplodeDecoder.o
ImplodeHuffmanDecoder.o LzhDecoder.o LzmaDecoder.o LzmaEncoder.o LzmaRegister.o
LzOutWindow.o Lzx86Converter.o LzxDecoder.o PpmdDecoder.o PpmdEncoder.o
PpmdRegister.o PpmdZip.o QuantumDecoder.o ShrinkDecoder.o ZlibDecoder.o
ZlibEncoder.o ZDecoder.o 7zAes.o 7zAesRegister.o HmacSha1.o MyAes.o
Pbkdf2HmacSha1.o RandGen.o Rar20Crypto.o RarAes.o Sha1.o WzAes.o ZipCrypto.o
ZipStrong.o 7zBuf2.o 7zStream.o Aes.o Alloc.o Bra.o Bra86.o BraIA64.o
BwtSort.o Delta.o HuffEnc.o LzFind.o LzFindMt.o Lzma2Dec.o Lzma2Enc.o LzmaDec.o
LzmaEnc.o MtCoder.o Ppmd7.o Ppmd7Dec.o Ppmd7Enc.o Ppmd8.o Ppmd8Dec.o Ppmd8Enc.o
Sha256.o Sort.o Threads.o Xz.o XzCrc64.o XzDec.o XzEnc.o XzIn.o 7zCrc.o
7zCrcOpt.o -lpthread -ldl
/.../x86_64-gcc-4.6.0/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../x86_64-unknown-linux-gnu/bin/ld.gold:
internal error in symtab_section, at ../../gold/layout.h:684
collect2: ld returned 1 exit status
make[1]: *** [../../../../bin/7z.so] Error 1
With "-fuse-linker-plugin" added, I get the same error. It seems like a bug in
LTO.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/48725] 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
2011-04-22 10:12 [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold gmarkhor at gmail dot com
2011-04-22 12:56 ` Jan Hubicka
@ 2011-04-22 12:56 ` hubicka at ucw dot cz
2011-04-22 13:12 ` gmarkhor at gmail dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: hubicka at ucw dot cz @ 2011-04-22 12:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48725
--- Comment #1 from Jan Hubicka <hubicka at ucw dot cz> 2011-04-22 12:56:21 UTC ---
> /.../x86_64-gcc-4.6.0/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../x86_64-unknown-linux-gnu/bin/ld.gold:
> internal error in symtab_section, at ../../gold/layout.h:684
> collect2: ld returned 1 exit status
> make[1]: *** [../../../../bin/7z.so] Error 1
This is ICE in gold. Might be becase GCC produces something particularly evil,
but gold should not ICE.
Can you, please, fill in binutils bug?
Honza
>
>
> With "-fuse-linker-plugin" added, I get the same error. It seems like a bug in
> LTO.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
2011-04-22 10:12 [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold gmarkhor at gmail dot com
@ 2011-04-22 12:56 ` Jan Hubicka
2011-04-22 12:56 ` [Bug lto/48725] " hubicka at ucw dot cz
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jan Hubicka @ 2011-04-22 12:56 UTC (permalink / raw)
To: gmarkhor at gmail dot com; +Cc: gcc-bugs
> /.../x86_64-gcc-4.6.0/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../x86_64-unknown-linux-gnu/bin/ld.gold:
> internal error in symtab_section, at ../../gold/layout.h:684
> collect2: ld returned 1 exit status
> make[1]: *** [../../../../bin/7z.so] Error 1
This is ICE in gold. Might be becase GCC produces something particularly evil, but gold should not ICE.
Can you, please, fill in binutils bug?
Honza
>
>
> With "-fuse-linker-plugin" added, I get the same error. It seems like a bug in
> LTO.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/48725] 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
2011-04-22 10:12 [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold gmarkhor at gmail dot com
2011-04-22 12:56 ` Jan Hubicka
2011-04-22 12:56 ` [Bug lto/48725] " hubicka at ucw dot cz
@ 2011-04-22 13:12 ` gmarkhor at gmail dot com
2011-04-25 9:47 ` gmarkhor at gmail dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: gmarkhor at gmail dot com @ 2011-04-22 13:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48725
--- Comment #2 from Vadim Markovtsev <gmarkhor at gmail dot com> 2011-04-22 13:12:17 UTC ---
> Can you, please, fill in binutils bug?
Done. The link to it is http://sourceware.org/bugzilla/show_bug.cgi?id=12695
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/48725] 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
2011-04-22 10:12 [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold gmarkhor at gmail dot com
` (2 preceding siblings ...)
2011-04-22 13:12 ` gmarkhor at gmail dot com
@ 2011-04-25 9:47 ` gmarkhor at gmail dot com
2011-04-25 14:51 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: gmarkhor at gmail dot com @ 2011-04-25 9:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48725
--- Comment #3 from Vadim Markovtsev <gmarkhor at gmail dot com> 2011-04-25 09:47:25 UTC ---
BTW, gold fails to link if used in a similar way in LLVM LTO, so it is likely
not a GCC bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/48725] 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
2011-04-22 10:12 [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold gmarkhor at gmail dot com
` (3 preceding siblings ...)
2011-04-25 9:47 ` gmarkhor at gmail dot com
@ 2011-04-25 14:51 ` hjl.tools at gmail dot com
2011-04-25 16:06 ` gmarkhor at gmail dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2011-04-25 14:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48725
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011.04.25 14:51:25
CC| |hjl.tools at gmail dot com
Ever Confirmed|0 |1
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2011-04-25 14:51:25 UTC ---
Does it work with BFD linker in CVS?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/48725] 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
2011-04-22 10:12 [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold gmarkhor at gmail dot com
` (4 preceding siblings ...)
2011-04-25 14:51 ` hjl.tools at gmail dot com
@ 2011-04-25 16:06 ` gmarkhor at gmail dot com
2011-05-10 11:04 ` gmarkhor at gmail dot com
2011-06-29 21:30 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: gmarkhor at gmail dot com @ 2011-04-25 16:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48725
--- Comment #5 from Vadim Markovtsev <gmarkhor at gmail dot com> 2011-04-25 16:06:25 UTC ---
(In reply to comment #4)
> Does it work with BFD linker in CVS?
I will check that out tomorrow.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/48725] 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
2011-04-22 10:12 [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold gmarkhor at gmail dot com
` (5 preceding siblings ...)
2011-04-25 16:06 ` gmarkhor at gmail dot com
@ 2011-05-10 11:04 ` gmarkhor at gmail dot com
2011-06-29 21:30 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: gmarkhor at gmail dot com @ 2011-05-10 11:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48725
--- Comment #6 from Vadim Markovtsev <gmarkhor at gmail dot com> 2011-05-10 11:01:14 UTC ---
(In reply to comment #5)
> (In reply to comment #4)
> > Does it work with BFD linker in CVS?
>
> I will check that out tomorrow.
Sorry for such a delay,
I checked out binutils from CVS on May, 10. p7zip is built flawlessly with the
BFD linker. The gold linker (when building with LTO) fails the same way.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/48725] 4.6.0 fails to link p7zip 9.20.1 with LTO and gold
2011-04-22 10:12 [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold gmarkhor at gmail dot com
` (6 preceding siblings ...)
2011-05-10 11:04 ` gmarkhor at gmail dot com
@ 2011-06-29 21:30 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: ian at airs dot com @ 2011-06-29 21:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48725
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
CC| |ian at airs dot com
Resolution| |WORKSFORME
--- Comment #7 from Ian Lance Taylor <ian at airs dot com> 2011-06-29 21:30:23 UTC ---
As noted on the gold bug report
http://sourceware.org/bugzilla/show_bug.cgi?id=12695, I have not been able to
recreate the problem with gold.
However, any problem here is clearly a gold problem, and I don't see any reason
to keep this gcc bug report open.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-06-29 21:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-22 10:12 [Bug lto/48725] New: 4.6.0 fails to link p7zip 9.20.1 with LTO and gold gmarkhor at gmail dot com
2011-04-22 12:56 ` Jan Hubicka
2011-04-22 12:56 ` [Bug lto/48725] " hubicka at ucw dot cz
2011-04-22 13:12 ` gmarkhor at gmail dot com
2011-04-25 9:47 ` gmarkhor at gmail dot com
2011-04-25 14:51 ` hjl.tools at gmail dot com
2011-04-25 16:06 ` gmarkhor at gmail dot com
2011-05-10 11:04 ` gmarkhor at gmail dot com
2011-06-29 21:30 ` ian at airs dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).