Skip to content
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

Open
alexmlw opened this issue Apr 8, 2017 · 4 comments
Open

Epiphany-sdk on Freebsd #72

alexmlw opened this issue Apr 8, 2017 · 4 comments

Comments

@alexmlw
Copy link

alexmlw commented Apr 8, 2017

% ./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 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?

@olajep
Copy link
Contributor

olajep commented Apr 8, 2017 via email

@alexmlw
Copy link
Author

alexmlw commented Apr 9, 2017

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.

@olajep
Copy link
Contributor

olajep commented Apr 9, 2017 via email

@alexmlw
Copy link
Author

alexmlw commented Apr 9, 2017

Yes, a new issue

/home/alexmlw/Develop/buildroot/unisrc-2016.11/sim/epiphany/dv-epiphany_timer.c:107:3: error: unknown type name 'ulong'
ulong chainedul; /* silly work around for cast inside macro warning */
^
In file included from /home/alexmlw/Develop/buildroot/unisrc-2016.11/sim/epiphany/../common/hw-main.h:28:0,
from /home/alexmlw/Develop/buildroot/unisrc-2016.11/sim/epiphany/dv-epiphany_timer.c:29:
/home/alexmlw/Develop/buildroot/unisrc-2016.11/sim/epiphany/dv-epiphany_timer.c: In function 'epiphany_timer_hw_event_callback':
/home/alexmlw/Develop/buildroot/unisrc-2016.11/sim/epiphany/dv-epiphany_timer.c:213:19: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'int' [-Wformat=]
HW_TRACE ((me, "ctimer01=%#llx (chained)", regs->chainedul));
^
/home/alexmlw/Develop/buildroot/unisrc-2016.11/sim/epiphany/../common/hw-device.h:459:16: note: in definition of macro 'HW_TRACE'
hw_trace ARGS;
^
gmake[2]: *** [Makefile:554: dv-epiphany_timer.o] Error 1
gmake[2]: Leaving directory '/usr/home/alexmlw/Develop/buildroot/builds/bd-amd64-2016.11/sim/epiphany'
gmake[1]: *** [Makefile:129: all] Error 1
gmake[1]: Leaving directory '/usr/home/alexmlw/Develop/buildroot/builds/bd-amd64-2016.11/sim'
gmake: *** [Makefile:12427: all-sim] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants