<html>
<head>
<base href="http://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 --- - Clang 3.5 (exp1) compiles GNUStep successfully on Linux, but caused segment fault when running."
href="http://llvm.org/bugs/show_bug.cgi?id=18139">18139</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang 3.5 (exp1) compiles GNUStep successfully on Linux, but caused segment fault when running.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>skyline75489@outlook.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I want to learn Objective-C programming on Linux. I tried gobjc but its
libraries are too old, so I decided to compile my own libraries with the help
of Clang.
I used Clang 3.5(exp1) from Ubuntu Nightly packages to compile GNUStep, simply
doing "export CC=clang; ./configure; make ; make install;". I start from
libobjc2-1.7, then gnustep-make 2.6.5, then gnustep-base-1.24.5, then
gnustep-gui0.23.1. All success. But finally when I tried to make
gnustep-back-0.23.0, it stops with segment fault. Then I found that a simple
hello world program using NSLog will also cause segment fault. So I guess that
somehow Clang didn't compile gnustep-base correctly.
All the gnustep packages was download from official GNUStep website. I removed
Clang 3.5 and installed Clang 3.0 from Ubuntu apt. Problem solved.</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>