-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: deleting ‘void*’ is undefined [-Werror] #907
Comments
I was able to track down the commit where this issue comes from: 7cd3f46 |
Lastly, cross-building for multiple arches using the following from Synology:
|
I tried it on my side and couldn't reproduce it: gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu1~16.04) ===================================================== /home/spksrc/git-ffmpeg-evansport/spksrc/cross/intel-media-sdk/work-apollolake-6.1/media-driver-intel-media-20.1.1/media_driver/agnostic/common/os/mos_utilities.h:311:9: error: deleting ‘void*’ is undefined [-Werror] |
Thnx for the feedback @fenhu but updating the compiler isn't possible until Synology releases the next DSM version 7.x. Until then GCC 4.9.x under a cross-compiling environment is the only version I can work with. Also I noticed in the code that the "delete" function is also being called by various other genX prior to failing only on gen12. Something different must be done elsewhere so it always worked until now? Although it is really easy to reproduce doing the following on Ubuntu:
Install the dependencies:
Setup the environment and move to the
|
@th0ma7 // media_feature_const_settings.h:56:13 |
Thnx for the feedback!
|
Just synced with this file's owner, the engineer will move the MOS_Delete(m_featureSetting) to son class where malloc(m_featureSetting). And then the m_featureSetting will not be void* and have the detail struct. I will notify you when the change is merged. |
Great! Note that I can give a try at the upcoming patch before merging to confirm it solves the issue. |
The patch does fix the issue. |
Compiling 20.1.1 driver with help from patch #906 (comment) eventually leads into a
error: deleting ‘void*’ is undefined [-Werror]
The text was updated successfully, but these errors were encountered: