Certainly that warning didn’t apply to me …
May 13, 2007
I was building gcc and ran into this error:
../.././libgcc/../libdecnumber/decContext.h:52:50: error: gstdint.h: No such file or directory
I was pretty sure I had followed the directions correctly. I had installed the pre-reqs described here. I had enlisted in the source as described here. Then I switched into the gcc directory and ran ./configure – everything looked good so I ran make.
This is where things went downhill. Build errors galore.
It turns out that while I did skim the Configuration instructions I missed the part about not building from the src directory but rather from a sibling directory (or rather – not from the source dir). So I created a sibling directory, re-ran configure and then make. This time it got much further – but it still ended up hitting compile errors (a missing target in a makefile).
Even doing a clean build and re-running configure again could not resurrect the build.
I ended up having to start over with an `rm -f -r *` and getting the source over.
This time I ran configure from the sibling directory right from the start and everything was much happier.
Who would have thought that when the gcc maintainers went through the trouble of documenting the proper way to run configure that they would really mean that you were supposed to do it that way.
I posted this because when I hit the original problem I found several sites where people were asking why they were hitting that error and did not find a site where the cause was explained. Hopefully this will get enough Google Juice to save someone else the trouble.