Thank You,
> --
> You received this message because you are subscribed to the Google Groups
> "CoFSUG" group.
> To post to this group, send an email to cof...@googlegroups.com.
> To unsubscribe from this group, send email to
> cofsug+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cofsug?hl=en-GB.
--
Shravan Aras.
(http://www.kushraho.com)
Please let us know your system architecture as well.
Thank You,
I think you don't have dependencies installed for building GCC. You will
get almost all dependencies by issuing following command. This will
fetch dependencies required to build GCC for C and C++ AFAIK, but will
fail to build for Java and other languages.
$ sudo apt-get build-dep gcc-4.6
Again you might face problem as you are on Ubuntu 11.10 which uses
multiarch. To overcome this issue you will have to *specify the library
path.* So the commands will look like ( I assume you are on 64bit OS)
$ cd path/to/gcc-source
$ ./configure
Note: Only enable languages which you need. I think the option is
"--enable-languages=c,c++", do cross check here.
$ LIBRARY_PATH=/usr/lib/x86_64-linux-gnu make
This is time consuming step, you might want to consider 'ccache' if you
are going to be rebuilding often, and the "-j" option to 'make' to
specify number of cpu cores to use.
$ sudo make install # if you want to install it.
Do let us know if it solves the problem.
-Muneeb
http://packages.ubuntu.com/oneiric/i386/libc6-dev/filelist
(i386 as error tuple was i696-pc-linux-gnu)
All the files mentioned by vishal
(bits/predefs.h,sys/cdefs.h,gnu/stubs.h etc) were there under
/usr/include/i386-linux-gnu/
instead of /usr/include
Some more searching revealed that Ubuntu 11.10 has a new concept
called multiarch.
Thus the exra triplet
This link below explains it roughly with some links and gives a patch too.
http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01649.html
You can build gcc by pulling the patch from Ubuntu's or debian's source repos
(ubuntu's at launchpad, debian no idea)
I don't use Ubuntu so i can't test this.Try and let me know
-prasanna
--- On Sun, Jan 15, 2012 at 12:50 PM, Vishal Yadav <yada...@gmail.com> wrote:
| /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or
\--
Can you try to install build-essential?
# apt-get install build-essential
Most deb based systems use this to install all the dependency packages
required for development.
SK
--
Shakthi Kannan
http://www.shakthimaan.com
It would be easy for us to solve the issue if you can post the steps
executed and its output to some paste service such as pastebin.com
Still, looking at the error,
> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such
file or directory
indicates that you either didn't have installed the libc6-dev (and
libc6-dev-i386) or didn't exported the library path as mentioned in my
previous post (which is required as Ubuntu is using multiarch)
As you mentioned your OS is 32bit, and assuming you installed the
libc6-dev, execute 'make' command as follows,
$ LIBRARY_PATH=/usr/lib/i386-linux-gnu make
And again, post the full steps you followed on some paste service if you
get error.
-Muneeb