Closed kinnairdclan closed 6 months ago
building wpewebkit 2.40.3 fails on the latest buildroot, with GCC 12, that has succeeded in the past:
/home/jrk/src/buildroot-pi/output/build/wpewebkit-2.40.3/Source/WebCore/xml/XSLStyleSheetLibxslt.cpp: In member function ‘bool WebCore::XSLStyleSheet::parseString(const WTF::String&)’: /home/jrk/src/buildroot-pi/output/build/wpewebkit-2.40.3/Source/WebCore/xml/XSLStyleSheetLibxslt.cpp:143: 129: error: invalid conversion from ‘void (*)(void*, xmlError*)’ {aka ‘void (*)(void*, _xmlError*)’} to ‘ xmlStructuredErrorFunc’ {aka ‘void (*)(void*, const _xmlError*)’} [-fpermissive] 143 | XMLDocumentParserScope scope(cachedResourceLoader(), XSLTProcessor::genericErrorFunc, XSLTPro cessor::parseErrorFunc, console); | ^ | | | void (*)(void*, xmlError*) {aka void (*)(void*, _xmlError*)} In file included from /home/jrk/src/buildroot-pi/output/build/wpewebkit-2.40.3/Source/WebCore/xml/XSLStyl eSheetLibxslt.cpp:34: /home/jrk/src/buildroot-pi/output/build/wpewebkit-2.40.3/Source/WebCore/xml/parser/XMLDocumentParserScope .h:47:99: note: initializing argument 3 of ‘WebCore::XMLDocumentParserScope::XMLDocumentParserScope(Web Core::CachedResourceLoader*, xmlGenericErrorFunc, xmlStructuredErrorFunc, void*)’ 47 | XMLDocumentParserScope(CachedResourceLoader*, xmlGenericErrorFunc, xmlStructuredErrorFunc structuredErrorFunc = 0, void* errorContext = nullptr); | ~~~~~~~~~~~~~~~~~~~~~~ ~^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/jrk/src/buildroot-pi/output/build/wpewebkit-2.40.3/WebCore/DerivedSources/uni fied-sources/UnifiedSource-42f7b70e-4.cpp:6: /home/jrk/src/buildroot-pi/output/build/wpewebkit-2.40.3/Source/WebCore/xml/XSLTProcessorLibxslt.cpp: In function ‘xmlDoc* WebCore::docLoaderFunc(const xmlChar*, xmlDictPtr, int, void*, xsltLoadType)’: /home/jrk/src/buildroot-pi/output/build/wpewebkit-2.40.3/Source/WebCore/xml/XSLTProcessorLibxslt.cpp:134: 34: error: invalid conversion from ‘void (*)(void*, xmlError*)’ {aka ‘void (*)(void*, _xmlError*)’} to ‘x mlStructuredErrorFunc’ {aka ‘void (*)(void*, const _xmlError*)’} [-fpermissive] 134 | xmlSetStructuredErrorFunc(console, XSLTProcessor::parseErrorFunc); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(void*, xmlError*) {aka void (*)(void*, _xmlError*)}
Do I need to enable -fpermissive in the CXXFLAGS? Let me know if I can get you any other dependency information.
I'll close as I think my build env is non-standard and doesn't deserve attention, using a branch based off of Buildroot release 2023.11 succeeded. Thank you.
building wpewebkit 2.40.3 fails on the latest buildroot, with GCC 12, that has succeeded in the past:
Do I need to enable -fpermissive in the CXXFLAGS? Let me know if I can get you any other dependency information.