[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Compiling takes longer with gcc-4.9.2
From: |
Greg Chicares |
Subject: |
Re: [lmi] Compiling takes longer with gcc-4.9.2 |
Date: |
Tue, 22 Dec 2015 01:06:27 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
On 2015-12-22 00:28, Greg Chicares wrote:
[...]
> It sounds like changes they made to conform to C++11 ruined the speed,
> so let's try '-std=c++03':
[...rebuild wx and wxPdfDoc with that flag, then...]
> For lmi, I experimentally pass
> treat_warnings_as_errors='-Werror'
> to remove '-pedantic-errors' for the nonce as a regretful workaround for a
> single wxPdfDoc variadic macro (which I should hope can be worked around
> better by patching wxPdfDoc)
Here's the "pedantic" error:
/usr/bin/i686-w64-mingw32-g++ -MMD -MP -MT group_quote_pdf_gen_wx.o -MF
group_quote_pdf_gen_wx.d\
-c -I /lmi/src/lmi -I /lmi/src/lmi/tools/pete-2.1.1 -I
/opt/lmi/local/lib/wx/include/i686-pc-mingw32-msw-unicode-3.1\
-I /opt/lmi/local/include/wx-3.1 -I /opt/lmi/third_party/include -I
/opt/lmi/third_party/src -I /opt/lmi/local/include\
-I /opt/lmi/local/include/libxml2 -DLMI_WX_NEW_USE_SO -DLIBXML_USE_DLL
-DSTRICT -D_FILE_OFFSET_BITS=64\
-DWXUSINGDLL -D__WXMSW__ -DBOOST_STRICT_CONFIG -std=c++03 -pedantic-errors
-Werror -Wall -Wcast-align -Wconversion\
-Wdeprecated-declarations -Wdisabled-optimization -Wimport -Wmultichar
-Wpacked -Wpointer-arith -Wsign-compare -Wundef\
-Wwrite-strings -Wno-long-long -Wctor-dtor-privacy -Wdeprecated
-Wnon-template-friend -Woverloaded-virtual\
-Wpmf-conversions -Wsynth -Wno-unused-local-typedefs -Wno-conversion
-Wno-unused-variable -Wno-deprecated-declarations \
-Wno-parentheses -Wno-variadic-macros -ggdb -O2
/lmi/src/lmi/group_quote_pdf_gen_wx.cpp -ogroup_quote_pdf_gen_wx.o
In file included from /opt/lmi/local/include/wx/pdfdocument.h:25:0,
from /opt/lmi/local/include/wx/pdfdc.h:21,
from /lmi/src/lmi/group_quote_pdf_gen_wx.cpp:56:
/opt/lmi/local/include/wx/pdfarraytypes.h:27:86: error: invoking macro
WX_DEFINE_SORTED_USER_EXPORTED_TYPEARRAY argument 4: \
empty macro arguments are undefined in ISO C90 and ISO C++98
WX_DEFINE_SORTED_USER_EXPORTED_ARRAY_INT(int, wxPdfSortedArrayInt,
WXDLLIMPEXP_PDFDOC);
^
/lmi/src/lmi/workhorse.make:798: recipe for target 'group_quote_pdf_gen_wx.o'
failed
Is it not possible to patch that problem, e.g. by passing '/**/' as the
missing macro argument?
Re: [lmi] Compiling takes longer with gcc-4.9.2, Greg Chicares, 2015/12/30