Downloading/Building the SDK and Reporting Issues

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Downloading/Building the SDK and Reporting Issues

Postby simoncook » Tue Feb 19, 2013 10:42 am

This post acts as a reference to useful information relating to the building and use of the SDK and how to report bugs. I also intend to extend this post as a mini-FAQ of the most common issues encountered. Please let me know if you think something should be added to this post.

Building the SDK


Reporting Bugs

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

Self hosting toolchain?

Postby madtom1999 » Tue Jul 30, 2013 12:08 pm

Just wondering if anyone has built the toolchain so it runs on the card?
madtom1999
 
Posts: 16
Joined: Mon Dec 17, 2012 3:25 am

Re: Self hosting toolchain?

Postby simoncook » Tue Jul 30, 2013 12:19 pm

madtom1999 wrote:Just wondering if anyone has built the toolchain so it runs on the card?


This depends what you mean by the card. If you mean the ARM cores along side the Epiphany cores then yes, this has been done (and the binaries are available on ftp://ftp.parallella.org). If you mean on the Epiphany cores themselves, there is no OS to support the tools so this is not possible.
User avatar
simoncook
 
Posts: 50
Joined: Mon Dec 17, 2012 3:25 am
Location: United Kingdom

Re: Self hosting toolchain?

Postby ysapir » Tue Jul 30, 2013 2:23 pm

madtom1999 wrote:Just wondering if anyone has built the toolchain so it runs on the card?


Done on:

1. Parallella Prototype 64
2. Parallella 16
3. PC
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: Downloading/Building the SDK and Reporting Issues

Postby madtom1999 » Tue Jul 30, 2013 3:03 pm

Thanks.
madtom1999
 
Posts: 16
Joined: Mon Dec 17, 2012 3:25 am

Re: Downloading/Building the SDK and Reporting Issues

Postby Gravis » Sun Aug 25, 2013 11:29 am

@simoncook
you should update the github links since everything got merged to adapteva. i'm betting there are a few other places (and files) that have this same issue too. grep and LIKE for all! :)
User avatar
Gravis
 
Posts: 445
Joined: Mon Dec 17, 2012 3:27 am
Location: East coast USA.

Re: Downloading/Building the SDK and Reporting Issues

Postby AndrewStone » Tue Jul 15, 2014 2:49 pm

Small doc/code inconsistency... not sure what to do.

In download_toolchain.sh, downloading the SDK and epiphany libs is commented out:

# BSC - we no longer checkout the SDK or LIBS here
#download_tool sdk adapteva epiphany-sdk master
#download_tool epiphany-libs adapteva epiphany-libs master


so the instructions at https://github.com/adapteva/epiphany-sd ... ng-the-SDK don't work.

Building the toolchain

In most cases building the toolchain is a case of running the build-toolchain.sh script from the ${EPIPHANY_HOME}/sdk/ directory and waiting for it to complete. T
AndrewStone
 
Posts: 4
Joined: Mon Jun 30, 2014 7:39 pm

Re: Downloading/Building the SDK and Reporting Issues

Postby jeremybennett » Tue Jul 15, 2014 4:00 pm

Hi Andrew,

Thanks for spotting this. Would you raise an issue on the SDK github repository, so we can track it getting fixed.

Best wishes,


Jeremy
User avatar
jeremybennett
 
Posts: 61
Joined: Mon Dec 17, 2012 9:06 am

Re: Downloading/Building the SDK and Reporting Issues

Postby Gravis » Tue Dec 09, 2014 11:46 pm

error building the new SDK. it gets to building the multicore simulator and then a warning happens but since warnings are treated as errors, it cries and aborts.

everything seems to go fine until the very end...
Code: Select all
gravis@base:~/parallellaSDK/buildroot$ git clone --branch 2014.11 https://github.com/adapteva/epiphany-sdk.git sdk
Cloning into 'sdk'...
remote: Counting objects: 826, done.
remote: Total 826 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (826/826), 10.67 MiB | 3.53 MiB/s, done.
Resolving deltas: 100% (419/419), done.
Checking connectivity... done.
gravis@base:~/parallellaSDK/buildroot$ ls
sdk
gravis@base:~/parallellaSDK/buildroot$ cd sdk/
gravis@base:~/parallellaSDK/buildroot/sdk$ ls
build-epiphany-sdk.sh  ChangeLog  define-release.sh      get-versions.sh  jenkins_epiphany  rel-rpaths.sh   setup.csh  symlink-all.sh
build-toolchain.sh     COPYING    download-toolchain.sh  install-sdk.sh   README            sdk-components  setup.sh   toolchain-components
gravis@base:~/parallellaSDK/buildroot/sdk$ cd ..
gravis@base:~/parallellaSDK/buildroot$ ./sdk/build-epiphany-sdk.sh -C -R -a x86_64
********************************************
************ Epiphany SDK Build ************
********************************************

Environment settings:

    EPIPHANY_BUILD_HOME=/home/gravis/parallellaSDK/buildroot
    EPIPHANY_HOME=/home/gravis/parallellaSDK/buildroot/esdk.2014.11
    ESDK=/home/gravis/parallellaSDK/buildroot/esdk.2014.11

Build settings:

    Target architecture:          x86_64
    Build version:                2014.11
    Build from branch or tag:     esdk-2014.11

Creating the eSDK directory tree...
Logging to /home/gravis/parallellaSDK/buildroot/logs/2014.11/clone-2014-12-09-2250.log
Cloning gcc...
Cloning binutils...
Cloning gdb...
Cloning newlib...
Cloning cgen...
Cloning gdb-multicore-sim...
Downloading gmp...
Downloading mpfr...
Downloading mpc...
Downloading isl...
Downloading cloog...
Downloading ncurses...
Download complete
Logging to /home/gravis/parallellaSDK/buildroot/logs/2014.11/build-2014-12-09-2303.log
START BUILD: Tue Dec 9 18:03:46 EST 2014
Fetching gcc
Checking out epiphany-gcc-esdk-2014.11
Fetching binutils
Checking out epiphany-binutils-esdk-2014.11
Fetching gdb
Checking out epiphany-gdb-esdk-2014.11
Fetching newlib
Checking out epiphany-newlib-esdk-2014.11
Fetching cgen
Checking out epiphany-cgen-esdk-2014.11
Fetching gdb-multicore-sim
Checking out epiphany-gdb-multicore-sim-esdk-2014.11
Creating unified source tree...
Adding component gcc-infrastructure to unified source
Adding component newlib to unified source
Adding component gdb to unified source
Adding component cgen to unified source
Adding component binutils to unified source
Adding component gcc to unified source
Configuring tool chain...
Building tool chain...
Installing tool chain...
Building Epiphany multicore simulator...
Error: Epiphany multicore simulator build failed.
Build failed. See /home/gravis/parallellaSDK/buildroot/logs/2014.11/build-2014-12-09-2303.log for details.
The toolchain build failed!

Aborting...


inside /home/gravis/parallellaSDK/buildroot/logs/2014.11/build-2014-12-09-2303.log there is...

Code: Select all
In file included from /home/gravis/parallellaSDK/buildroot/gdb-multicore-sim/bfd/opncls.c:26:0:
/home/gravis/parallellaSDK/buildroot/gdb-multicore-sim/bfd/opncls.c: In function ‘bfd_fopen’:
./bfd.h:529:65: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
 #define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
                                                                 ^
/home/gravis/parallellaSDK/buildroot/gdb-multicore-sim/bfd/opncls.c:263:5: note: in expansion of macro ‘bfd_set_cacheable’
     bfd_set_cacheable (nbfd, TRUE);
     ^
User avatar
Gravis
 
Posts: 445
Joined: Mon Dec 17, 2012 3:27 am
Location: East coast USA.

Re: Downloading/Building the SDK and Reporting Issues

Postby louloizides » Thu Apr 02, 2015 2:58 am

Any updates on building the Mac SDK? I can't seem to get arm-none-linux-gnueabi-gcc installed and according to the wiki it's a requirement (correct me if I'm wrong).

Last login: Fri Mar 27 21:55:35 on ttys001
MacBook-Pro:~ louloizides$ sudo port install arm-none-linux-gnueabi-gcc
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
Waiting for lock on /opt/local/var/macports/registry/.registry.lock
Portfile changed since last build; discarding previous state.
---> Fetching archive for arm-none-linux-gnueabi-binutils
---> Attempting to fetch arm-none-linux-gnueabi-binutils-2005q3-2_0.darwin_14.x86_64.tbz2 from http://packages.macports.org/arm-none-l ... i-binutils
---> Attempting to fetch arm-none-linux-gnueabi-binutils-2005q3-2_0.darwin_14.x86_64.tbz2.rmd160 from http://packages.macports.org/arm-none-l ... i-binutils
---> Computing dependencies for arm-none-linux-gnueabi-binutils
---> Deactivating arm-none-linux-gnueabi-binutils @2005q3-2_0
---> Cleaning arm-none-linux-gnueabi-binutils
---> Uninstalling arm-none-linux-gnueabi-binutils @2005q3-2_0
---> Cleaning arm-none-linux-gnueabi-binutils
---> Installing arm-none-linux-gnueabi-binutils @2005q3-2_0
---> Activating arm-none-linux-gnueabi-binutils @2005q3-2_0
---> Cleaning arm-none-linux-gnueabi-binutils
---> Computing dependencies for arm-none-linux-gnueabi-gcc
---> Dependencies to be installed: arm-none-linux-gnueabi-runtime
---> Extracting arm-none-linux-gnueabi-runtime
---> Configuring arm-none-linux-gnueabi-runtime
---> Building arm-none-linux-gnueabi-runtime
---> Staging arm-none-linux-gnueabi-runtime into destroot
Warning: arm-none-linux-gnueabi-runtime installs files outside the common directory structure.
---> Installing arm-none-linux-gnueabi-runtime @cs2005q3.2_0
---> Activating arm-none-linux-gnueabi-runtime @cs2005q3.2_0
---> Cleaning arm-none-linux-gnueabi-runtime
---> Fetching archive for arm-none-linux-gnueabi-gcc
---> Attempting to fetch arm-none-linux-gnueabi-gcc-2005q3-2_0.darwin_14.x86_64.tbz2 from http://packages.macports.org/arm-none-linux-gnueabi-gcc
---> Attempting to fetch arm-none-linux-gnueabi-gcc-2005q3-2_0.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit ... nueabi-gcc
---> Attempting to fetch arm-none-linux-gnueabi-gcc-2005q3-2_0.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/arm ... nueabi-gcc
---> Fetching distfiles for arm-none-linux-gnueabi-gcc
---> Attempting to fetch gcc-2005q3-2.tar.bz2 from http://ykf.ca.distfiles.macports.org/Ma ... tfiles/gcc
---> Attempting to fetch gcc-2005q3-2.tar.bz2 from http://svn.macports.org/repository/macp ... les/pguyot
---> Verifying checksums for arm-none-linux-gnueabi-gcc
---> Extracting arm-none-linux-gnueabi-gcc
---> Applying patches to arm-none-linux-gnueabi-gcc
---> Configuring arm-none-linux-gnueabi-gcc
---> Building arm-none-linux-gnueabi-gcc
Error: org.macports.build for port arm-none-linux-gnueabi-gcc returned: command execution failed
louloizides
 
Posts: 26
Joined: Fri Mar 20, 2015 11:53 am

Next

Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 4 guests

cron