[LLVMbugs] [Bug 13973] New: LLVM/CLANG trunk emitting MACH-O files rejected by ranlib OS X 10.7.4/XCode 4.4.1
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Sep 28 07:20:10 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13973
Bug #: 13973
Summary: LLVM/CLANG trunk emitting MACH-O files rejected by
ranlib OS X 10.7.4/XCode 4.4.1
Product: tools
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: llvm-as
AssignedTo: unassignedbugs at nondot.org
ReportedBy: norman-k-williams at uiowa.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
LLVM/CLANG SVN REVISION revision 164821
I can run a build on a library package up until the build process tries to
generate a library archive. Then, ar fails during the ranlib stage with this
error message:
/usr/bin/ranlib: object: ../../../../../lib/libitksys-4.1.a(ProcessUNIX.c.o)
malformed object (unknown load command 1)
This is not tied to any particular package that I'm building -- if I try to
build LLVM/CLANG with this version of LLVM/CLANG, it fails in the same manner:
otool -lvH
./Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/ProcessUNIX.c.o
./Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/ProcessUNIX.c.o:
Load command 0
cmd LC_SEGMENT_64
cmdsize 1832
segname
vmaddr 0x0000000000000000
vmsize 0x000000000000b8e0
fileoff 1984
filesize 47296
maxprot rwx
initprot rwx
nsects 22
flags (none)
Section
sectname __text
segname __TEXT
addr 0x0000000000000000
size 0x00000000000056e0
offset 1984
align 2^4 (16)
reloff 49280
nreloc 453
type S_REGULAR
attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
reserved1 0
reserved2 0
Section
sectname __debug_info
segname __DWARF
addr 0x00000000000056e0
size 0x0000000000002077
offset 24224
align 2^0 (1)
reloff 52904
nreloc 266
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __debug_abbrev
segname __DWARF
addr 0x0000000000007757
size 0x00000000000001df
offset 32535
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __debug_aranges
segname __DWARF
addr 0x0000000000007936
size 0x0000000000000000
offset 33014
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __debug_macinfo
segname __DWARF
addr 0x0000000000007936
size 0x0000000000000000
offset 33014
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __debug_line
segname __DWARF
addr 0x0000000000007936
size 0x0000000000000ef1
offset 33014
align 2^0 (1)
reloff 55032
nreloc 1
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __debug_loc
segname __DWARF
addr 0x0000000000008827
size 0x0000000000000000
offset 36839
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __debug_pubtypes
segname __DWARF
addr 0x0000000000008827
size 0x00000000000000ff
offset 36839
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __debug_str
segname __DWARF
addr 0x0000000000008926
size 0x0000000000001115
offset 37094
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __debug_ranges
segname __DWARF
addr 0x0000000000009a3b
size 0x0000000000000000
offset 41467
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __data
segname __DATA
addr 0x0000000000009a3b
size 0x0000000000000000
offset 41467
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes (none)
reserved1 0
reserved2 0
Section
sectname __literal8
segname __TEXT
addr 0x0000000000009a40
size 0x0000000000000010
offset 41472
align 2^3 (8)
reloff 0
nreloc 0
type S_8BYTE_LITERALS
attributes (none)
reserved1 0
reserved2 0
Section
sectname __cstring
segname __TEXT
addr 0x0000000000009a50
size 0x000000000000021a
offset 41488
align 2^0 (1)
reloff 0
nreloc 0
type S_CSTRING_LITERALS
attributes (none)
reserved1 0
reserved2 0
Section
sectname __const
segname __TEXT
addr 0x0000000000009c6c
size 0x0000000000000014
offset 42028
align 2^2 (4)
reloff 0
nreloc 0
type S_REGULAR
attributes (none)
reserved1 0
reserved2 0
Section
sectname __bss
segname __DATA
addr 0x000000000000b8c0
size 0x0000000000000020
offset 0
align 2^3 (8)
reloff 0
nreloc 0
type S_ZEROFILL
attributes (none)
reserved1 0
reserved2 0
Section
sectname __apple_names
segname __DWARF
addr 0x0000000000009c80
size 0x0000000000000604
offset 42048
align 2^0 (1)
reloff 55040
nreloc 116
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __apple_objc
segname __DWARF
addr 0x000000000000a284
size 0x0000000000000024
offset 43588
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __apple_namespac
segname __DWARF
addr 0x000000000000a2a8
size 0x0000000000000024
offset 43624
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __apple_types
segname __DWARF
addr 0x000000000000a2cc
size 0x0000000000000613
offset 43660
align 2^0 (1)
reloff 55968
nreloc 104
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __debug_inlined
segname __DWARF
addr 0x000000000000a8df
size 0x0000000000000007
offset 45215
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __compact_unwind
segname __LD
addr 0x000000000000a8e6
size 0x0000000000000700
offset 45222
align 2^0 (1)
reloff 56800
nreloc 56
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __eh_frame
segname __TEXT
addr 0x000000000000afe8
size 0x00000000000008d8
offset 47016
align 2^3 (8)
reloff 0
nreloc 0
type S_COALESCED
attributes NO_TOC STRIP_STATIC_SYMS LIVE_SUPPORT
reserved1 0
reserved2 0
Load command 1
cmd ?(0x00000029) Unknown load command
cmdsize 16
0000dfa0 00000008
Load command 2
cmd LC_SYMTAB
cmdsize 24
symoff 57256
nsyms 193
stroff 60344
strsize 3792
Load command 3
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 112
iextdefsym 112
nextdefsym 44
iundefsym 156
nundefsym 37
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 0
nindirectsyms 0
extreloff 0
nextrel 0
locreloff 0
nlocrel 0
Two-level namespace hints table (0 hints)
index isub itoc
--
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