Bug 102232

Summary: gallium/svga_msg.c build failure on non-x86 with gcc 7.1
Product: Mesa Reporter: Timo Aaltonen <tjaalton>
Component: OtherAssignee: mesa-dev
Status: RESOLVED INVALID QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: 17.2   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Timo Aaltonen 2017-08-15 11:01:15 UTC
Hi, 17.2.0-rc3/4 (probably master too) fails to build on non-x86 with gcc 7.1:

for example with arm64:
../../../../../src/gallium/drivers/svga/svga_msg.c: In function ‘svga_host_log’:
../../../../../src/gallium/drivers/svga/svga_msg.c:86:4: error: output number 4 not directly addressable
 ({                                         \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    asm volatile ("inl %%dx, %%eax;" :      \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "=a"(ax),                            \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "=b"(bx),                            \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "=c"(cx),                            \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "=d"(dx),                            \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "=S"(si),                            \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "=D"(di) :                           \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "a"(magic),                          \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "b"(in_bx),                          \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "c"(cmd),                            \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "d"(port_num),                       \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "S"(in_si),                          \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "D"(in_di) :                         \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "memory");                           \
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 })
 ~~  
../../../../../src/gallium/drivers/svga/svga_msg.c:298:4: note: in expansion of macro ‘VMW_PORT’
    VMW_PORT(VMW_PORT_CMD_OPEN_CHANNEL,
    ^~~~~~~~
../../../../../src/gallium/drivers/svga/svga_msg.c:86:4: warning: asm operand 10 probably doesn’t match constraints


full buildlogs at
https://buildd.debian.org/status/package.php?p=mesa&suite=experimental
Comment 1 Timo Aaltonen 2017-08-15 12:26:18 UTC
I guess there's no need to build svga on non-x86.. closing

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.