GCC: Linux gnu/stubs-32.h: No such file or directory

by on March 19, 2013 · 1 comment· LAST UPDATED March 19, 2013

in ,

I have Debian / Ubuntu Linux. I need to compile software written in C. The gcc throwing an error that read as follows:

gnu/stubs-32.h: No such file or directory compilation terminated. make: *** [foo.o] Error 1

How do I fix this problem under Debian or Ubuntu Linux 64 bit system and compile apps using gcc compiler?

Tutorial details
DifficultyEasy (rss)
Root privilegesYes
Requirementsglibc
Estimated completion timeN/A

You need 32bit embedded GNU C Library. This incldes development Libraries, header files, contains the symlinks, headers, and object files needed to compile and link programs which use the standard C library.

Fix for Debian Linux

Type the following command:
$ sudo apt-get install libc6-dev

Fix for Ubuntu Linux

Type the following command:
$ sudo apt-get install libc6-dev-i386

Fix for OpenSUSE / Novell Suse Linux (SLES)

Type the following command:
# zypper in glibc-devel-32bit

Fix for RHEL / Fedora / CentOS / Scientific Linux

Type the following yum command to install glibc package:
# yum install glibc-devel.i686

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 Shantanu Gadgil March 19, 2013 at 10:44 am

Hi,
What’s embedded about this?
I just thought of it/them as “32bit development packages” (headers and stuff)

Regards,
Shantanu

Reply

Leave a Comment

Tagged as: , , , , , , , , ,

Previous Faq:

Next Faq: