fatal error: asm/errno.h: No such file or directory during bootstrap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, during bootstrap of trunk, I am getting
the error from $subject:

$ ../../gcc.gnu.org/bootstrap-trunk/configure
$ make

...

make[5]: Entering directory '/srv/local/gnu/build/gcc-boot/x86_64-pc-linux-gnu/32/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/home/gnu/build/gcc-boot/./gcc/xgcc -B/home/gnu/build/gcc-boot/./gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fpic -mlong-double-80 -DUSE_ELF_SYMVER -I. -I. -I../../.././gcc -I../../../../../gcc.gnu.org/bootstrap-trunk/libgcc -I../../../../../gcc.gnu.org/bootstrap-trunk/libgcc/. -I../../../../../gcc.gnu.org/bootstrap-trunk/libgcc/../gcc -I../../../../../gcc.gnu.org/bootstrap-trunk/libgcc/../include -I../../../../../gcc.gnu.org/bootstrap-trunk/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../../../gcc.gnu.org/bootstrap-trunk/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/bits/errno.h:24,
                 from /usr/include/errno.h:35,
from ../../../../../gcc.gnu.org/bootstrap-trunk/libgcc/../gcc/tsystem.h:93, from ../../../../../gcc.gnu.org/bootstrap-trunk/libgcc/libgcc2.c:27: /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: No such file or directory
 #include <asm/errno.h>
          ^~~~~~~~~~~~~
compilation terminated.
Makefile:494: recipe for target '_muldi3.o' failed

Any ideas what goes wrong?

System is Ubuntu 16.04.2 LTS "xenial" x86_64

Searching the web I came across

https://askubuntu.com/questions/530248/asm-errno-h-no-such-file-or-directory

Which proposes "sudo apt-get install linux-libc-dev" which didn't
change anything (no files added or updated), same error.

errno.h shows the following include order:

$ echo "#include <errno.h>" | gcc -xc - -H
. /usr/include/errno.h
.. /usr/include/features.h
... /usr/include/x86_64-linux-gnu/sys/cdefs.h
.... /usr/include/x86_64-linux-gnu/bits/wordsize.h
... /usr/include/x86_64-linux-gnu/gnu/stubs.h
.... /usr/include/x86_64-linux-gnu/gnu/stubs-64.h
.. /usr/include/x86_64-linux-gnu/bits/errno.h
... /usr/include/linux/errno.h
.... /usr/include/x86_64-linux-gnu/asm/errno.h
..... /usr/include/asm-generic/errno.h
...... /usr/include/asm-generic/errno-base.h

Any ideas?

For a "simple" build with
../../gcc.gnu.org/trunk/configure --prefix=/local/gnu/install/gcc-8-host --enable-languages=c,c++ --enable-checking=release --disable-bootstrap --build=x86_64-linux-gnu

the same occurs.

Johann



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux