install_sdk.sh on ubuntu 15.04 #162

Open
Guria opened this Issue Sep 24, 2015 · 7 comments

Projects

None yet

4 participants

@Guria
Guria commented Sep 24, 2015

gcc 5.2.1 20150922

In file included from ../ncurses/curses.priv.h:283:0,
                 from ../ncurses/lib_gen.c:19:
_24265.c:835:15: error: expected ‘)’ before ‘int’
../include/curses.h:1594:56: note: in definition of macro ‘mouse_trafo’
 #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
                                                        ^
Makefile:785: recipe for target '../objects/lib_gen.o' failed
make[1]: *** [../objects/lib_gen.o] Error 1

See cloudius-systems/osv#634 for similar stack trace

@Guria
Guria commented Sep 24, 2015

Using gcc 4.9 resolves an issue

sudo apt-get install gcc-4.9 gcc-4.9-base
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10
@kyle-github

I get the same error with Ubuntu 15.10.

Checking gcc:

cloud9@homesrv:~/c9sdk$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.2.1-22ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) 

So, it looks like I have 5.2.1.

Doing the above workaround seems to get past the compilation problems. Then I had to install the package nodejs-legacy otherwise the call to node in the install script fails.

@Moez1010

i get the same error me too Kyle in ubuntu 15.10

can you help me

@nightwing
Member

try installing tmux from apt-get before running the install_sdk.sh

@Moez1010

i am traying to build Img for my beagle bone and i am using Hob interfaces, there where i found this problem
can you help me

@nightwing
Member

Not sure what Hob interfaces means.
Did you try sudo apt-get install tmux?

@Moez1010

Hob is a graphical application which build a Embedded linux distribution.

i am following this tuto :
http://yocto-bbb.blogspot.com/2014/08/deploying-yocto-on-beaglebone-black.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment