Welcome to Fractal Forums

Fractal Software => Bug Reporting => Topic started by: vitke on January 30, 2016, 12:54:43 PM




Title: "cannot combine with previous 'type-name' declaration specifier"
Post by: vitke on January 30, 2016, 12:54:43 PM
I installed the mandelbulber-opencl 1.21-1 package in Arch linux. I have a laptop with a hybrid graphics, so I'm runing mandelbulber-opencl with primusrun or optirun commands, which work fine with other programs.
Mandelbulber also works fine unless I try to enable OpenCL, in which case my card gets correctly recognized but I get the following OpenCL build error:

Code:
OpenCL Platform number is: 1
OpenCL Platform is by: NVIDIA Corporation
nVidia OpenCL library is detected
OpenCL contexts created
OpenCL Number of compute units: 5
OpenCL Max work item dimmensions: 3
OpenCL Max work group size: 1024
OpenCL Max clock frequency  1124 MHz
OpenCL Memory size  4095 MB
OpenCL Max size of memory object allocation 1023 MB
OpenCL Max constant buffer size  64 kB
OpenCL Constant buffer used  2 kB
Custom formulas path: /home/vitke/.mandelbulber/custom_ocl_formulas
OpenCL progHeader: #define INCLUDE_PATH_CL_DATA "/usr/share/mandelbulber/cl/mandelbulber_cl_data.h"
OpenCL Number of loaded sources 9
OpenCL build params:-w -cl-single-precision-constant -cl-denorms-are-zero
OpenCL Build log: <kernel>:323:10: error: cannot combine with previous 'type-name' declaration specifier
                float3 half = lightVector - viewVector;
                       ^
<kernel>:323:15: error: expected identifier or '('
                float3 half = lightVector - viewVector;
                            ^
<kernel>:324:8: error: expected identifier or '('
                half = fast_normalize(half);
                     ^
<kernel>:325:32: error: expected expression
                float specular = dot(normal, half);
                                             ^

ERROR: Program::build() (-11)

(mandelbulber-opencl:20936): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion 'g_utf8_validate (text, len, NULL)' failed

I can see hat this refers to the cl_engine_fast.cl file, but I don't see what's wrong.


















9


Title: Re: "cannot combine with previous 'type-name' declaration specifier"
Post by: visual.bermarte on January 30, 2016, 04:41:20 PM
You should edit the name of that variable, half. Change it into something else.


Title: Re: "cannot combine with previous 'type-name' declaration specifier"
Post by: vitke on January 30, 2016, 05:16:01 PM
Thanks, that helps. However, if I choose one of the Mandelbox fractals and enable OpenCL, the program shows Mandelbulb, not Mandelbox. Besides, some parts of the Mandelbulb are smoothed out.