Opened 12 years ago

Closed 11 years ago

#35287 closed defect (fixed)

gegl @0.2 fails to build, errors in opencl/cl.h

Reported by: malte.stroem@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: fabianwenk (Fabian Wenk), BasicBaer (Hendrik T. Voelker), andrewbass@…
Port: gegl

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello!

I am not able to handle the following error while installing gegl 0.2.

Tried almost every compiler. Error messages look always similar.

This is the debug log using mp-clang-3.2:

In file included from gegl-buffer.c:1:
In file included from gegl-buffer.c:51:
In file included from ./gegl-buffer-private.h:27:
In file included from ./gegl-buffer-cl-iterator.h:5:
In file included from ../../gegl/opencl/gegl-cl.h:4:
In file included from ../../gegl/opencl/gegl-cl-types.h:6:
../../gegl/opencl/cl.h:479:35: error: expected ')'
                void (CL_CALLBACK * )(const char *, const void *, size_t, void *),
                                  ^
../../gegl/opencl/cl.h:479:22: note: to match this '('
                void (CL_CALLBACK * )(const char *, const void *, size_t, void *),
                     ^
../../gegl/opencl/cl.h:486:43: error: expected ')'
                        void (CL_CALLBACK * )(const char *, const void *, size_t, void *),
                                          ^
../../gegl/opencl/cl.h:486:30: note: to match this '('
                        void (CL_CALLBACK * )(const char *, const void *, size_t, void *),
                             ^
../../gegl/opencl/cl.h:555:30: error: expected function body after function declarator
                  cl_int * ) CL_API_SUFFIX__VERSION_1_1;
                             ^
../../gegl/opencl/cl.h:609:55: error: expected ')'
                                    void (CL_CALLBACK * )( cl_mem , void* ),
                                                      ^
../../gegl/opencl/cl.h:609:42: note: to match this '('
                                    void (CL_CALLBACK * )( cl_mem , void* ),
                                         ^
../../gegl/opencl/cl.h:610:46: error: expected function body after function declarator
                                    void * ) CL_API_SUFFIX__VERSION_1_1;
                                             ^
../../gegl/opencl/cl.h:661:34: error: expected ')'
               void (CL_CALLBACK * )(cl_program , void * ),
                                 ^
../../gegl/opencl/cl.h:661:21: note: to match this '('
               void (CL_CALLBACK * )(cl_program , void * ),
                    ^
../../gegl/opencl/cl.h:735:30: error: expected function body after function declarator
                  cl_int * ) CL_API_SUFFIX__VERSION_1_1;
                             ^
../../gegl/opencl/cl.h:745:31: error: expected function body after function declarator
                     cl_int ) CL_API_SUFFIX__VERSION_1_1;
                              ^
../../gegl/opencl/cl.h:750:39: error: expected ')'
                    void (CL_CALLBACK * )(cl_event, cl_int, void *),
                                      ^
../../gegl/opencl/cl.h:750:26: note: to match this '('
                    void (CL_CALLBACK * )(cl_event, cl_int, void *),
                         ^
../../gegl/opencl/cl.h:751:30: error: expected function body after function declarator
                    void * ) CL_API_SUFFIX__VERSION_1_1;
                             ^
../../gegl/opencl/cl.h:794:38: error: expected function body after function declarator
                        cl_event * ) CL_API_SUFFIX__VERSION_1_1;
                                     ^
../../gegl/opencl/cl.h:821:39: error: expected function body after function declarator
                         cl_event * ) CL_API_SUFFIX__VERSION_1_1;
                                      ^
../../gegl/opencl/cl.h:847:38: error: expected function body after function declarator
                        cl_event * ) CL_API_SUFFIX__VERSION_1_1;
                                     ^
In file included from gegl-buffer.c:1:
In file included from gegl-buffer.c:51:
In file included from ./gegl-buffer-private.h:27:
In file included from ./gegl-buffer-cl-iterator.h:5:
In file included from ../../gegl/opencl/gegl-cl.h:4:
In file included from ../../gegl/opencl/gegl-cl-types.h:7:
../../gegl/opencl/cl_gl.h:64:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
                     cl_GLuint ,
                     ^~~~~~~~~
../../gegl/opencl/cl_gl.h:70:25: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
                        cl_GLenum ,
                        ^~~~~~~~~
../../gegl/opencl/cl_gl.h:71:25: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
                        cl_GLint ,
                        ^~~~~~~~
../../gegl/opencl/cl_gl.h:72:25: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
                        cl_GLuint ,
                        ^~~~~~~~~
../../gegl/opencl/cl_gl.h:78:25: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
                        cl_GLenum ,
                        ^~~~~~~~~
../../gegl/opencl/cl_gl.h:79:25: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
                        cl_GLint ,
                        ^~~~~~~~
../../gegl/opencl/cl_gl.h:80:25: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
                        cl_GLuint ,
                        ^~~~~~~~~
../../gegl/opencl/cl_gl.h:86:28: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
                           cl_GLuint ,
                           ^~~~~~~~~
../../gegl/opencl/cl_gl.h:92:19: error: unknown type name 'cl_GLuint'; did you mean 'cl_uint'?
                  cl_GLuint * ) ;
                  ^~~~~~~~~
                  cl_uint
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:174:18: note: 'cl_uint' declared here
typedef uint32_t cl_uint __attribute__((aligned(4)));
                 ^
In file included from gegl-buffer.c:1:
In file included from gegl-buffer.c:51:
In file included from ./gegl-buffer-private.h:27:
In file included from ./gegl-buffer-cl-iterator.h:5:
In file included from ../../gegl/opencl/gegl-cl.h:4:
In file included from ../../gegl/opencl/gegl-cl-types.h:8:
../../gegl/opencl/cl_gl_ext.h:63:39: error: expected function body after function declarator
                           cl_int * ) CL_EXT_SUFFIX__VERSION_1_1;
                                      ^
In file included from gegl-buffer.c:1:
In file included from gegl-buffer.c:51:
In file included from ./gegl-buffer-private.h:27:
In file included from ./gegl-buffer-cl-iterator.h:5:
In file included from ../../gegl/opencl/gegl-cl.h:4:
In file included from ../../gegl/opencl/gegl-cl-types.h:9:
../../gegl/opencl/cl_ext.h:69:50: error: expected function body after function declarator
                                        void * ) CL_EXT_SUFFIX__VERSION_1_0;
                                                 ^
../../gegl/opencl/cl_ext.h:84:54: error: expected function body after function declarator
                                            void * ) CL_EXT_SUFFIX__VERSION_1_0;
                                                     ^
../../gegl/opencl/cl_ext.h:90:52: error: expected function body after function declarator
                                          void * ) CL_EXT_SUFFIX__VERSION_1_0;
                                                   ^
../../gegl/opencl/cl_ext.h:96:52: error: expected function body after function declarator
                                          void * ) CL_EXT_SUFFIX__VERSION_1_0;
                                                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
8 warnings and 20 errors generated.
make[3]: *** [gegl-buffer.lo] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gegl/gegl/work/gegl-0.2.0/gegl/buffer'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gegl/gegl/work/gegl-0.2.0/gegl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gegl/gegl/work/gegl-0.2.0'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gegl/gegl/work/gegl-0.2.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gegl/gegl/work/gegl-0.2.0" && /usr/bin/make -w all 
Exit code: 2
Error: org.macports.build for port gegl returned: command execution failed
DEBUG: Error code: CHILDSTATUS 80315 2
DEBUG: Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Warning: targets not executed for gegl: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port gegl for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gegl/gegl/main.log

Error: Processing of port gegl failed

Goodbye,
Malte

Attachments (5)

gegl_main.log (183.3 KB) - added by malte.stroem@… 12 years ago.
gegl 0.2 fails, main.log
wenks-gegl-main.log (253.6 KB) - added by fabianwenk (Fabian Wenk) 12 years ago.
droid001-gegl-main.log (257.4 KB) - added by spam@… 12 years ago.
log file from failed gegl build
wenks-gegl-20120904-main.log (259.0 KB) - added by fabianwenk (Fabian Wenk) 12 years ago.
ak-gegl-main.log (50.7 KB) - added by asukakenji@… 12 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gegl/gegl/main.log

Download all attachments as: .zip

Change History (29)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: gegl removed
Owner: changed from macports-tickets@… to devans@…
Port: gegl added

Please clean and try again with the default compiler, then attach the main.log file.

Changed 12 years ago by malte.stroem@…

Attachment: gegl_main.log added

gegl 0.2 fails, main.log

comment:2 Changed 12 years ago by malte.stroem@…

Very well.

Did set sudo port -d select --set clang none

and got the same errors.

See the full log in the attached file.

Goodbye, Malte

comment:3 Changed 12 years ago by dershow

I have tried this on three different computers. Gegl upgrade fails on both ppc machines, but works on an Intel machine.

Changed 12 years ago by fabianwenk (Fabian Wenk)

Attachment: wenks-gegl-main.log added

comment:4 Changed 12 years ago by fabianwenk (Fabian Wenk)

I am running on Snow Leopard (10.6.8) on Intel, and I am also not able to build (upgrade to) gegl 0.2.0. My main.log is attached as wenks-gegl-main.log.

comment:5 Changed 12 years ago by fabianwenk (Fabian Wenk)

Cc: fabian@… added

Cc Me!

Changed 12 years ago by spam@…

Attachment: droid001-gegl-main.log added

log file from failed gegl build

comment:6 Changed 12 years ago by spam@…

Got the same problem as fabian@…. Snow Leopard (10.6.8) on Intel. Attached log file droid001-gegl-main.log

comment:7 Changed 12 years ago by malte.stroem@…

Since gegl still failed for me, I completely removed MacPorts on my system and reinstalled it.

Unfortunately building gegl still fails with the same errors.

There must be something wrong with OpenCL in the gegl package, but I am not that good a C programmer.

There is no way for me to use the gimp anymore on Mac OS X.

comment:8 in reply to:  7 ; Changed 12 years ago by fabianwenk (Fabian Wenk)

Hello Malte

Replying to malte.stroem@…:

There is no way for me to use the gimp anymore on Mac OS X.

There is, since yesterday with the release of Gimp 2.8.2 it is a native version, which does not need X11 anymore on OS X. Just go to http://www.gimp.org/downloads/ and get the gimp-2.8.2-dmg-1.dmg. It is running here on OS X 10.6.8 and 10.8.1.

You just need to get used to, that the menu now is on top of the screen and not on top of the picture window any more.

bye
Fabian

comment:9 in reply to:  8 ; Changed 12 years ago by malte.stroem@…

Replying to fabian@…:

There is no way for me to use the gimp anymore on Mac OS X.

There is, since yesterday with the release of Gimp 2.8.2 it is a native version, which does not need X11 anymore on OS X. Just go to http://www.gimp.org/downloads/ and get the gimp-2.8.2-dmg-1.dmg. It is running here on OS X 10.6.8 and 10.8.1.

That's really nice! Thank you!

I forgot to mention that I am still working with Snow Leopard.

Perhaps gegl will not fail on Mountain Lion.

Will upgrade soon because I need the latest Xcode Package.

comment:10 in reply to:  9 Changed 12 years ago by fabianwenk (Fabian Wenk)

Replying to malte.stroem@…:

That's really nice! Thank you!

You're welcome.

I forgot to mention that I am still working with Snow Leopard.

Perhaps gegl will not fail on Mountain Lion.

I did build gegl (0.2.0_0) and also gimp2 (2.8.0_1) on OS X 10.8 about 3 weeks ago without any issue.

comment:11 Changed 12 years ago by dbevans (David B. Evans)

Status: newassigned

Possible fix committed in r97327, now builds for me on Snow Leopard. Please resync your port tree and let me know if this solves your problem.

Thanks

Changed 12 years ago by fabianwenk (Fabian Wenk)

comment:12 in reply to:  11 ; Changed 12 years ago by fabianwenk (Fabian Wenk)

Replying to devans@…:

Possible fix committed in r97327, now builds for me on Snow Leopard. Please resync your port tree and let me know if this solves your problem.

It still fails on my 10.6.8 x86_64 system, with this version of gcc:

fabian@flashback:~ $ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Log file in the attached wenks-gegl-20120904-main.log

comment:13 in reply to:  12 Changed 12 years ago by malte.stroem@…

Possible fix committed in r97327, now builds for me on Snow Leopard. Please resync your port tree and let me know if this solves your problem.

It still fails on my 10.6.8 x86_64 system, [...]

Yes, and it still fails for me on Snow Leopard with the same OpenCL errors listed in my first message.

comment:14 Changed 12 years ago by jmroot (Joshua Root)

Summary: gegl 0.2 failsgegl @0.2 fails to build, errors in opencl/cl.h

comment:15 Changed 12 years ago by jmroot (Joshua Root)

I see the reporter is using ccache. Does disabling that help?

comment:16 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

The buildbots are not using ccache, but the snowleopard buildbot fails building gegl too: http://build.macports.org/builders/buildports-snowleopard-x86_64/builds/10975/steps/compile/logs/stdio

Since r97327 was not a fix it should be reverted.

comment:17 Changed 12 years ago by BasicBaer (Hendrik T. Voelker)

Cc: basicbaer@… added

Cc Me!

comment:18 Changed 12 years ago by BasicBaer (Hendrik T. Voelker)

Same problem here for some time. Cannot build gegl +universal on SnowLeopard. And that affects not only Gimp but also digiKam and Hugin, which quite annoying.

Changed 12 years ago by asukakenji@…

Attachment: ak-gegl-main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gegl/gegl/main.log

comment:19 Changed 12 years ago by asukakenji@…

Same problem occurred on MacPorts version 2.1.2.

--->  Building gegl
Error: org.macports.build for port gegl returned: command execution failed
Please see the log file for port gegl for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gegl/gegl/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Log attached with previous message.

comment:20 Changed 11 years ago by andrewbass@…

Cc: andrewbass@… added

Cc Me!

comment:21 Changed 11 years ago by andrewbass@…

Same problem with MacPorts version 2.2.0 and gegl 0.2.0_7 on Mac OS X 10.6.8.

comment:22 Changed 11 years ago by dbevans (David B. Evans)

I believe this should be fixed with latest gegl @0.2.0_9. Can you confirm?

comment:23 in reply to:  22 Changed 11 years ago by fabianwenk (Fabian Wenk)

Replying to devans@…:

I believe this should be fixed with latest gegl @0.2.0_9. Can you confirm?

I can confirm that it is now building on my OS X 10.8.6 system (64-bit installation):

fabian@flashback:~ $ uname -a
Darwin flashback.wenks.ch 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
fabian@flashback:~ $ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.6.8
BuildVersion:	10K549
fabian@flashback:~ $ port version
Version: 2.2.1
fabian@flashback:~ $ port installed gegl
The following ports are currently installed:
  gegl @0.2.0_9+python27 (active)
fabian@flashback:~ $ 

comment:24 Changed 11 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

Thanks.

Note: See TracTickets for help on using tickets.