asm/socket.h: No such file or directory cross compiling Dart for Raspberry pi -


i'm cross-compiling dart runtime using instruction here.

i've installed dependencies specified. i've cloned git repository necessary tool chain.

i'm running runtime compilation command:

./tools/build.py -m release -a arm --toolchain=../tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf runtime 

the compilation starts no problem stops error:

  link(target) out/releasexarm/libdart_dependency_helper.target   cxx(host) out/releasexarm/obj.host/libdart_lib_withcore/runtime/vm/bootstrap.o in file included /usr/include/sys/socket.h:38:0,                  /usr/include/netinet/in.h:23,                  /usr/include/arpa/inet.h:22,                  runtime/platform/globals.h:56,                  runtime/platform/assert.h:16,                  runtime/vm/allocation.h:8,                  runtime/vm/bootstrap.h:9,                  runtime/vm/bootstrap.cc:5: /usr/include/bits/socket.h:345:24: fatal error: asm/socket.h: no such file or directory  #include <asm/socket.h>                         ^ compilation terminated.   cxx(host) out/releasexarm/obj.host/libdart_lib_withcore/gen/async_gen.o in file included /usr/include/sys/socket.h:38:0,                  /usr/include/netinet/in.h:23,                  /usr/include/arpa/inet.h:22,                  runtime/platform/globals.h:56,                  runtime/platform/assert.h:16,                  runtime/vm/allocation.h:8,                  runtime/vm/bootstrap.h:9,                  out/releasexarm/obj/gen/async_gen.cc:5: /usr/include/bits/socket.h:345:24: fatal error: asm/socket.h: no such file or directory  #include <asm/socket.h>                         ^ compilation terminated. runtime/libdart_lib_withcore.host.mk:978: recipe target 'out/releasexarm/obj.host/libdart_lib_withcore/runtime/vm/bootstrap.o' failed make: *** [out/releasexarm/obj.host/libdart_lib_withcore/runtime/vm/bootstrap.o] error 1 make: *** waiting unfinished jobs.... runtime/libdart_lib_withcore.host.mk:986: recipe target 'out/releasexarm/obj.host/libdart_lib_withcore/gen/async_gen.o' failed make: *** [out/releasexarm/obj.host/libdart_lib_withcore/gen/async_gen.o] error 1 build failed 

am missing dependency or package?

i hit same problem. on ubuntu 14.04 system /usr/include/asm didn't exist. called asm-generic instead. sym-linked , build able continue.

cd /usr/include sudo ln -s asm-generic/ asm 

the build able continue after that.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -