tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: "fatal error: had to relocate PCH"
On Thu, Apr 02, 2015 at 01:13:29PM +0200, Manuel Bouyer wrote:
> Hello,
> trying to build wxGTK30 or wxGTK28 on earm-armv7hf (netbsd-7) I get:
> ./src/common/any.cpp:1:0: fatal error: had to relocate PCH
>
> Has anyone noticed this, and is there a workaround ?
This is a stupidity in gcc - it can not relocate PCH contents, so it tries
to guess a "free" address when creating them initially and then later, when
reloading them, tries to mmap() the file at that address.
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58379
We need to "fix" the guess it does for arm; see:
src/external/gpl3/gcc/dist/gcc/config/host-netbsd.c and try to
add arm to the #elif defined(__mips__) || defined(__vax__) case.
Martin
Home |
Main Index |
Thread Index |
Old Index