-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 05/10/2014 19:09, O. Hartmann wrote:
> I guess now compilation picks up the correct headers as installed on FreeBSD. 
> But I realise a strange error. Compilation drops at:
> 
> clCreateImage.c:154:31: error: no member named 'buffer' in 'struct 
> _cl_image_desc' mem->buffer = image_desc->buffer; ~~~~~~~~~~  ^
> 
> Checking the struct _cl_image_desc in CL 1.2 CL/cl.h gives
> 
> typedef struct _cl_image_desc {
[...]
> cl_mem                  buffer; } cl_image_desc;
> 
> and in CL 2.0
> 
> typedef struct _cl_image_desc {
[...]
> union { cl_mem                  buffer; cl_mem                  mem_object; 
> }; } cl_image_desc;
> 
> The struct member buffer is a union in CL 2.0. Can this be addressed somehow?

which compiler and which compiler version are you using.
If I recall one of your previous message, if you use gcc, you use
a old version:
In file included from pocl_topology.c:24:
In file included from ../../../../lib/CL/pocl_cl.h:36:
In file included from ../../../../lib/CL/pocl_icd.h:39:
/usr/local/include/ocl_icd.h:33:34: warning: unknown warning group '-Wcpp', 
ignored
[-Wunknown-pragmas] #  pragma GCC diagnostic ignored "-Wcpp"

Anonymous union or struct in union or struct is a GCC extention for
a long time and they have been introduced in c11, so any recent
compiler should support them.

  Regards,
    Vincent

> Regards, Oliver
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVDGTqJZH3mN+x7dRAQg7UA/9FkfYKTaUkdTn5qQhXc47FS2tIa57BlHc
+275myr5Cgy6+7J28iCpzOuMZeKk85OHOHRkSv2C+StQ2n2YrhWgT6//dEJzMHeO
PIufNXcdykCJYKUNCqiDSk9M61513BACOGhkubps6Ljz1zDcDDi9zC4kN2WZD0Hz
kp54AUuK0TlqKyb8f+NHOM69hOXfu77FJ3OVVwvI5Z/fcTq+AdaF47cKclHlgKXH
SgRwaVS1CkxQ4JY5Po3Ojaq2YZnwjLhtsO4JBeIbg0m2Dyb4sIfRZTBijkTwGdWs
rjz9gbtcftLSRbZKtzPpS5N9d9t10sXBl4DSBgWZc/wmhUFgoO3892r0i0O5VQxS
GZ0851ir60gilu9rFw1TBg556c2I/b6xEocWKMfmVJ2lpyiQufT1yTnSbw2AivnT
FDOpJMyoOUi6kY91NbUcRUn+fNbWpFUBHe0aMnbiBKUsWoMYYIGMN98xwFbdubRl
TAtKX7aaqEISVQBI56DKVXFU63qtOty6hm8WFK6PLUV3vBdc9rtHuVhBcu2u5kzR
tdbkFbs8DqwB960os7rUWLc4ODjpU3BwJrDnhDkCPEM6jnhMeRhWcng49zLTrMjD
AVA8JHyVtEJilzEhbvrO/wNEidcQSJTs503Fo/iZ6HlqEtOOx0nzdrcOfNzzi7ua
+NYkLaeUOHE=
=TQ6A
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to