[Bug 825574] Re: cant compile native gcc /usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory"

youngsai 825574 at bugs.launchpad.net
Tue Oct 4 22:52:31 UTC 2011


Finally figured it out!

basically, /usr/include/asm  was renamed to /usr/include/asm-generic
and whoever did it was a snotty brat!

He only told half of the header files that he made the change!
the Half of the header files were looking but they couldn't find their friend...

Trying to tear apart the header files like that....  tsk tsk..

Sorry, I'm really high.
Basically, make a symlink from /usr/include/asm to /usr/include/asm-generic

It fixes everything.
Also I'm pretty sure that the problem lies in one of the multilib packages not creating this symlink.
probably gcc-multilib.  Or something.  Again, really high.
 
It shouldn't be a hard fix.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/825574

Title:
  cant compile native gcc /usr/include/linux/errno.h:4:23: fatal error:
  asm/errno.h: No such file or directory"

Status in “gcc-defaults” package in Ubuntu:
  Confirmed

Bug description:
  I tried to compile upstream gcc natively

  /b/foss/gcc/configure --enable-languages=c,c++ --disable-nls --enable-
  bootstrap --target=x86_64-linux-gnu --build=x86_64-linux-gnu
  --host=x86_64-linux-gnu

  make

  It ends up with
  make[5]: *** [_ashrdi3.o] Error 1
  In file included from /usr/include/bits/errno.h:25:0,
                   from /usr/include/errno.h:36,
                   from /b/foss/gcc/libgcc/../gcc/tsystem.h:94,
                   from /b/foss/gcc/libgcc/../gcc/libgcc2.c:29:
  /usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
  compilation terminated.
  make[5]: *** [_ashldi3.o] Error 1
  In file included from /usr/include/bits/errno.h:25:0,
                   from /usr/include/errno.h:36,
                   from /b/foss/gcc/libgcc/../gcc/tsystem.h:94,
                   from /b/foss/gcc/libgcc/../gcc/libgcc2.c:29:
  /usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
  compilation terminated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/825574/+subscriptions




More information about the foundations-bugs mailing list