Bug 228184 - Compilation error with gcc version 9.3.0 (Buildroot 2020.08-14-ge5a2a90)
Summary: Compilation error with gcc version 9.3.0 (Buildroot 2020.08-14-ge5a2a90)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Víctor M. Jáquez L.
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-22 09:17 PDT by Víctor M. Jáquez L.
Modified: 2021-07-22 10:19 PDT (History)
12 users (show)

See Also:


Attachments
Patch (2.57 KB, patch)
2021-07-22 09:24 PDT, Víctor M. Jáquez L.
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Víctor M. Jáquez L. 2021-07-22 09:17:54 PDT
While cross compiling with gcc version 9.3.0 (Buildroot 2020.08-14-ge5a2a90) 

I hit with this compilation error:

WebCore/DerivedSources/JSRTCRtpSender.cpp: In function ‘JSC::JSValue WebCore::toJSNewlyCreated(JSC::JSGlobalObject*, WebCore::JSDOMGlobalObject*, WTF::Ref<WebCore::RTCRtpSender>&&)’:
WebCore/DerivedSources/JSRTCRtpSender.cpp:500:54: error: static assertion failed: RTCRtpSender is not polymorphic
  500 |     static_assert(std::is_polymorphic<RTCRtpSender>::value, "RTCRtpSender is not polymorphic");
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
Comment 1 Víctor M. Jáquez L. 2021-07-22 09:24:37 PDT
Created attachment 434014 [details]
Patch
Comment 2 Chris Dumez 2021-07-22 09:28:47 PDT
Comment on attachment 434014 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=434014&action=review

> Source/WebCore/Modules/mediastream/RTCRtpReceiver.h:59
> +    virtual ~RTCRtpReceiver();

Oh, that's because your port doesn't subclass LoggerHelper.
Comment 3 Víctor M. Jáquez L. 2021-07-22 09:47:53 PDT
(In reply to Chris Dumez from comment #2)
> Comment on attachment 434014 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=434014&action=review
> 
> > Source/WebCore/Modules/mediastream/RTCRtpReceiver.h:59
> > +    virtual ~RTCRtpReceiver();
> 
> Oh, that's because your port doesn't subclass LoggerHelper.

Thanks! Let me look at it :)
Comment 4 Víctor M. Jáquez L. 2021-07-22 09:59:06 PDT
But still, LoggerHelper inheritance is conditional...
Comment 5 EWS 2021-07-22 10:18:27 PDT
Committed r280179 (239873@main): <https://commits.webkit.org/239873@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 434014 [details].
Comment 6 Radar WebKit Bug Importer 2021-07-22 10:19:22 PDT
<rdar://problem/80968862>