Problems Building the SDK

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Problems Building the SDK

Postby pgater » Sun Mar 10, 2013 1:53 pm

I am having problems building the SDK.

Set up is quad core AMD 'bulldozer' chip, 16GB ram, 1Tb hard disk. Operating system is Windows Vista 64 bit Ultimate, Using Cygwin terminal. The computer has been built by me and is not from a 'recognised manufacturer'.

I believe I have installed all the prerequisites using the Cygwin setup program, plus git. To get the installation to progress I also added the make utility otherwise the following error message is encountered :-

'./build-toolchain.sh: line 149: make: command not found'

However the installation process has repeatly failed on this line despite adding gdb and texinfo :-

'config.status: creating gdb.xml/Makefile'

I have either used the --force command or manually removed the created directories before attepting another build.(learned from that one the hard way!)

Can you give me some guidance please as it appears to fail without leaving an error message. I can email all the build logs for analysis as they would take up too much space in the post.

Thanks in advance.posting.php?mode=post&f=13#
User avatar
pgater
 
Posts: 43
Joined: Mon Dec 17, 2012 3:25 am
Location: Nantwich, Cheshire, UK

Re: Problems Building the SDK

Postby timpart » Sun Mar 10, 2013 6:26 pm

I've built the SDK on Cygwin on x86. However it took me a while. Most of the bits will compile just fine but at one point it does a fancy conversion of an XML chip configuration file into C. Check that you have flex, bison and the latest version of automake installed and give it another go (with --force).

Tim
timpart
 
Posts: 302
Joined: Mon Dec 17, 2012 3:25 am
Location: UK

Re: Problems Building the SDK

Postby pgater » Sun Mar 10, 2013 6:34 pm

Tim,

Thanks. Will try this now. Will let you know how I get on.

Paul
User avatar
pgater
 
Posts: 43
Joined: Mon Dec 17, 2012 3:25 am
Location: Nantwich, Cheshire, UK

Re: Problems Building the SDK

Postby pgater » Sun Mar 10, 2013 9:18 pm

Success!!!!!

I have a message saying the build is complete.

Thanks for your assistance Tim,

Could the instructions for Cygwin be amended to include git, make, flex and bison are added to the build prerequisites so that the process runs smoothly.

Paul
User avatar
pgater
 
Posts: 43
Joined: Mon Dec 17, 2012 3:25 am
Location: Nantwich, Cheshire, UK

Re: Problems Building the SDK

Postby simoncook » Mon Mar 11, 2013 4:56 pm

Useful SDK Links: - - -
User avatar
simoncook
 
Posts: 50
Joined: Mon Dec 17, 2012 3:25 am
Location: United Kingdom

Re: Problems Building the SDK

Postby pgater » Sun Jun 02, 2013 4:23 pm

I decided to reinstall the SDK after the update, with the intention of running eclipse. Unfortunately after numerous attempts it has not installed successfully. The final lines of the lod as follows :-

I/home/Paul/srcw/gdb/../libdecnumber -I/home/Paul/srcw/gdb/gnulib -Ignulib -DTUI=1 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Werror -c -o xml-support.o -MT xml-support.o -MMD -MP -MF .deps/xml-support.Tpo /home/Paul/srcw/gdb/xml-support.c
Makefile:5800: recipe for target `all-gcc' failed
make: *** [all-gcc] Hangup

In general this is the type of message I am seeing. I am reluctant to file a bug report at this point as it may be something I am doing wrong or do not have installed.

Is there a library that is missing, or something else? All the prerequisites are installed under Cygwin. If it helps I can email the logs from the last two attempts.

Thanks,

Paul
User avatar
pgater
 
Posts: 43
Joined: Mon Dec 17, 2012 3:25 am
Location: Nantwich, Cheshire, UK

Re: Problems Building the SDK

Postby Dr.BeauWebber » Sun Jun 02, 2013 4:50 pm

Hi Paul,
you may well have an actual problem, but I found on both my laptop and an old XP machine, it was worth re-running the build.
Assuming none of the sources have changed between builds, take a copy of the build script, and comment out the line that deletes all the work done to date, and the little subroutine that re-builds the sources.
Then run this version and see if you get the same error. Make will have less work to do this time.
cheers,
Beau
User avatar
Dr.BeauWebber
 
Posts: 114
Joined: Mon Dec 17, 2012 4:01 am
Location: England

Re: Problems Building the SDK

Postby pgater » Sun Jun 02, 2013 8:40 pm

Hi Dr. Webber,

I have tried this once in error as mentioned above and it failed, so wary of trying again. Also not sure I am up to hacking a script at present. Have just tried another attempt, but it has failed again. One of the problems is as you mention that it takes so long to run, about three hours per attempt. I will return to this in a couple of days as I have work to get out to customers, so run out of time for now. I will have a look at the script, but also file a bug report in a few days time.

By the way, very pleased that APL is being ported to Parallella. One of the objectives of backing the project was to give me an incentive to learn C. Had looked at APL, now there is a compiler will learn APL as I have a couple of engineering 'problems' I can see it used for rather than C.

Will report back in a few days.

Regards,

Paul
User avatar
pgater
 
Posts: 43
Joined: Mon Dec 17, 2012 3:25 am
Location: Nantwich, Cheshire, UK

Re: Problems Building the SDK

Postby Dr.BeauWebber » Sun Jun 02, 2013 9:57 pm

User avatar
Dr.BeauWebber
 
Posts: 114
Joined: Mon Dec 17, 2012 4:01 am
Location: England

Re: Problems Building the SDK

Postby pgater » Sat Jun 08, 2013 9:58 am

Hi Dr Webber,

Thank you for the script, it was most helpful. I found the best method for me was to copy your script into notepad and put that in a safe place. I then copied the original file to a another safe place. Edited the file in the sdk directory using mc(midnight commander), using the notepad version as a guide and saved.

Build success on the second attempt!!!!!!!!!!!!!!!

As an aside (and this is probably not the right forum). I have just read the latest Kickstarter update. As a backer I realise this is uncharted territory and that unforseen problems, glitches etc will crop up and the timeline will slip. I would rather have a product later than planned that works, than a product that is rushed out on time and does not work. In other words, the delay is not a problem. I am sure that the other backers will take a similar view.

To everyone involved, I take my hat off to you!! You are doing a fantastic job!! Keep up the good work and do not worry about the delay.

Regards,

Paul
User avatar
pgater
 
Posts: 43
Joined: Mon Dec 17, 2012 3:25 am
Location: Nantwich, Cheshire, UK


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 12 guests