Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
asm/socket.h:Raspberry pi没有这样的文件或目录交叉编译Dart_Dart_Raspberry Pi_Cross Compiling_Raspbian - Fatal编程技术网

asm/socket.h:Raspberry pi没有这样的文件或目录交叉编译Dart

asm/socket.h:Raspberry pi没有这样的文件或目录交叉编译Dart,dart,raspberry-pi,cross-compiling,raspbian,Dart,Raspberry Pi,Cross Compiling,Raspbian,我正在使用该指令交叉编译Dart运行时 我已经安装了指定的所有依赖项。我还用必要的工具链克隆了git存储库 我正在使用以下命令运行运行时编译: ./tools/build.py -m release -a arm --toolchain=../tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf runtime 编译开始时没有问题,然后停止时出现以下错误: LINK(tar

我正在使用该指令交叉编译Dart运行时

我已经安装了指定的所有依赖项。我还用必要的工具链克隆了git存储库

我正在使用以下命令运行运行时编译:

./tools/build.py -m release -a arm --toolchain=../tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf runtime
编译开始时没有问题,然后停止时出现以下错误:

  LINK(target) out/ReleaseXARM/libdart_dependency_helper.target
  CXX(host) out/ReleaseXARM/obj.host/libdart_lib_withcore/runtime/vm/bootstrap.o
In file included from /usr/include/sys/socket.h:38:0,
                 from /usr/include/netinet/in.h:23,
                 from /usr/include/arpa/inet.h:22,
                 from runtime/platform/globals.h:56,
                 from runtime/platform/assert.h:16,
                 from runtime/vm/allocation.h:8,
                 from runtime/vm/bootstrap.h:9,
                 from 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 from /usr/include/sys/socket.h:38:0,
                 from /usr/include/netinet/in.h:23,
                 from /usr/include/arpa/inet.h:22,
                 from runtime/platform/globals.h:56,
                 from runtime/platform/assert.h:16,
                 from runtime/vm/allocation.h:8,
                 from runtime/vm/bootstrap.h:9,
                 from 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 for 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 for unfinished jobs....
runtime/libdart_lib_withcore.host.mk:986: recipe for 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
LINK(target)out/ReleaseXARM/libdart\u dependency\u helper.target
CXX(主机)out/ReleaseXARM/obj.host/libdart_lib_with core/runtime/vm/bootstrap.o
在/usr/include/sys/socket.h:38:0中包含的文件中,
from/usr/include/netinet/in.h:23,
from/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:致命错误:asm/socket.h:没有这样的文件或目录
#包括
^
编译终止。
CXX(主机)out/ReleaseXARM/obj.host/libdart\u lib\u with core/gen/async\u gen.o
在/usr/include/sys/socket.h:38:0中包含的文件中,
from/usr/include/netinet/in.h:23,
from/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\u gen.cc:5:
/usr/include/bits/socket.h:345:24:致命错误:asm/socket.h:没有这样的文件或目录
#包括
^
编译终止。
runtime/libdart_lib_withcore.host.mk:978:目标'out/ReleaseXARM/obj.host/libdart_lib_withcore/runtime/vm/bootstrap.o'的配方失败
make:**[out/ReleaseXARM/obj.host/libdart\u lib\u with core/runtime/vm/bootstrap.o]错误1
制作:**等待未完成的工作。。。。
runtime/libdart_lib_withcore.host.mk:986:目标'out/ReleaseXARM/obj.host/libdart_lib_withcore/gen/async_gen.o'的配方失败
make:**[out/ReleaseXARM/obj.host/libdart\u lib\u with core/gen/async\u gen.o]错误1
构建失败

我是否缺少任何依赖项或包?

我遇到了相同的问题。在我的ubuntu 14.04系统上/usr/include/asm不存在。它被称为asm通用。我连接了它,构建得以继续

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

在那之后,构建能够继续。

我不确定为什么会发生这种情况,但有时会删除
/usr/include/asm
。我的队友在查看他们的Ubuntu x86-64工作站时发现asm符号链接是:

0 lrwxrwxrwx 1 root root 20 May 22  2013 /usr/include/asm -> x86_64-linux-gnu/asm
重新创建它的命令是:

$ cd /usr/include
$ sudo ln -s x86_64-linux-gnu/asm asm

/usr/include/asm generic
中的文件有时(但并非总是)等同于x86-64特定目录中的文件;因此,很难推荐将其符号化作为解决方法。

这可能是因为您试图在未正确设置某些包含路径的情况下构建应用程序,例如在64位平台上使用32位gcc。 解决:

sudo apt get安装gcc多库


你试过这个吗?对但apt将尝试删除其他软件包:以下软件包将被删除:g++-4.9-arm-linux-gnueabihf g++-4.9-multilib-arm-linux-gnueabihf g++-arm-linux-gnueabihf gcc-4.9-arm-linux-gnueabihf gcc-4.9-multilib-arm-linux-gnueabihf gcc-arm-linux-gnueabihf-gnueabihf-gobjc-4.9-arm-linux-gnueabihfgobjc-4.9-arm-linux-gnueabihf gobjc-4.9-multilib-arm-linux-gnueabihf我想知道使用gcc 4.9而不是前面提到的4.6是否是一个问题。也许在这两者之间情况有所改变?您也可以尝试在dart:misc邮件列表中询问。依赖项已通过建议的脚本安装。我将尝试降级到4.6,并在邮件列表中询问。谢谢。正确。在我的ubuntu版本中,gcc multilib将与gcc arm linux gnueabi冲突。