<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [yaml2obj] Repeated symbol name: 'crtstuff.c' for simple ELF."
href="https://llvm.org/bugs/show_bug.cgi?id=31788">31788</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[yaml2obj] Repeated symbol name: 'crtstuff.c' for simple ELF.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jonas@devlieghere.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17907" name="attach_17907" title="yaml output">attachment 17907</a> <a href="attachment.cgi?id=17907&action=edit" title="yaml output">[details]</a></span>
yaml output
I run into the following error when processing a very simple ELF with obj2yaml
and yaml2obj. I'm not sure which of the two is at fault here. Tested with
release_40 branch and trunk.
$ cat simple.c
int main() {
return 0;
}
$ clang -v
clang version 5.0.0 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
0ed751a33b17198220a272e69f0a25f30224c3c2) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
194c9f4ba156d7249ad5f1e4558c8c30728b65f9)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/jonas/dev/llvm-trunk/build/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6.2.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
Found CUDA installation: /usr/local/cuda, version 8.0
$ clang simple.c -o simple
$ obj2yaml simple > simple.yml
$ yaml2obj simple.yml > simple_from_yaml
error: Repeated symbol name: 'crtstuff.c'.
The same thing happens whether I compile simple.c with clang or GCC. However
for GCC obj2yaml didn't work at first (4.0 branch), but that was fixed by
<a href="https://reviews.llvm.org/rL293224">https://reviews.llvm.org/rL293224</a> and now works for me on trunk.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>