This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bootstrap failures on solaris


"Arthur Haas" <ahaas@impactweather.com> writes:

> Now that this patch has been commited, the build on i386-pc-solaris2.10
> succeeds when building tree-ssa-loop-prefetch.o file but fails later on:
>
> cc1: warnings being treated as errors
> /export/home/arth/gnu/gcc.git/gcc/gcc.c: In function 'compare_files':
> /export/home/arth/gnu/gcc.git/gcc/gcc.c:6635:2: error: request for
> implicit conversion from 'void *' to 'caddr_t' not permitted in C++
> make[3]: *** [gcc.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
>
> The error is in an munmap() call, and a look at the <sys/mman.h> header
> shows that the funcation arguments can be either 'void *' or 'caddr_t *'
> depending on preprocessor values.

I believe that POSIX specifices that munmap takes a void * argument.  Is
there some preprocessor define we can use to direct the Solaris header
files to compile in POSIX mode?  If so, it should work to add it to
CFLAGS (using +=) in TOPLEVEL/config/mh-solaris.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]