Не удалось решить " /usr/include/linux/errno.h:1:23: фатальная ошибка: asm/errno.h: нет такого файла или каталога"
Я пытался make
gcc4.6.2 для сборки системы Android 2.3.7. Я установил linux-libc-dev
с другой версией (3.8.0
& 4.4.0
) и другая архитектура (linux-libc-dev
& linux-libc-dev:i386
) но все же столкнулись со следующими ошибками:
Я не знаю, как исправить создание gcc4.6.2 после просмотра всех видов обсуждения этой проблемы на веб-сайте. Кто-нибудь может дать мне одну руку, чтобы показать мне, как это исправить?
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from ../../../gcc-4.6.2/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make[3]: *** [_muldi3.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from ../../../gcc-4.6.2/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make[3]: *** [_negdi2.o] Error 1
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from ../../../gcc-4.6.2/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directoryIn file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from ../../../gcc-4.6.2/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make[3]: *** [_ucmpdi2.o] Error 1
compilation terminated.
make[3]: *** [_lshrdi3.o] Error 1
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from ../../../gcc-4.6.2/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directoryIn file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from ../../../gcc-4.6.2/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from ../../../gcc-4.6.2/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directorymake[3]: *** [_ashldi3.o] Error 1
compilation terminated.
make[3]: *** [_cmpdi2.o] Error 1
compilation terminated.
make[3]: *** [_ashrdi3.o] Error 1
make[5]: Entering directory `/home/paultsai/gcc/x86_64-linux-gnu/32/libgcc'
# If this is the top-level multilib, build all the other
1 ответ
В моей системе Ubuntu 14.05.5 (YMMV), /usr/include/asm/errno.h
предоставляется следующими пакетами:
linux-headers-*
linux-libc-dev:amd64
linux-libc-dev:i386