Hi Bill,
The problem is not related to MODPAR. It is a whole new extension that is 
creating the problem.
Ya now I see that __APPLE__ and __MACH__ are defined by GCC/Intel C++.

Anyways try r12713. If it is not still fixed then I will try to compile it on 
Mac. 

Cheers.
Mahder Gebremedhin.
________________________________________
From: owner-openmodelicainter...@ida.liu.se 
[owner-openmodelicainter...@ida.liu.se] on behalf of Bill Janssen 
[jans...@parc.com]
Sent: Tuesday, August 28, 2012 6:31 PM
To: openmodelicainterest@ida.liu.se
Cc: jans...@parc.com
Subject: Re: can't compile OpenModelica trunk

Nope, still broken in r12706.

I configured "--without-MODPAR", too.

I think the problem is that CL_CALLBACK just isn't defined (or is
defined to nothing) unless _WIN32 is defined.

And the reason it's still active (I think) is that __APPLE__ isn't
defined when you run configure on a Mac -- it's a make script, not a C
program.

Bill

make -C SimulationRuntime/ParModelica/OpenCLRuntime -f Makefile
g++-4.2  -I/local/open-modelica/include -I. -I"../../c"  -c -o 
omc_ocl_memory_ops.o omc_ocl_memory_ops.cpp
In file included from ./omc_ocl_common_header.h:47,
                 from ./omc_ocl_memory_ops.h:48,
                 from omc_ocl_memory_ops.cpp:47:
./CL/cl.h:479: error: expected `)' before '*' token
./CL/cl.h:479: error: expected ',' or '...' before '*' token
./CL/cl.h:479: error: 'clCreateContext' declared as function returning a 
function
./CL/cl.h:480: error: expected unqualified-id before 'void'
./CL/cl.h:486: error: expected `)' before '*' token
./CL/cl.h:486: error: expected ',' or '...' before '*' token
./CL/cl.h:486: error: 'clCreateContextFromType' declared as function returning 
a function
./CL/cl.h:487: error: expected unqualified-id before 'void'
./CL/cl.h:554: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
./CL/cl.h:608: error: expected `)' before '*' token
./CL/cl.h:608: error: expected ',' or '...' before '*' token
./CL/cl.h:608: error: 'clSetMemObjectDestructorCallback' declared as function 
returning a function
./CL/cl.h:609: error: expected unqualified-id before 'void'
./CL/cl.h:660: error: expected `)' before '*' token
./CL/cl.h:660: error: expected ',' or '...' before '*' token
./CL/cl.h:660: error: 'clBuildProgram' declared as function returning a function
./CL/cl.h:661: error: expected unqualified-id before 'void'
./CL/cl.h:734: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
./CL/cl.h:744: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
./CL/cl.h:749: error: expected `)' before '*' token
./CL/cl.h:749: error: expected ',' or '...' before '*' token
./CL/cl.h:749: error: 'clSetEventCallback' declared as function returning a 
function
./CL/cl.h:750: error: expected unqualified-id before 'void'
./CL/cl.h:793: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
./CL/cl.h:820: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
./CL/cl.h:846: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
make[1]: *** [omc_ocl_memory_ops.o] Error 1
make: *** [opencl_rt] Error 2
sh-3.2$

Bill

Mahder Gebremedhin <mahder.gebremed...@liu.se> wrote:

> Hi Bill,
> Sorry you had to run into that. I added that stuff recently and it wasn't 
> tested on Mac.
> I have disabled that part of the compilation for Mac now.
> It should be fixed on r12693.
>
> If it is not let me know.
>
> Best regards.
> Mahder Gebremedhin.
> ________________________________________
> From: owner-openmodelicainter...@ida.liu.se 
> [owner-openmodelicainter...@ida.liu.se] on behalf of Bill Janssen 
> [jans...@parc.com]
> Sent: Monday, August 27, 2012 8:42 PM
> To: openmodelicainterest@ida.liu.se
> Cc: jans...@parc.com
> Subject: can't compile OpenModelica trunk
>
> I haven't tried compiling OpenModelica for a while, but I took another
> stab at it today.  This is a Snow Leopard Mac with Xcode 3.2.  I error
> out at this point:
>
> make -C SimulationRuntime/ParModelica/OpenCLRuntime -f Makefile
> g++-4.2  -I/local/open-modelica/include -I. -I"../../c"  -c -o 
> omc_ocl_memory_ops.o omc_ocl_memory_ops.cpp
> In file included from ./omc_ocl_common_header.h:47,
>                  from ./omc_ocl_memory_ops.h:48,
>                  from omc_ocl_memory_ops.cpp:47:
> ./CL/cl.h:479: error: expected `)' before '*' token
> ./CL/cl.h:479: error: expected ',' or '...' before '*' token
> ./CL/cl.h:479: error: 'clCreateContext' declared as function returning a 
> function
> ./CL/cl.h:480: error: expected unqualified-id before 'void'
> ./CL/cl.h:486: error: expected `)' before '*' token
> ./CL/cl.h:486: error: expected ',' or '...' before '*' token
> ./CL/cl.h:486: error: 'clCreateContextFromType' declared as function 
> returning a function
> ./CL/cl.h:487: error: expected unqualified-id before 'void'
> ./CL/cl.h:554: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
> ./CL/cl.h:608: error: expected `)' before '*' token
> ./CL/cl.h:608: error: expected ',' or '...' before '*' token
> ./CL/cl.h:608: error: 'clSetMemObjectDestructorCallback' declared as function 
> returning a function
> ./CL/cl.h:609: error: expected unqualified-id before 'void'
> ./CL/cl.h:660: error: expected `)' before '*' token
> ./CL/cl.h:660: error: expected ',' or '...' before '*' token
> ./CL/cl.h:660: error: 'clBuildProgram' declared as function returning a 
> function
> ./CL/cl.h:661: error: expected unqualified-id before 'void'
> ./CL/cl.h:734: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
> ./CL/cl.h:744: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
> ./CL/cl.h:749: error: expected `)' before '*' token
> ./CL/cl.h:749: error: expected ',' or '...' before '*' token
> ./CL/cl.h:749: error: 'clSetEventCallback' declared as function returning a 
> function
> ./CL/cl.h:750: error: expected unqualified-id before 'void'
> ./CL/cl.h:793: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
> ./CL/cl.h:820: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
> ./CL/cl.h:846: error: expected initializer before 'CL_API_SUFFIX__VERSION_1_1'
> make[1]: *** [omc_ocl_memory_ops.o] Error 1
> make: *** [opencl_rt] Error 2
> %
>
> Any ideas as to what's going wrong?  I'm wondering if the
>
>  #ifdef __APPLE__
>
> in the cl.h file has something to do with it?
>
> Can this be configured out?
>
> Bill
>

Reply via email to