[LLVMbugs] [Bug 12914] New: Failed to build p7zip with -O4
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 22 09:05:10 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12914
Bug #: 12914
Summary: Failed to build p7zip with -O4
Product: tools
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-ld
AssignedTo: unassignedbugs at nondot.org
ReportedBy: 191919 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In a Mac OS X Lion 10.7.4 MacBook Air, when building p7zip-9.20.1 with -O4, in
linking stage, ld gave the following error message:
/opt/bin/clang++ -O4 -DENV_MACOSX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_REENTRANT -DENV_UNIX -DEXTERNAL_CODECS -DUNICODE -D_UNICODE -bundle -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 -framework CoreFoundation
ld: lto: could not merge in MyMap.o because Invalid SWITCH record for
architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Xcode 4.3.2 and command-line utilities are installed. p7zip could be built with
-O4 cleanly in Linux.
The makefile.machine is:
OPTFLAGS=-O4
# don't use -DNDEBUG in order to use MacOSX wxWidgets
ALLFLAGS=${OPTFLAGS} \
-DENV_MACOSX \
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-D_REENTRANT -DENV_UNIX \
$(LOCAL_FLAGS)
CXX=/opt/bin/clang++ $(ALLFLAGS)
CC=/opt/bin/clang $(ALLFLAGS)
LINK_SHARED=-bundle
LOCAL_LIBS=-framework CoreFoundation
LOCAL_LIBS_DLL=$(LOCAL_LIBS)
OBJ_CRC32=$(OBJ_CRC32_C)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list