[MacPorts] #37151: Bahamut error during staging
#37151: Bahamut error during staging -----------------------------------+-------------------------------- Reporter: preston.sumner@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: bahamut, installation | Port: bahamut -----------------------------------+-------------------------------- On OS X 10.8.2, on a fresh installation of MacPorts, Bahamut fails to install. Attached to this ticket is the main.log. The console error output is: ---> Staging bahamut into destroot Error: org.macports.destroot for port bahamut returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_bahamut/bahamut/work/destroot/opt/local/ircd": no such file or directory Please see the log file for port bahamut for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_bahamut/bahamut/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port bahamut failed -- Ticket URL: <https://trac.macports.org/ticket/37151> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37151: bahamut: build fails; build system doesn't notice; proceeds to destroot, which fails -------------------------------+-------------------------------- Reporter: preston.sumner@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: bahamut | -------------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: bahamut, installation => Old description:
On OS X 10.8.2, on a fresh installation of MacPorts, Bahamut fails to install. Attached to this ticket is the main.log. The console error output is: ---> Staging bahamut into destroot Error: org.macports.destroot for port bahamut returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_bahamut/bahamut/work/destroot/opt/local/ircd": no such file or directory Please see the log file for port bahamut for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_bahamut/bahamut/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port bahamut failed
New description: On OS X 10.8.2, on a fresh installation of MacPorts, Bahamut fails to install. Attached to this ticket is the main.log. The console error output is: {{{ ---> Staging bahamut into destroot Error: org.macports.destroot for port bahamut returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_bahamut/bahamut/work/destroot/opt/local/ircd": no such file or directory Please see the log file for port bahamut for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_bahamut/bahamut/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port bahamut failed }}} -- Comment: The relevant error in the log appears to be this problem when trying to build ircd: {{{ :info:build /usr/bin/clang -o ircd blalloc.o bsd.o channel.o clientlist.o clones.o confparse.o fdlist.o fds.o hash.o hide.o inet_addr.o ircd.o klines.o list.o m_nick.o m_rwho.o m_server.o m_services.o m_stats.o m_who.o match.o memcount.o modules.o packet.o parse.o pcre.o probability.o res.o s_auth.o s_bsd.o s_conf.o s_debug.o s_err.o s_misc.o s_numeric.o s_serv.o s_user.o sbuf.o scache.o send.o struct.o support.o throttle.o userban.o whowas.o zlink.o ssl.o socketengine_poll.o rc4.o dh.o version.o -lz -L/opt/local/lib -lcrypto -lssl :info:build Undefined symbols for architecture x86_64: :info:build "_first_visible_channel", referenced from: :info:build _m_who in m_who.o :info:build ld: symbol(s) not found for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) }}} The build system then doesn't notice this error and proceeds to the destroot phase as if nothing was wrong; the destroot then of course fails when it tries to install ircd because it isn't there since it wasn't built. -- Ticket URL: <https://trac.macports.org/ticket/37151#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37151: bahamut: build fails with clang; build system doesn't notice; proceeds to destroot, which fails -------------------------------+-------------------------- Reporter: preston.sumner@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: clang Port: bahamut | -------------------------------+-------------------------- Changes (by ryandesign@…): * keywords: => clang * status: new => assigned * owner: macports-tickets@… => ryandesign@… Comment: Updating to the just released 2.0.4 version still has this problem. [wiki:ProblemHotlist#compiler Using llvm-gcc-4.2 instead] works. We can use that workaround for now, but we should report this problem to the developers for a real fix. -- Ticket URL: <https://trac.macports.org/ticket/37151#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37151: bahamut: build fails with clang; build system doesn't notice; proceeds to destroot, which fails -------------------------------+-------------------------- Reporter: preston.sumner@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: clang Port: bahamut | -------------------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Updated port in r100096. -- Ticket URL: <https://trac.macports.org/ticket/37151#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37151: bahamut: build fails with clang; build system doesn't notice; proceeds to destroot, which fails -------------------------------+-------------------------- Reporter: preston.sumner@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: clang Port: bahamut | -------------------------------+-------------------------- Changes (by ryandesign@…): * cc: jeremyhu@… (added) Comment: Jeremy, in a prior offline discussion about similar errors in lmms, you referred me to [http://www.greenend.org.uk/rjk/tech/inline.html this page] about the "inline" keyword and told me that it needed to be changed to "static inline". So I wrote the attached patch, and bahamut does now compile with clang. Do you agree this is the right fix? I don't understand the implications of the change so I'd like to have another pair of eyes on it. -- Ticket URL: <https://trac.macports.org/ticket/37151#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37151: bahamut: build fails with clang; build system doesn't notice; proceeds to destroot, which fails -------------------------------+-------------------------- Reporter: preston.sumner@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: clang Port: bahamut | -------------------------------+-------------------------- Comment (by jmr@…): Clang just happens to default to C99 mode. Building with `gcc -std=c99` would fail in the same way. You could equally validly tell clang that the code requires gnu89 semantics with -std=gnu89, rather than patching the code to work as C99. (The latter would be the better approach for upstream to adopt in the long run, of course.) -- Ticket URL: <https://trac.macports.org/ticket/37151#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37151: bahamut: build fails with clang; build system doesn't notice; proceeds to destroot, which fails -------------------------------+-------------------------- Reporter: preston.sumner@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: clang Port: bahamut | -------------------------------+-------------------------- Comment (by jeremyhu@…): Yeah, that'll do the trick. -- Ticket URL: <https://trac.macports.org/ticket/37151#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37151: bahamut: build fails with clang; build system doesn't notice; proceeds to destroot, which fails -------------------------------+-------------------------- Reporter: preston.sumner@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: clang Port: bahamut | -------------------------------+-------------------------- Comment (by preston.sumner@…): Thank you for this fix. It's appreciated. -- Ticket URL: <https://trac.macports.org/ticket/37151#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37151: bahamut: build fails with clang; build system doesn't notice; proceeds to destroot, which fails -------------------------------+-------------------------- Reporter: preston.sumner@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: clang Port: bahamut | -------------------------------+-------------------------- Comment (by ryandesign@…): Thanks; committed my patch in r100103. -- Ticket URL: <https://trac.macports.org/ticket/37151#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts