Pranay Agrawal
Pranay Agrawal

Reputation: 63

HTK 32bit issue -> apt-get install gcc-multilib -> "Package 'gcc-multilib' has no installation candidate"

I am trying to install HTK. I tried ./configure, and received an error on make all:

cd HTKLib && make HTKLib.a) \
  || case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/pranay/HTK-3.4.1/htk/HTKLib'
gcc  -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I. -DPHNALG   -c -o HGraf.o HGraf.c
In file included from HShell.h:40,
                 from HGraf.c:54:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
   27 | #include <bits/libc-header-start.h>

So I searched this issue, and found "fatal error: bits/libc-header-start.h: No such file or directory" while compiling HTK. This led to the following solution sudo apt-get install gcc-multilib. However, this gives another issue:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gcc-multilib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc-multilib' has no installation candidate

I was unable to find a proper solution after this point. I could try to remove -m32 from the file originally, but apparently this is not the proper way and could lead to more issues.

Upvotes: 1

Views: 5770

Answers (4)

joshua
joshua

Reputation: 487

Try running this first:

sudo apt-get update

Then, try re-running:

sudo apt-get install gcc-multilib

This resolved it for me.

Reference: https://askubuntu.com/a/1261643/1189613

Upvotes: 0

Anmol Singh
Anmol Singh

Reputation: 1

For me it was an architecture-issue. I was building docker image in Mac Book with M2 chip. I fixed this issue by building the Docker Image as AMD64 image instead of ARM64.

Simply build docker image by:

docker buildx build --platform linux/amd64 -t my_docker_project -f Dockerfile .

Upvotes: 0

ash
ash

Reputation: 1

sudo apt install aptitude

sudo aptitude -y install gcc-multilib

worked on Ubuntu 18.04 with gcc version 7.5

Upvotes: 0

4s7r0n4u7
4s7r0n4u7

Reputation: 96

I solve this problem adding the following line in /etc/apt/sources.list:

deb http://ftp.de.debian.org/debian sid main

After, install gcc-multilib with apt:

#apt install gcc-multilib

Upvotes: 1

Related Questions