<?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 — wolfCrypt with mwcceppc]]></title>
		<link>https://www.wolfssl.com/forums/topic2175-wolfcrypt-with-mwcceppc.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2175.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in wolfCrypt with mwcceppc.]]></description>
		<lastBuildDate>Tue, 01 Oct 2024 20:15:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7903.html#p7903</link>
			<description><![CDATA[<p>Is the compiler in the environment path? Can you invoke it from the command line right there?</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Tue, 01 Oct 2024 20:15:13 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7903.html#p7903</guid>
		</item>
		<item>
			<title><![CDATA[Re: wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7885.html#p7885</link>
			<description><![CDATA[<p>I tried to run the ./configure in MSYS2 MINGW64 with mwcceppc compiler, but it is not creating executables:</p><br /><p>$ ./configure \<br />&nbsp; --host=powerpc-eabi \<br />&nbsp; CC=mwcceppc.exe \<br />&nbsp; AR=mwldeppc.exe \<br />&nbsp; STRIP=mwldeppc.exe \<br />&nbsp; RANLIB=mwldeppc.exe \<br />&nbsp; --prefix=/path/to/install/wolfssl-powerpc \<br />&nbsp; --disable-shared \<br />&nbsp; --enable-static<br />configure: loading site script /etc/config.site<br />checking for powerpc-eabi-gcc... mwcceppc.exe<br />checking whether the C compiler works... no<br />configure: error: in `/c/Users/asn/Desktop/CryptCW/wolfssl-5.7.2&#039;:<br />configure: error: C compiler cannot create executables<br />See `config.log&#039; for more details</p><br /><p>As I am a beginner, I am not sure if I should be spending more time trying to make it work with mwcceppc (Freescale C/C++ Compiler for Embedded PowerPC). Am I close to make it work or should I stop trying ?</p>]]></description>
			<author><![CDATA[null@example.com (asn)]]></author>
			<pubDate>Tue, 24 Sep 2024 07:53:10 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7885.html#p7885</guid>
		</item>
		<item>
			<title><![CDATA[Re: wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7884.html#p7884</link>
			<description><![CDATA[<p>Thank you for the suggestion. These are the steps I followed:</p><p>1. Installed WSL in my Windows Machine. <br />2. Installed `sudo apt-get install gcc-powerpc-linux-gnu`<br />3. Downloaded wolfSSL from GitHub<br />4. Extracted and ran `./autogen.sh`<br />5. Then ran `./configure&nbsp; &nbsp;--host=powerpc-linux-gnu&nbsp; &nbsp;CC=powerpc-linux-gnu-gcc&nbsp; &nbsp;AR=powerpc-linux-gnu-ar&nbsp; &nbsp;STRIP=powerpc-linux-gnu-strip&nbsp; &nbsp;RANLIB=powerpc-linux-gnu-ranlib&nbsp; &nbsp;--prefix=/path/to/install/wolfssl-powerpc&nbsp; &nbsp;--disable-shared&nbsp; &nbsp;--enable-static`<br />6. Then I copied the library and include folder to my Windows Machine. <br />7. In my make file, I included this folder and library file.</p><p>I am adding these steps in case it helps someone in the future. For my case it did not work as the compiler I use is mwcceppc and the configuration I did was with GCC. </p><p>I will try to run with the ./configure command with mwcceppc compiler and update here if it works. In case there any other suggestions let me know.</p>]]></description>
			<author><![CDATA[null@example.com (asn)]]></author>
			<pubDate>Tue, 24 Sep 2024 07:42:31 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7884.html#p7884</guid>
		</item>
		<item>
			<title><![CDATA[Re: wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7877.html#p7877</link>
			<description><![CDATA[<p>Can you try using WSL to install the PPC compiler and build the wolfSSL lib there?</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Mon, 23 Sep 2024 15:50:27 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7877.html#p7877</guid>
		</item>
		<item>
			<title><![CDATA[Re: wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7876.html#p7876</link>
			<description><![CDATA[<p>I&#039;m not going to say its impossible, but certainly it will be more straightforward on Linux.</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Mon, 23 Sep 2024 15:49:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7876.html#p7876</guid>
		</item>
		<item>
			<title><![CDATA[Re: wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7875.html#p7875</link>
			<description><![CDATA[<p>Since I am using a Windows machine, I am unable to install the appropriate PowerPC cross-compiler (powerpc-linux-gnu-gcc) in Cygwin64 or MSYS2. Therefore, I assume that I will need to generate the library files on a Linux machine. I hope this assumption is correct.</p>]]></description>
			<author><![CDATA[null@example.com (asn)]]></author>
			<pubDate>Mon, 23 Sep 2024 15:42:25 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7875.html#p7875</guid>
		</item>
		<item>
			<title><![CDATA[Re: wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7873.html#p7873</link>
			<description><![CDATA[<p>When you set up the cross compilation in the configure step, the tools will have that macro available.<br /><a href="https://www.wolfssl.com/documentation/manuals/wolfssl/chapter02.html#building-with-configure-with-cross-compile">https://www.wolfssl.com/documentation/m … ss-compile</a></p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Mon, 23 Sep 2024 15:12:39 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7873.html#p7873</guid>
		</item>
		<item>
			<title><![CDATA[Re: wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7872.html#p7872</link>
			<description><![CDATA[<p>Thank you for your reply.</p><p>1. Noted. Will use user_settings.h for defining configurations. </p><p>2. How do I build the static library files for PPC? I am using MSYS2 MINGW64. And where do I define the environment variable `__ppc__` to be detected in order to build wolfCrypt for PPC architecture ?</p>]]></description>
			<author><![CDATA[null@example.com (asn)]]></author>
			<pubDate>Mon, 23 Sep 2024 14:54:00 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7872.html#p7872</guid>
		</item>
		<item>
			<title><![CDATA[Re: wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7871.html#p7871</link>
			<description><![CDATA[<p>Hi asn,</p><p>Welcome to the wolfSSL Forums.</p><p>You should not add configuration defines in the source files. This will always result in undefined behavior.</p><p>This is the preferred method for configuring the library:<br /><a href="https://www.wolfssl.com/using-user_settings-h-wolfssl/">https://www.wolfssl.com/using-user_settings-h-wolfssl/</a></p><p>Yes, you can build wolfSSL for PPC. The environment variable `__ppc__` will be detected to set up the correct settings for that architecture.</p><p>Let us know if there are questions.</p><p>Thanks,<br />Eric - wolfSSL Support</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Mon, 23 Sep 2024 13:18:12 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7871.html#p7871</guid>
		</item>
		<item>
			<title><![CDATA[wolfCrypt with mwcceppc]]></title>
			<link>https://www.wolfssl.com/forums/post7870.html#p7870</link>
			<description><![CDATA[<p>Hello, </p><p>I am using mwcceppc (Freescale C/C++ Compiler for Embedded PowerPC) in Eclipse IDE for Embedded C/C++ Developers to build a project with wolfCrypt for ST Microelectronics SPC560P Chip. I include the wolfCrypt libraries in the makefile and just add the line&nbsp; #include &lt;wolfssl/wolfcrypt/aes.h&gt;. </p><p>Upon building the project, I get the error:</p><p>..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828: undefined identifier &#039;DIR&#039;<br />..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828: (included from:<br />..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828:&nbsp; &nbsp; &nbsp; C:\Users\asn\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\types.h:35<br />..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828:&nbsp; &nbsp; &nbsp; C:\Users\asn\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\aes.h:41<br />..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828:&nbsp; &nbsp; &nbsp; C:\Users\asn\e_workspace\cryptoProject\application\scheduler\main.c:15)</p><br /><br /><p>The only change in the wolfCrypt code I have done is&nbsp; #define SINGLE_THREADED in the aes.h file. </p><br /><ul><li><p>Any suggestion how I can resolve this ?</p></li><li><p>I see that in settings.h file, there is no settings for PowerPC but I believe the wolfCrypt can be used with PowerPC after a little bit of changes. I would be happy if someone can confirm this ?</p></li></ul>]]></description>
			<author><![CDATA[null@example.com (asn)]]></author>
			<pubDate>Mon, 23 Sep 2024 09:19:41 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7870.html#p7870</guid>
		</item>
	</channel>
</rss>
