Bug 89238

Summary: "nir/nir.h", line 643: Error: In this declaration "src" is of an incomplete type "nir_alu_src[]".
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED WONTFIX QA Contact: mesa-dev
Severity: blocker    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch to fix the unsized array issue

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.