/usr/include/gnu/stubs.h:7:27: error: gnu / stubs-32.h: no such file or directory

I am trying to install roccc 2.0 . I installed the necessary packages. Now, installing it, he gives me this error:

 /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory 

I searched gnu/stubs-32.h and found out that for the 64-bit version of Linux it is in glibc-devel and for the 32-bit version of Linux it is in libc6-dev-i386 .

I am using a 32-bit version of Linux: i386 GNU / Linux, but could not get the lib required to fix this error.

Can someone please help me?

+7
source share
5 answers

yum install glibc-devel.i686, will solve this problem in RHEL x64.

The original answer for the answer solved this RHEL x64 problem

+7
source

The header file gnu/stubs-32.h is located under /usr/include/i386-linux-gnu/ , but the installation script tries to find it in /usr/include/ , try this quick fix to complete the installation:

sudo ln -s /usr/include/i386-linux-gnu/gnu/stubs-32.h /usr/include/gnu/stubs-32.h

After installation is complete, you can remove the link.

+2
source

Install the "glibc-devel" package or whatever it called in your distribution. You may also need to install ia32-libs lib32z1-dev lib32bz2-dev (the names may vary on your distribution).

0
source

The script tries to get stubs-32.h from / usr / include /, where it is not found. To solve this problem, you must add the "include" path (the default is / usr / include) as follows:
C_INCLUDE_PATH = / USR / enable / i386-linux-wildebeest /
export C_INCLUDE_PATH
OR
export C_INCLUDE_PATH = / usr / include / $ (gcc -print-multiarch)

You may visit the error "gnu / stubs-32.h: There is no such file or directory" when compiling the Nachos source code for additional reference.

0
source

Package name keeps changing, just do

 yum list glibc-devel 

to find out the current packet for 32 bits. In my case, he listed only 2 packets for 32 bits and one for 64 bits. I just installed 32 bit code with

 yum install glibc-devel.i686 
0
source

All Articles