-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Epiphany-sdk on Freebsd #72
Comments
There's a bug in gdb/epiphany/configure
It assumes the shell supports += assignment.
This will only affect a handful of users but it should be fixed
What distribution / version are you using?
Where does /bin/sh point to?
% ls -l /bin/sh
Does this give any useful output?
% /bin/sh --version
What is the SHELL environment variable set to?
% echo $SHELL
Potential workaround:
Use bash
% export SHELL=/bin/bash
or
% setenv SHELL /bin/bash
% ./build-epiphany-sdk.sh -C -c amd64
For future bug reports, please set the language to English:
% export LC_ALL="C"
or with tcsh:
% setenv LC_ALL "C"
Thanks,
Ola
…On 2017-04-08 11:36, alexmlw wrote:
% ./build-epiphany-sdk.sh -C -c amd64
--------------------------------------------------------------------------------
************ Epiphany SDK Build ************
--------------------------------------------------------------------------------
Environment settings:
|ESDK_BUILDROOT=/home/alexmlw/Develop/parallella
ESDK_DESTDIR=/home/alexmlw/Develop/parallella/esdk.2016.11/
|
Build settings:
|eSDK install directory: /home/alexmlw/Develop/parallella/esdk.2016.11/
eSDK prefix directory: /opt/adapteva/esdk.2016.11
Tool chain host prefix: amd64
epiphany-libs host prefix: arm-linux-gnueabihf
Build version: 2016.11
Build from branch or tag: 2016.11
|
Creating the eSDK directory tree...
Logging to
/home/alexmlw/Develop/parallella/logs/2016.11/clone-2017-04-08-0557.log
Cloning gcc...
Cloning binutils...
Cloning gdb...
Cloning newlib...
Cloning cgen...
Downloading gmp...
Downloading mpfr...
Downloading mpc...
Downloading isl...
Downloading ncurses...
Downloading expat...
Cloning epiphany-libs...
Cloning pal...
Download complete
Logging to
/home/alexmlw/Develop/parallella/logs/2016.11/build-2017-04-08-0708.log
START BUILD: суббота, 8 апреля 2017 г. 11:08:15 (+04)
Fetching gcc
Checking out epiphany-gcc-5
Pulling latest version of epiphany-gcc-5
Fetching binutils
Checking out epiphany-binutils-2.27
Pulling latest version of epiphany-binutils-2.27
Fetching gdb
Checking out epiphany-gdb-7.12
Pulling latest version of epiphany-gdb-7.12
Fetching newlib
Checking out epiphany-newlib-2.2.0
Pulling latest version of epiphany-newlib-2.2.0
Fetching cgen
Checking out epiphany-cgen-1.1
Pulling latest version of epiphany-cgen-1.1
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 binutils to unified source
Adding component cgen to unified source
Adding component gcc to unified source
Applying patch:
/home/alexmlw/Develop/parallella/epiphany-sdk/patches/ncurses-6.0-gcc-5.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
|--- a/ncurses/ncurses/base/MKlib_gen.sh 2011-06-04 21:14:08.000000000 +0200
|+++ b/ncurses/ncurses/base/MKlib_gen.sh 2014-12-06 19:56:25.000000000 +0100
Patching file ncurses/ncurses/base/MKlib_gen.sh using Plan A...
Hunk #1 <#1> succeeded at 491.
done
Configuring tool chain...
Building tool chain...
ERROR: Tool chain build for host machine failed.
Build failed. See
/home/alexmlw/Develop/parallella/logs/2016.11/build-2017-04-08-0708.log for
details.
The toolchain build failed!
Aborting...
Log-file
https://raw.githubusercontent.com/alexmlw/epiphany-sdk/2016.11/build-2017-04-08-0708.log
Tell me how i can do correct mistakes?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#72>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAwd2H7S6VpLmhQgpEVRoAcboxF5q3Aqks5rt1UXgaJpZM4M3puG>.
|
FreeBSD current % ls -l /bin/sh % echo $SHELL |
Please try again.
The following commit should get you past this error:
adapteva/epiphany-binutils-gdb@fddcc68
I never tested building the SDK on FreeBSD, there might be more issues...
The build scripts pulls down the changes automatically if you're using default
settings.
The build-epiphany-sdk.sh script should be called from the buildroot and the
repo must be cloned to the sdk subdirectory.
Example:
mkdir buildroot
cd buildroot
git clone https://github.com/adapteva/epiphany-sdk.git sdk
./sdk/build-epiphany-sdk.sh -C -c amd64
// ola
…On 2017-04-09 09:30, alexmlw wrote:
FreeBSD current
% ls -l /bin/sh
-r-xr-xr-x 1 root wheel 161656 Apr 2 01:06 /bin/sh
% echo $SHELL
/bin/csh
% setenv SHELL /usr/local/bin/bash
% echo $SHELL
/usr/local/bin/bash
% ./build-epiphany-sdk.sh -C -c amd64
...
Mistake is not altered.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAwd2EdLOFhWofAsQ3JVF7-9BXEuBtC_ks5ruIkUgaJpZM4M3puG>.
|
Yes, a new issue /home/alexmlw/Develop/buildroot/unisrc-2016.11/sim/epiphany/dv-epiphany_timer.c:107:3: error: unknown type name 'ulong' |
% ./build-epiphany-sdk.sh -C -c amd64
************ Epiphany SDK Build ************
Environment settings:
Build settings:
Creating the eSDK directory tree...
Logging to /home/alexmlw/Develop/parallella/logs/2016.11/clone-2017-04-08-0557.log
Cloning gcc...
Cloning binutils...
Cloning gdb...
Cloning newlib...
Cloning cgen...
Downloading gmp...
Downloading mpfr...
Downloading mpc...
Downloading isl...
Downloading ncurses...
Downloading expat...
Cloning epiphany-libs...
Cloning pal...
Download complete
Logging to /home/alexmlw/Develop/parallella/logs/2016.11/build-2017-04-08-0708.log
START BUILD: суббота, 8 апреля 2017 г. 11:08:15 (+04)
Fetching gcc
Checking out epiphany-gcc-5
Pulling latest version of epiphany-gcc-5
Fetching binutils
Checking out epiphany-binutils-2.27
Pulling latest version of epiphany-binutils-2.27
Fetching gdb
Checking out epiphany-gdb-7.12
Pulling latest version of epiphany-gdb-7.12
Fetching newlib
Checking out epiphany-newlib-2.2.0
Pulling latest version of epiphany-newlib-2.2.0
Fetching cgen
Checking out epiphany-cgen-1.1
Pulling latest version of epiphany-cgen-1.1
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 binutils to unified source
Adding component cgen to unified source
Adding component gcc to unified source
Applying patch: /home/alexmlw/Develop/parallella/epiphany-sdk/patches/ncurses-6.0-gcc-5.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
|--- a/ncurses/ncurses/base/MKlib_gen.sh 2011-06-04 21:14:08.000000000 +0200
|+++ b/ncurses/ncurses/base/MKlib_gen.sh 2014-12-06 19:56:25.000000000 +0100
Patching file ncurses/ncurses/base/MKlib_gen.sh using Plan A...
Hunk #1 succeeded at 491.
done
Configuring tool chain...
Building tool chain...
ERROR: Tool chain build for host machine failed.
Build failed. See /home/alexmlw/Develop/parallella/logs/2016.11/build-2017-04-08-0708.log for details.
The toolchain build failed!
Aborting...
Log-file https://raw.githubusercontent.com/alexmlw/epiphany-sdk/2016.11/build-2017-04-08-0708.log
Tell me how i can do correct mistakes?
The text was updated successfully, but these errors were encountered: