“fatal error: bits/libc-header-start.h: No such file or directory” while compiling HTK

后端 未结 1 754
独厮守ぢ
独厮守ぢ 2020-12-03 07:15

I\'m getting the following issue when trying to run make on the HTK library:

(cd HTKLib && make HTKLib.a) \\
  || case \"\" in *k*) fail         


        
相关标签:
1条回答
  • 2020-12-03 07:35

    The -m32 is telling gcc to compile for a 32-bit platform. On a 64-bit machine, gcc normally only comes with 64-bit libraries. You have two options:

    1. Install 32-bit headers and libraries. Here's how you'd do this on Ubuntu: https://askubuntu.com/questions/91909/trouble-compiling-a-32-bit-binary-on-a-64-bit-machine
    2. Compile for 64-bit instead. Modify this line in the file named configure:

      CFLAGS="-m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH=\"$host_cpu\"' $CFLAGS"
      

      Delete -m32, giving you:

      CFLAGS="-ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH=\"$host_cpu\"' $CFLAGS"
      

      Run ./configure, then make clean, then make

      However, I would not suggest doing this. The library authors went out of their way to make this build for 32 bits on a 64 bit system, and it might not work correctly if you change this. (It does compile, though.)

    0 讨论(0)
提交回复
热议问题