bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] fix build for gcc5 on PowerPC


From: Thomas Dickey
Subject: Re: [patch] fix build for gcc5 on PowerPC
Date: Sat, 31 Oct 2015 15:36:24 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Oct 29, 2015 at 12:06:51AM +0200, Alex Potapenko wrote:
> Trying to build ncurses (tried 5.9 and 6.0) for PowerPC using gcc5
> leads to this kind of error:
> http://lists.freebsd.org/pipermail/freebsd-toolchain/2015-March/001508.html
> 
> After further investigation, I discovered that output produced by the
> cpp has some lines that are not expected by MKlib_gen.sh to be there,
> e.g. # 39 "gen__31899.c" lines here:

But I added a workaround in July which is supposed to suppress this:

http://invisible-island.net/ncurses/NEWS.html#t20150725
        + use alternate workaround for gcc 5.x feature (adapted from patch by
          Mikhail Peselnik).

I don't have a powerpc, but today setup FreeBSD 11 current with
gcc5 (5.2.0 from ports), and the check works for that.  The fix
is part of ncurses/base/MKlib_gen.sh, and (because it relies upon
a gcc-specific flag) uses the version information from gcc to decide
whether to apply it.

https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html
-P
    Inhibit generation of linemarkers in the output from the preprocessor. 
    This might be useful when running the preprocessor on something that is not
    C code, and will be sent to a program which might be confused by the
    linemarkers. 

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]