[MacPorts] #27528: ImageMagick fails to build on 10.6.5
#27528: ImageMagick fails to build on 10.6.5 -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: Compile error | Port: Image Magick -------------------------------------------+-------------------------------- ImageMagick fails to compile with an error in magic/composite.c:2757 on Snow Leopard 10.6.5 using Apples GCC 4.2.1: "error: expected '#pragma omp' clause before 'omp_throttle'". Please see attached log. -- Ticket URL: <https://trac.macports.org/ticket/27528> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick fails to build on 10.6.5 -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => ryandesign@… * keywords: Compile error => * port: Image Magick => ImageMagick Comment: Please remember to cc the maintainer. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Comment(by ryandesign@…): Hmm, it builds fine for me on Snow Leopard. "omp" here refers to OpenMP but I'm not sure what to do with this. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Comment(by ryandesign@…): If you attach your config.log I could compare it with mine, see what's different. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Comment(by michael.himmelsbach@…): I did not find a config.log, but in my macports.conf I found that I had recently enabled the use of ccache (ie, it contained "configureccache yes"). Setting "configureccache no" and doing a "port clean/configure/build/install imagemagick" then worked for me. I am up to date now, which also means that I will never use ccache again. Or is this a MacPorts-only ccache problem? -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Comment(by michael.himmelsbach@…): neverpanic, have you tried disabling ccache for MacPorts? This worked for me, and as I can see from your config.log in line 12929 (CC= ccache /usr/bin/gcc-4.2 -std=gnu99 -std=gnu99), you also have ccache enabled for building ImageMagick. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Comment(by neverpanic@…): Yes I have and it did work, but maybe we can still get to the bottom of this or at least add a message that building ImageMagick with ccache will fail. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Comment(by michael.himmelsbach@…): Just a note: Building ImageMagick with ccache will probably only fail if another version of it was build with ccache before. If I find some time I will clear my ccache cache and see if it works then. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Comment(by nigel.stanger@…): Same problem here too. "sudo ccache -C" followed by "port clean/upgrade imagemagick" failed with the same error. Disabling ccache completely followed by "port clean/upgrade imagemagick" worked fine. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Comment(by ryandesign@…): Hmm. I had never used ccache before, but I've now installed it and configured MacPorts to use it, and ImageMagick still built fine for me. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Comment(by raimue@…): First it failed in the same way for me as described above. It looks like the `omp_throttle(1)` macro was not pre-processed and was not expanded. Therefore the compiler chokes on the unknown directive. But it works now with a clean ccache. My guess is that ccache was unable to detect changes for whatever reason and used old pre-processed input (old headers?) from the cache. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' -------------------------------------------+-------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ImageMagick -------------------------------------------+-------------------------------- Changes (by ryandesign@…): * cc: luis.beca@… (added) * status: new => assigned Comment: Has duplicate #27873. I guess I should disable ccache for ImageMagick. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' --------------------------------------------+------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: ImageMagick | --------------------------------------------+------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: r74894 -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27528: ImageMagick: expected '#pragma omp' clause before 'omp_throttle' --------------------------------------------+------------------------------- Reporter: michael.himmelsbach@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: ImageMagick | --------------------------------------------+------------------------------- Changes (by dhruvahuja@…): * status: closed => reopened * resolution: fixed => Comment: Replying to [ticket:27528 michael.himmelsbach@…]:
ImageMagick fails to compile with an error in magic/composite.c:2757 on Snow Leopard 10.6.5 using Apples GCC 4.2.1: "error: expected '#pragma omp' clause before 'omp_throttle'". Please see attached log.
Setting the CCACHE_CPP2 environment variable changes the preprocessing behaviour making it compatible with ImageMagick. Not all ccache performance is lost. More information on usage at: http://workin.gs /compiling-imagemagick-ccache and on the explanation of the behaviour at: http://ccache.samba.org/manual.html#_environment_variables . I tested this on SLES 11.1 x86_64 , though. -- Ticket URL: <https://trac.macports.org/ticket/27528#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts