<html>
<head>
<base href="https://bugs.freedesktop.org/">
</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 - Can't build with LLVM/clang"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100939">100939</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Can't build with LLVM/clang
</td>
</tr>
<tr>
<th>Product</th>
<td>Wayland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>wayland
</td>
</tr>
<tr>
<th>Assignee</th>
<td>wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tpgxyz@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Wayland 1.13.0 build fails with LLVM/clang 4.1 with LTO enabled
More logs can be found here
<a href="http://file-store.openmandriva.org/api/v1/file_stores/5af6909e374c756e8e67307535a3f9530d6f7861.log?show=true">http://file-store.openmandriva.org/api/v1/file_stores/5af6909e374c756e8e67307535a3f9530d6f7861.log?show=true</a>
make[2]: Entering directory '/builddir/build/BUILD/wayland-1.13.0'
/bin/sh ./libtool --tag=CC --mode=link /usr/bin/clang -Wall -Wextra
-Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes
-fvisibility=hidden -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -fPIC -flto -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe
-Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -fPIC -flto -Wl,-O2 -Wl,--no-undefined -flto -o
fixed-test tests/fixed-test.o libtest-runner.la
libtool: link: /usr/bin/clang -Wall -Wextra -Wno-unused-parameter -g
-Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -Os -gdwarf-4
-Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector --param=ssp-buffer-size=4 -fPIC -flto -Os -gdwarf-4
-Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector --param=ssp-buffer-size=4 -fPIC -flto -Wl,-O2
-Wl,--no-undefined -flto -o .libs/fixed-test tests/fixed-test.o
./.libs/libtest-runner.a
/builddir/build/BUILD/wayland-1.13.0/.libs/libwayland-client.so
/builddir/build/BUILD/wayland-1.13.0/.libs/libwayland-server.so -lm -lrt -ldl
-lffi -pthread
make[2]: Leaving directory '/builddir/build/BUILD/wayland-1.13.0'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to
'__stop_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to
'__start_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to
'__start_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to
'__stop_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to
'__stop_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to
'__start_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to
'__start_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to
'__stop_test_section'
clang-4.0: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [Makefile:1446: fixed-test] Error 1
make[2]: *** Waiting for unfinished jobs....</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>