Skip to content

Errors when compiling with msvc #33

@aquiles2k

Description

@aquiles2k

Hi, i still can't get msvc to compile webkit for qt5.

With the help of @quarcko and others i already smashed a lot of errors but there are still some left and i have not yet found out how to fix these.

Error 1:

You've instantiated std::aligned_storage<Len, Align> with an extended alignment (in other words, Align > alignof(max_align_t)). 
Before VS 2017 15.8, the member "type" would non-conformingly have an alignment of only alignof(max_align_t). VS 2017 15.8 was fixed to handle this correctly, 
but the fix inherently changes layout and breaks binary compatibility (*only* for uses of aligned_storage with extended alignments). 
Please define either (1) _ENABLE_EXTENDED_ALIGNED_STORAGE to acknowledge that you understand this message and that you actually want a type with an extended alignment, 
or (2) _DISABLE_EXTENDED_ALIGNED_STORAGE to silence this message and get the old non-conforming behavior. 

(compiling source file D:\Dev\Builds\qtwebkitcmake\WebCore\DerivedSources\unified-sources\UnifiedSource-c57e08af-5.cpp)	WebCore (WebCore\WebCore)	
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits

Error 2:

'WebCore::XMLDocumentParserScope::XMLDocumentParserScope(WebCore::CachedResourceLoader *,xmlGenericErrorFunc,xmlStructuredErrorFunc,void *)': 
cannot convert argument 3 from 'void (__cdecl *)(void *,xmlError *)' to 'xmlStructuredErrorFunc'

(compiling source file D:\Dev\Builds\qtwebkitcmake\WebCore\DerivedSources\unified-sources\UnifiedSource-42f7b70e-2.cpp) WebCore (WebCore\WebCore)	
D:\Dev\Sources\qtwebkit-2022-09-07-src\Source\WebCore\xml\XSLStyleSheetLibxslt.cpp	143	

Error 3:

'void xmlSetStructuredErrorFunc(void *,xmlStructuredErrorFunc)': 
cannot convert argument 2 from 'void (__cdecl *)(void *,xmlError *)' to 'xmlStructuredErrorFunc' 

(compiling source file D:\Dev\Builds\qtwebkitcmake\WebCore\DerivedSources\unified-sources\UnifiedSource-42f7b70e-2.cpp)	WebCore (WebCore\WebCore)	
D:\Dev\Sources\qtwebkit-2022-09-07-src\Source\WebCore\xml\XSLTProcessorLibxslt.cpp	134	

Error 4:

missing type specifier - int assumed. Note: C++ does not support default-int	

WebKitLegacy (WebKitLegacy\WebKitLegacy)	D:\Dev\Builds\qtwebkitcmake\WebCore\PrivateHeaders\WebCore\ProgressTrackerClient.h	33	

So does anyone know how to fix these? Thanks and best wishes!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions