Building Epiphany SDK e-server

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Building Epiphany SDK e-server

Postby alexB » Sun May 12, 2013 7:57 am

Hi

I've successfully built the gcc, sourceware components and am attempting to build the SDK from git. It looks like e-xml, e-server and e-lib are commented out in epiphany-libs/build-libs.sh which means that build-sdk.sh gives the following output:
cp: cannot stat ‘Release/e-server’: No such file or directory

I uncommented e-server and this fails to build from source - I won't list all the errors, but here is the diff that I found to fix it (the forum won't allow .diff attachments):

diff --git a/build-libs.sh b/build-libs.sh
index c333f4f..a80889e 100755
--- a/build-libs.sh
+++ b/build-libs.sh
@@ -17,8 +17,8 @@ echo '==============================='
echo '============ E-XML ============'
echo '==============================='
cd src/e-xml/Release
-#make clean
-#make all
+make clean
+make all
cd ../../../

# Build and install the Epiphnay Loader library
@@ -45,8 +45,8 @@ echo '=================================='
echo '============ E-SERVER ============'
echo '=================================='
cd src/e-server/Release
-#make clean
-#make all
+make clean
+make all
cd ../../../

# Install the Epiphnay GNU Tools wrappers
@@ -61,7 +61,7 @@ echo '==============================='
echo '============ E-LIB ============'
echo '==============================='
cd src/e-lib/Release
-#make clean
-#make all
+make clean
+make all
cd ../../../

diff --git a/src/e-server/src/GdbServerSC.cpp b/src/e-server/src/GdbServerSC.cpp
index 637cb20..b42eb5e 100644
--- a/src/e-server/src/GdbServerSC.cpp
+++ b/src/e-server/src/GdbServerSC.cpp
@@ -52,6 +52,7 @@

#include <iostream>
#include <iomanip>
+#include <unistd.h>

#include "GdbServerSC.h"

diff --git a/src/e-server/src/RspConnection.cpp b/src/e-server/src/RspConnection.cpp
index 22b7a69..0cb1a03 100644
--- a/src/e-server/src/RspConnection.cpp
+++ b/src/e-server/src/RspConnection.cpp
@@ -81,6 +81,7 @@
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <poll.h>
+#include <unistd.h>

#include <assert.h>

diff --git a/src/e-server/src/main.cpp b/src/e-server/src/main.cpp
index 1b15d82..e6df1b7 100644
--- a/src/e-server/src/main.cpp
+++ b/src/e-server/src/main.cpp
@@ -29,6 +29,7 @@ static char const * revision= "$Rev: 1362 $";
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
+#include <unistd.h>

#include <string.h>
alexB
 
Posts: 13
Joined: Mon Dec 17, 2012 3:25 am

Re: Building Epiphany SDK e-server

Postby ysapir » Sun May 12, 2013 12:56 pm

This is weird, I am pretty sure that I removed the comments from the build script, but apparently, they're back in.

The e-server should build w/o a problem (just checked it on my machine). Please let me know what errors you encounter while building it.
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: Building Epiphany SDK e-server

Postby alexB » Sat May 25, 2013 11:05 am

Hi
Thanks for updating the build script looks ok.
My system includes must be a bit different. I still need the extra #includes (I'm building on Ubuntu 13.04). I think that unistd.h is the correct header for these system calls (don't have Stevens to hand but man pages seem to agree).
alexB
 
Posts: 13
Joined: Mon Dec 17, 2012 3:25 am


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 12 guests