<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-clang.git/recipes-core/ncurses, branch hardknott</title>
<subtitle>Mirror of github.com/kraj/meta-clang.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-clang.git/atom?h=hardknott</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-clang.git/atom?h=hardknott'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/'/>
<updated>2017-02-13T16:41:44+00:00</updated>
<entry>
<title>ncurses: fix build errors in some clang configurations</title>
<updated>2017-02-13T16:41:44+00:00</updated>
<author>
<name>Daniel McGregor</name>
<email>daniel.mcgregor@vecima.com</email>
</author>
<published>2016-04-04T16:23:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=9a73a14da45ffcfa9346760123541f36dde9be2f'/>
<id>urn:sha1:9a73a14da45ffcfa9346760123541f36dde9be2f</id>
<content type='text'>
ncurses' configure script strips the arguments from $CC when checking
if -c and -o can be used together. Clang then doesn't have a default
sysroot argument to use, so it checks the host for the existence of
certain feature headers in libc. These checks fail, and it assumes
that clang can't handle -o and -c together.

Example config.log snippet:

configure:2524: checking whether arm-poky-linux-gnueabi-clang understands -c and -o together
configure:2540: arm-poky-linux-gnueabi-clang -c conftest.c -o conftest2.o &gt;&amp;5
In file included from conftest.c:1:
In file included from /usr/include/stdio.h:27:
In file included from /usr/include/features.h:399:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
# include &lt;gnu/stubs-32.h&gt;
          ^
1 error generated.
configure:2543: $? = 1
configure:2562: result: no

Signed-off-by: Daniel McGregor &lt;daniel.mcgregor@vecima.com&gt;
</content>
</entry>
</feed>
