<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Build error with last clang "bad math long / long long settings"]]></title>
		<link>https://www.wolfssl.com/forums/topic713-build-error-with-last-clang-bad-math-long-long-long-settings.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic713.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Build error with last clang "bad math long / long long settings".]]></description>
		<lastBuildDate>Mon, 21 Sep 2015 19:55:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Build error with last clang "bad math long / long long settings"]]></title>
			<link>https://www.wolfssl.com/forums/post2217.html#p2217</link>
			<description><![CDATA[<p>Hi,</p><p>It sounds like XCode is detecting the sizeof(long long) as 0, which seems incorrect.</p><p>If you write a simple app that prints out the sizeof(long long), do you get 0 as well?</p><p>Best Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Mon, 21 Sep 2015 19:55:16 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2217.html#p2217</guid>
		</item>
		<item>
			<title><![CDATA[Re: Build error with last clang "bad math long / long long settings"]]></title>
			<link>https://www.wolfssl.com/forums/post2210.html#p2210</link>
			<description><![CDATA[<p>If I set ./configure ... CF_EXTRA_FLAGS=-DSIZEOF_LONG_LONG=8,<br />compiler generates warning: <br /><em>&quot;SIZEOF_LONG_LONG from command line is overridden in config.h: #define SIZEOF_LONG_LONG=0&quot;</em></p><p>If I set #define SIZEOF_LONG_LONG=8 in config.h, some script rewrite my config.h (config.h is autogenerated as I understood)</p><p><strong>How to build with configure and cyassl 2.7.0?</strong></p>]]></description>
			<author><![CDATA[null@example.com (FHDNS)]]></author>
			<pubDate>Fri, 18 Sep 2015 07:34:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2210.html#p2210</guid>
		</item>
		<item>
			<title><![CDATA[Re: Build error with last clang "bad math long / long long settings"]]></title>
			<link>https://www.wolfssl.com/forums/post2208.html#p2208</link>
			<description><![CDATA[<p>Hi FHDNS,</p><p>Since upgrading xcode have you run:&nbsp; xcode-select --install</p><p>Failing to do so often causes issues with mac command line linking and autoconf.</p><p>As a side note:<br />Unfortunately we over-write CFLAGS in our configure script. Instead use C_EXTRA_FLAGS=&quot;-DSOMETHING -DWHATEVER&quot; etc and LD_FLAGS=&quot; ...&quot; etc.</p><p>Regards,</p><p>Kaleb</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Thu, 17 Sep 2015 22:56:23 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2208.html#p2208</guid>
		</item>
		<item>
			<title><![CDATA[Build error with last clang "bad math long / long long settings"]]></title>
			<link>https://www.wolfssl.com/forums/post2205.html#p2205</link>
			<description><![CDATA[<p>I&#039;ve updated Xcode to Version 7.0 (7A220)</p><p>$clang --version<br />Apple LLVM version 7.0.0 (clang-700.0.72)<br />Target: x86_64-apple-darwin14.5.0<br />Thread model: posix</p><p>And now, I can&#039;t build cyassl:<br /></p><div class="codebox"><pre><code>In file included from ./cyassl/internal.h:27:
./cyassl/ctaocrypt/types.h:276:6: error: &quot;bad math long / long long settings&quot;
    #error &quot;bad math long / long long settings&quot;
     ^
./cyassl/ctaocrypt/types.h:278:1: error: use of empty enum
};
^
In file included from src/io.c:33:
In file included from ./cyassl/internal.h:27:
./cyassl/ctaocrypt/types.h:276:6: error: &quot;bad math long / long long settings&quot;
    #error &quot;bad math long / long long settings&quot;
     ^
./cyassl/ctaocrypt/types.h:278:1: error: use of empty enum
};
^
In file included from src/keys.c:29:
In file included from ./cyassl/internal.h:27:
./cyassl/ctaocrypt/types.h:276:6: error: &quot;bad math long / long long settings&quot;
    #error &quot;bad math long / long long settings&quot;
     ^
./cyassl/ctaocrypt/types.h:278:1: error: use of empty enum
};
^
clang: warning: argument unused during compilation: &#039;-pthreads&#039;
2 errors generated.
In file included from src/ssl.c:34:
In file included from ./cyassl/internal.h:27:
./cyassl/ctaocrypt/types.h:276:6: error: &quot;bad math long / long long settings&quot;
    #error &quot;bad math long / long long settings&quot;
     ^
./cyassl/ctaocrypt/types.h:278:1: error: use of empty enum
};
^
2 errors generated.
In file included from src/tls.c:29:
In file included from ./cyassl/internal.h:27:
./cyassl/ctaocrypt/types.h:276:6: error: &quot;bad math long / long long settings&quot;
    #error &quot;bad math long / long long settings&quot;
     ^
./cyassl/ctaocrypt/types.h:278:1: error: use of empty enum
};
^
make[1]: *** [src/src_libcyassl_la-keys.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [src/src_libcyassl_la-io.lo] Error 1
2 errors generated.
2 errors generated.
make[1]: *** [src/src_libcyassl_la-tls.lo] Error 1
make[1]: *** [src/src_libcyassl_la-internal.lo] Error 1
2 errors generated.
make[1]: *** [src/src_libcyassl_la-ssl.lo] Error 1
make: *** [install] Error 2</code></pre></div><p>command which I use:<br /></p><div class="codebox"><pre><code>./configure --enable-shared=no --prefix=$(dirname $(pwd)) CC=clang CFLAGS=-DSIZEOF_LONG_LONG=8 CXX=clang++ CXXFLAGS=&#039;-stdlib=libc++ -O3 -g&#039; LDFLAGS=&#039;-stdlib=libc++&#039;</code></pre></div><p>The same problem with last version wolfSSL from site.<br />I tried to use &quot;CFLAGS=-DSIZEOF_LONG_LONG=8&quot; for building cyassl, but it does not fix the problem</p>]]></description>
			<author><![CDATA[null@example.com (FHDNS)]]></author>
			<pubDate>Thu, 17 Sep 2015 14:14:30 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2205.html#p2205</guid>
		</item>
	</channel>
</rss>
