Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need gcc-3.4 to compile some softwares on my Ubuntu 11.10 (32-bit). So I downloaded:


and installed them using sudo dpkg -i *.deb. Then I tried to compile a "Hello World" program using gcc-3.4 hello.c, but it told me:

In file included from /usr/include/features.h:388,
                 from /usr/include/stdio.h:28,
                 from test.c:1:
/usr/include/gnu/stubs.h:7:27: gnu/stubs-32.h: No such file or directory

I've did the same thing on Ubuntu 10.10 and I successed. So what should I do on Ubuntu 11.10?

share|improve this question

migrated from Oct 29 '11 at 1:36

This question came from our site for professional and enthusiast programmers.

Nevermind my previous comment, this probably requires some self-compilation of the following source package:, which is a hassle. Another option is trying to get the package from the source, ( – Legolas Oct 28 '11 at 10:10
up vote 2 down vote accepted

Try to install the development package libc6-dev.

It contains the stubs-32.h file as shown in the file list.

Use -I dir to add the directory to the include search path, where headers are looked for...

share|improve this answer
Thank you for the advice, but I've installed it and it was not helpful. – lqhl Oct 28 '11 at 10:16
When I look at the contents of the package it should work. Exactly the same error? ( – Michel Oct 28 '11 at 10:45
yes, exactly and i have the file /usr/include/i386-linux-gnu/gnu/stubs-32.h in my computer. but gcc-3.4 still cannot find it. can i ask gcc-3.4 search the path /usr/include/i386-linux-gnu/ for *.h files. – lqhl Oct 28 '11 at 10:52
-I dir Add the directory dir to the list of directories to be searched for header files. – Michel Oct 28 '11 at 11:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.