Hi, I am getting a strange compilation error lately for aarch64-linux-user. I think it is somehow related to TYPE_PTRVOID handling but my investigation has not led to anything concrete. I think this is a compiler error since the build passes on an other system with gcc-6.
Info: ubuntu 16.04 x86_64 system $ gcc --version gcc (Ubuntu 5.4.1-2ubuntu1~16.04) 5.4.1 20160904 Error: /home/pranith/devops/code/qemu/linux-user/ioctls.h:224:9: error: ‘SNDCTL_DSP_MAPINBUF’ undeclared here (not in a function) IOCTL(SNDCTL_DSP_MAPINBUF, IOC_R, MK_PTR(MK_STRUCT(STRUCT_buffmem_desc))) ^ /home/pranith/devops/code/qemu/linux-user/syscall.c:5453:23: note: in definition of macro ‘IOCTL’ { TARGET_ ## cmd, cmd, #cmd, access, 0, { __VA_ARGS__ } }, ^ /home/pranith/devops/code/qemu/linux-user/ioctls.h:225:9: error: ‘SNDCTL_DSP_MAPOUTBUF’ undeclared here (not in a function) IOCTL(SNDCTL_DSP_MAPOUTBUF, IOC_R, MK_PTR(MK_STRUCT(STRUCT_buffmem_desc))) ^ /home/pranith/devops/code/qemu/linux-user/syscall.c:5453:23: note: in definition of macro ‘IOCTL’ { TARGET_ ## cmd, cmd, #cmd, access, 0, { __VA_ARGS__ } }, ^ /home/pranith/devops/code/qemu/linux-user/ioctls.h:280:9: error: ‘SOUND_MIXER_ACCESS’ undeclared here (not in a function) IOCTL(SOUND_MIXER_ACCESS, 0, TYPE_PTRVOID) ^ /home/pranith/devops/code/qemu/linux-user/syscall.c:5453:23: note: in definition of macro ‘IOCTL’ { TARGET_ ## cmd, cmd, #cmd, access, 0, { __VA_ARGS__ } }, ^ /home/pranith/devops/code/qemu/rules.mak:60: recipe for target 'linux-user/syscall.o' failed -- Pranith