What to do if asm/errno.h asm/ioctls.h and others are not found anymore in Ubuntu or Debian

It turns out you need to now install gcc-multilib. It's not clear why yet. A bug is already filed, but he maintainers seem to see no problem in suddenly changing this behavior...

Another workaround btw is to go into /usr/include and link to your generic header files:
sudo ln -fs ../src/linux/include/asm-generic .
sudo ln -fs ../src/linux/include/asm-generic asm

But I wouldn't recommend that. It may break later and cause you much more trouble. ;)

Btw. for Google: All these files could be affected and not found:

4level-fixup.h        atomic64.h            atomic.h             atomic-long.h   audit_change_attr.h  audit_dir_write.h    audit_read.h     audit_signal.h  audit_write.h
auxvec.h              bitops/               bitops.h             bitsperlong.h   bug.h                bugs.h               cacheflush.h     cache.h         checksum.h
cmpxchg.h             cmpxchg-local.h       cputime.h            current.h       delay.h              device.h             div64.h          dma-coherent.h  dma.h
dma-mapping-broken.h  dma-mapping-common.h  emergency-restart.h  errno-base.h    errno.h              fb.h                 fcntl.h          futex.h         getorder.h
gpio.h                hardirq.h             hw_irq.h             ide_iops.h      int-l64.h            int-ll64.h           ioctl.h          ioctls.h        io.h
iomap.h               ipcbuf.h              irqflags.h           irq.h           irq_regs.h           Kbuild               Kbuild.asm       kdebug.h        kmap_types.h
libata-portmap.h      linkage.h             local.h              memory_model.h  mman-common.h        mman.h               mm_hooks.h       mmu_context.h   mmu.h
module.h              msgbuf.h              mutex-dec.h          mutex.h         mutex-null.h         mutex-xchg.h         page.h           param.h         parport.h
pci-dma-compat.h      pci.h                 percpu.h             pgalloc.h       pgtable.h            pgtable-nopmd.h      pgtable-nopud.h  poll.h          posix_types.h
resource.h            rtc.h                 scatterlist.h        sections.h      segment.h            sembuf.h             serial.h         setup.h         shmbuf.h
shmparam.h            siginfo.h             signal-defs.h        signal.h        socket.h             sockios.h            spinlock.h       statfs.h        stat.h
string.h              swab.h                syscall.h            syscalls.h      system.h             termbits.h           termios-base.h   termios.h       timex.h
tlbflush.h            tlb.h                 topology.h           types.h         uaccess.h            uaccess-unaligned.h  ucontext.h       unaligned.h     unistd.h
user.h                vga.h                 vmlinux.lds.h        xor.h

In any case, you miss /usr/include/ asm  or asm-generic or both.

If you like this post, share it and subscribe to the RSS feed so you don't miss the next one. In any case, check the related posts section below. (Because maybe I'm just having a really bad day and normally I write much more interesting articles about theses subjects! Or maybe you'll only understand what I meant here once you've read all my other posts on the topic. ;) )

No comments:

Post a Comment

I appreciate comments. Feel free to write anything you wish. Selected comments and questions will be published.