Skip to content
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

Compile issue, g_mem_set_vtable is deprecated #6

Open
cratuki opened this issue Mar 6, 2020 · 0 comments
Open

Compile issue, g_mem_set_vtable is deprecated #6

cratuki opened this issue Mar 6, 2020 · 0 comments

Comments

@cratuki
Copy link

cratuki commented Mar 6, 2020

During compile,

function ‘main’:
vl.c:2969:5: error: ‘g_mem_set_vtable’ is deprecated [-Werror=deprecated-declarations]
     g_mem_set_vtable(&mem_trace);
     ^~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/glist.h:32,
                 from /usr/include/glib-2.0/glib/ghash.h:33,
                 from /usr/include/glib-2.0/glib.h:50,
                 from vl.c:59:
/usr/include/glib-2.0/glib/gmem.h:376:7: note: declared here
 void  g_mem_set_vtable (GMemVTable *vtable);
       ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [/home/cturner/opt/20200306.musicbox.cturner.ac.sergev.qemu.mips.pic32/qemu/rules.mak:57: vl.o] Error 1

Described here, https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/%5Bqemu%5D-error-%27g_mem_set_vtable%27-is-deprecated-4175586499/

I have bypassed it by disabling the warning. This issue suggests that it is fixed in more recent qemu. (Not sure if you would be able to fast-forward easily, though)
OpenChannelSSD/qemu-nvme#2

(No further compile issues)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant