Bug 89238 - "nir/nir.h", line 643: Error: In this declaration "src" is of an incomplete type "nir_alu_src[]".
Summary: "nir/nir.h", line 643: Error: In this declaration "src" is of an incomplete t...
Status: RESOLVED WONTFIX
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Solaris
: medium blocker
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 01:01 UTC by Vinson Lee
Modified: 2016-01-24 10:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to fix the unsized array issue (813 bytes, text/plain)
2015-03-14 16:51 UTC, Jason Ekstrand
Details

Description Vinson Lee 2015-02-20 01:01:41 UTC
mesa: 6316c90cc0daa9e9476b00e3c52c51190e782c3f (master 10.6.0-devel)

Oracle Studio build error.

"nir/nir.h", line 643: Error: In this declaration "src" is of an incomplete type "nir_alu_src[]"
Comment 1 Jason Ekstrand 2015-02-20 01:32:15 UTC
Can you try replacing "nir_alu_src src[]" with "nir_alu_src src[0]" and making the corresponding change to nir_intrinsic_instr"
Comment 2 Connor Abbott 2015-02-20 03:12:55 UTC
See this thread:

http://lists.freedesktop.org/archives/mesa-dev/2015-February/077137.html

looks like there are a few (mostly trivial) patches needed.
Comment 3 Jason Ekstrand 2015-03-14 16:51:21 UTC
Created attachment 114310 [details]
Patch to fix the unsized array issue

I just attached a patch that *should* fix the bug.  Let me know how it works.
Comment 4 Vinson Lee 2015-03-18 00:24:39 UTC
(In reply to Jason Ekstrand from comment #3)
> Created attachment 114310 [details]
> Patch to fix the unsized array issue
> 
> I just attached a patch that *should* fix the bug.  Let me know how it works.

"nir/nir.h", line 664: Error: An array cannot have zero size unless you use the option -features=zla.
"nir/nir.h", line 722: Warning: Identifier expected instead of "}".
"nir/nir.h", line 813: Error: An array cannot have zero size unless you use the option -features=zla.
Comment 5 Timothy Arceri 2016-01-24 10:56:47 UTC
As of 51564f04b77e6d Oracle Studio is not longer supported in Mesa.


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.