[MacPorts] #40590: poppler-0.24.1 does not build on Mac OSX 10.7.5
#40590: poppler-0.24.1 does not build on Mac OSX 10.7.5 ------------------------------+-------------------------------- Reporter: carmine.ventre@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: ------------------------------+-------------------------------- Hi I tried to upgrade first and then uninstall and install poppler-0.24.1 unsuccessfully. I get an error in building phase, namely "Error: org.macports.build for port poppler returned: command execution failed". Looking at the log file I can see the following errors a number of errors regarding missing semicolons or undeclared variables (see attached log file). The error code is :debug:build Error code: CHILDSTATUS 10572 2 :debug:build 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" Am I the only one with this problem? Any ideas on how to sort it? Thanks! -- Ticket URL: <https://trac.macports.org/ticket/40590> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: poppler @0.24.1: error: expected ';' after top level declarator -------------------------------+---------------------- Reporter: carmine.ventre@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * owner: macports-tickets@… => devans@… * port: => poppler Old description:
Hi I tried to upgrade first and then uninstall and install poppler-0.24.1 unsuccessfully. I get an error in building phase, namely "Error: org.macports.build for port poppler returned: command execution failed".
Looking at the log file I can see the following errors a number of errors regarding missing semicolons or undeclared variables (see attached log file). The error code is
:debug:build Error code: CHILDSTATUS 10572 2 :debug:build 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"
Am I the only one with this problem? Any ideas on how to sort it? Thanks!
New description: Hi I tried to upgrade first and then uninstall and install poppler-0.24.1 unsuccessfully. I get an error in building phase, namely "Error: org.macports.build for port poppler returned: command execution failed". Looking at the log file I can see the following errors a number of errors regarding missing semicolons or undeclared variables (see attached log file). The error code is {{{ :debug:build Error code: CHILDSTATUS 10572 2 :debug:build 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" }}} Am I the only one with this problem? Any ideas on how to sort it? Thanks! -- Comment: Yes the relevant error in the log seems to be: {{{ :info:build /opt/local/include/glib-2.0/glib/gmessages.h:192:34: error: expected ';' after top level declarator :info:build ...) G_ANALYZER_NORETURN :info:build ^ :info:build ; }}} glib2 was just updated to a new version yesterday. It's possible poppler is not compatible and needs an update. However, I was able to build poppler just now with no problem. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: poppler @0.24.1: error: expected ';' after top level declarator -------------------------------+---------------------- Reporter: carmine.ventre@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by carmine.ventre@…): Thanks for your reply.
glib2 was just updated to a new version yesterday. It's possible poppler is not compatible and needs an update. However, I was able to build poppler just now with no problem.
Weird! I am unable to make it work on my machine. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: poppler @0.24.1: error: expected ';' after top level declarator -------------------------------+---------------------- Reporter: carmine.ventre@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by devans@…): I just tried rebuilding poppler without any problem using the new glib2 as well. However, I'm thinking this is a glib2 problem. gmessages.h shows this code at near line 192: {{{ #else /* no varargs macros */ static void g_error (const gchar *format, ...) G_ANALYZER_NORETURN { va_list args; va_start (args, format); g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args); va_end (args); for(;;) ; } }}} and G_ANALYZER_NORETURN is defined in glib/gmacros.h as {{{ #define G_ANALYZER_NORETURN __attribute__((analyzer_noreturn)) }}} So it does look as though there is a missing semicolon here (and for g_critical same file as well). This code is for the case of "no varargs macros" so could be platform specific. Compare to this declaration (also in gmessages.h) {{{ GLIB_AVAILABLE_IN_ALL void g_return_if_fail_warning (const char *log_domain, const char *pretty_function, const char *expression) G_ANALYZER_NORETURN; }}} I'm building on 10.8.5 with Xcode 5.0. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: poppler @0.24.1: error: expected ';' after top level declarator -------------------------------+---------------------- Reporter: carmine.ventre@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by ryandesign@…): I was on 10.8.5 with Xcode 4.6.3. The reporter was on Lion. I can try to test on Lion next. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (removed) * cc: devans@… (added) * owner: devans@… => ryandesign@… * port: poppler => glib2 Comment: On my Lion machine with Xcode 4.3.3 and Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) (deliberately old to test for such issues...), glib2 itself fails to build with this same error. Carmine, what version of Xcode and clang do you have? -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Comment (by ryandesign@…): I can reproduce the problem on Mountain Lion by using macports-clang-2.9 and macports-clang-3.0. macports-clang-3.1 works. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: Port: glib2 | -------------------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: I have blacklisted older clang in r111569 and filed an upstream bug report to see what the correct fix would be. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Changes (by ryandesign@…): * status: closed => reopened * resolution: fixed => Comment: Of course that doesn't fix poppler... -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Comment (by suv-sf@…): Lion 10.7.5, Xcode 4.3.2: same failure GLib 2.38.0 built successfully for me with attached patch - it reverts this [https://git.gnome.org/browse/glib/commit/?id=409a6db3492e8d5e81f5e248e9e9abe... revision] (which was based on [https://bugzilla.gnome.org/show_bug.cgi?id=700268 Bug 700268 - Add support for using the clang analyzer]). I can't tell if reverting that one commit is a valid workaround or potentially harmful - at least that commit seems to be the only problem preventing GLib 2.38.0 from compiling with older Apple clang versions. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Comment (by ryandesign@…): Thanks but I'd like to wait to hear back from the developers of glib for the correct solution. Until then, you should upgrade to Xcode 4.6.3 plus its command line tools. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Comment (by devans@…): Replying to [comment:8 ryandesign@…]:
Of course that doesn't fix poppler...
But looks like there is nothing to fix in poppler. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Comment (by devans@…): Replying to [comment:11 ryandesign@…]:
Thanks but I'd like to wait to hear back from the developers of glib for the correct solution. Until then, you should upgrade to Xcode 4.6.3 plus its command line tools.
This revision seems to be the heart of the matter but instead of reverting I would just add semicolons at the end of the function declarations for g_error and g_critical. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:12 devans@…]:
But looks like there is nothing to fix in poppler.
Blacklisting old clang, like I did in the glib2 port, would presumably work around it, but I agree that seems suboptimal, since we'd have to do it in every port that uses gmessages.h. Replying to [comment:13 devans@…]:
This revision seems to be the heart of the matter but instead of reverting I would just add semicolons at the end of the function declarations for g_error and g_critical.
Where, exactly? I don't think the error message is suggesting a reasonable solution. Adding semicolons where it says it expects them does not result in successful compilation. I am reconsidering using a patch like the one suv suggested, since all that the original patch was supposed to do was add support for developers who want to use the clang analyzer; removing that again isn't something that should affect regular users. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Comment (by carmine.ventre@…): Replying to [comment:5 ryandesign@…]:
On my Lion machine with Xcode 4.3.3 and Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) (deliberately old to test for such issues...), glib2 itself fails to build with this same error. Carmine, what version of Xcode and clang do you have?
I have Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) and Xcode Version 4.6.3 (4H1503). -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: glib2 | -------------------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:15 carmine.ventre@…]:
I have Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) and Xcode Version 4.6.3 (4H1503).
That version of clang is old. Please [http://guide.macports.org/chunked/installing.xcode.html#installing.xcode.lio... update your command line tools]. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: Port: glib2 | -------------------------------+-------------------------- Changes (by ryandesign@…): * status: reopened => closed * resolution: => fixed Comment: Replying to [comment:14 ryandesign@…]:
I am reconsidering using a patch like the one suv suggested, since all that the original patch was supposed to do was add support for developers who want to use the clang analyzer; removing that again isn't something that should affect regular users.
r111575 -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#40590: glib2 @2.38.0: error: expected ';' after top level declarator -------------------------------+-------------------------- Reporter: carmine.ventre@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: Port: glib2 | -------------------------------+-------------------------- Comment (by carmine.ventre@…): Replying to [comment:16 ryandesign@…]:
Replying to [comment:15 carmine.ventre@…]:
I have Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) and Xcode Version 4.6.3 (4H1503).
That version of clang is old. Please [http://guide.macports.org/chunked/installing.xcode.html#installing.xcode.lio... update your command line tools].
Many thanks! Sorted now. -- Ticket URL: <https://trac.macports.org/ticket/40590#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts