Bug 102232 - gallium/svga_msg.c build failure on non-x86 with gcc 7.1
Summary: gallium/svga_msg.c build failure on non-x86 with gcc 7.1
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: 17.2
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-15 11:01 UTC by Timo Aaltonen
Modified: 2017-08-15 12:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.