how to build without precompiled headers?
Coleen Phillimore - Sun Microsystems
Coleen.Phillimore at Sun.COM
Mon Jan 5 09:27:04 PST 2009
I tried this on my new 8.10 ubuntu system at home and commenting out
USE_PRECOMPILED_HEADER didn't use the precompiled header. The file
_precompiled.incl is still produced but it's empty. I believe you have
to do a make clean before your gcc.make change is used.
The version of gcc that I used was very picky about inlined functions
not being defined in places where the other platforms were happy, so
there were multiple warnings with this message. I have a patch file that
resolves this, if you want it.
Also, on my 8.10 ubuntu, gcc version 4.1.forgot, I got an error building
fastdebug (server compiler) which I haven't resolved.
/home/coleenp/hotspot/src/share/vm/libadt/port.hpp:40: error: 'void
bcopy(const void*, void*, size_t)' redeclared inline without
If you're trying to track down a compiler error building hotspot, try
getting a preprocessed output file to narrow it down.
make <file that had error>.i
Hope this helps.
On 01/04/09 16:59, Matthias Klose wrote:
> Trying to track down an ICE (internal compiler error), I need to build hotspot
> without precompiled header files. There is a macro USE_PRECOMPILED_HEADER
> defined in openjdk/hotspot/make/*/makefiles/gcc.make, but just removing the
> conditional around this definition still builds using precompiled header files.
> How can you build without precompiled header files (even if it's a hack)?
More information about the distro-pkg-dev