[MacPorts] #27004: ncursesw @5.7_0 build failure
#27004: ncursesw @5.7_0 build failure ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: ncurses ncursesw | Port: ncursesw ------------------------------------+--------------------------------------- ncursesw has been giving me a LOT of grief... I'm in over my head here. Starting with: {{{ ---> Computing dependencies for ncursesw ---> Building ncursesw Error: Target org.macports.build returned: shell command failed Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log Error: Unable to upgrade port: 1 }}} opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log reads {{{ version:1 :msg:main ---> Computing dependencies for ncursesw:info:main .:msg:main :debug:main Executing org.macports.main (ncursesw) :debug:main Skipping completed org.macports.fetch (ncursesw) :debug:main Skipping completed org.macports.checksum (ncursesw) :debug:main Skipping completed org.macports.extract (ncursesw) :debug:main Skipping completed org.macports.patch (ncursesw) :debug:main Skipping completed org.macports.configure (ncursesw) :msg:main ---> Building ncursesw :debug:build build phase started at Mon Oct 25 18:02:34 CDT 2010 :debug:build Executing org.macports.build (ncursesw) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/work/ncurses-5.7" && /usr/bin/make -j2 all' :info:build cd man && /usr/bin/make DESTDIR="" all :info:build make[1]: Nothing to be done for `all'. :info:build cd include && /usr/bin/make DESTDIR="" all :info:build make[1]: Nothing to be done for `all'. :info:build cd ncurses && /usr/bin/make DESTDIR="" all :info:build /usr/bin/gcc-4.2 -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ncursesw -pipe -O2 -arch x86_64 --param max-inline-insns-single=1200 -no-cpp-precomp -DMAIN_PROGRAM ./tinfo/comp_hash.c -arch x86_64 -Wl,-search_paths_first :info:build sh -e ./tty/MKexpanded.sh "/usr/bin/gcc-4.2 -E" -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ncursesw > expanded.c :info:build In file included from ./../include/ncurses_cfg.h:178, :info:build from ../ncurses/curses.priv.h:55, :info:build from ./tinfo/comp_hash.c:42: :info:build ./../include/ncurses_def.h:5:1: error: unterminated #ifndef :info:build In file included from ../ncurses/curses.priv.h:261, :info:build from ./tinfo/comp_hash.c:42: :info:build ./../include/term_entry.h:54: error: expected specifier- qualifier-list before 'TERMTYPE' :info:build ./../include/term_entry.h:123: error: expected ')' before '*' token :info:build ./../include/term_entry.h:124: error: expected ')' before '*' token :info:build ./../include/term_entry.h:128: error: expected ')' before '*' token :info:build ./../include/term_entry.h:129: error: expected ')' before '*' token :info:build ./../include/term_entry.h:132: error: expected ')' before '*' token :info:build ./../include/term_entry.h:138: error: expected ')' before '*' token :info:build ./../include/term_entry.h:150: error: expected ')' before '*' token :info:build ./../include/term_entry.h:158: error: expected ')' before '*' token :info:build ./../include/term_entry.h:159: error: expected ')' before '*' token :info:build ./../include/term_entry.h:162: error: expected ')' before '*' token :info:build In file included from ./tinfo/comp_hash.c:42: :info:build ../ncurses/curses.priv.h:514: error: expected specifier- qualifier-list before 'TERMINAL' :info:build ../ncurses/curses.priv.h:675: error: expected specifier- qualifier-list before 'TTY' :info:build ../ncurses/curses.priv.h:707: error: expected specifier- qualifier-list before 'TERMINAL' :info:build In file included from ./tinfo/comp_hash.c:42: :info:build ../ncurses/curses.priv.h:1531: error: expected ')' before '*' token :info:build ../ncurses/curses.priv.h:1579: error: expected declaration specifiers or '...' before 'TERMTYPE' :info:build ../ncurses/curses.priv.h:1595: error: expected declaration specifiers or '...' before 'TERMTYPE' :info:build ../ncurses/curses.priv.h:1601: error: expected declaration specifiers or '...' before 'TERMTYPE' :info:build make[1]: *** [make_hash] Error 1 :info:build make[1]: *** Waiting for unfinished jobs.... :info:build make: *** [all] Error 2 :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/work/ncurses-5.7" && /usr/bin/make -j2 all " returned error 2 :error:build Target org.macports.build returned: shell command failed :debug:build Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for ncursesw): org.macports.destroot org.macports.build :notice:build Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log }}} Any ideas? I'm stuck here. Running 10.6.4, xcode 3.2.3. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/27004> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: jmr@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ncursesw ------------------------------------+--------------------------------------- Changes (by jmr@…): * keywords: ncurses ncursesw => * cc: ossumguywill@… (removed) * status: new => assigned * owner: macports-tickets@… => jmr@… Comment: Please remember to cc the maintainer. You do not need to be in cc when you are the reporter. The current version of ncursesw is 5.7_1. Please first run through the steps in the [wiki:FAQ#buildfails FAQ]. -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: jmr@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ncursesw ------------------------------------+--------------------------------------- Comment(by ossumguywill@…): Replying to [comment:2 jmr@…]:
Please remember to cc the maintainer. You do not need to be in cc when you are the reporter.
The current version of ncursesw is 5.7_1. Please first run through the steps in the [wiki:FAQ#buildfails FAQ].
OK, sorry about the trac stuff. I'm new to this. Now, I went to the FAQ and I've already tried all of the stuff like cleaning and updating ncursesw. It always fails the way I mentioned. at
---> Building ncursesw and the FAQ didn't really help at all. Maybe I'm missing something.
-- Ticket URL: <https://trac.macports.org/ticket/27004#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: jmr@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ncursesw ------------------------------------+--------------------------------------- Comment(by jmr@…): Following the FAQ would have brought you up to the current revision of the port, and generated a complete clean log. Please attach the log file. -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: jmr@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ncursesw ------------------------------------+--------------------------------------- Comment(by ossumguywill@…): OK... added... I'm pretty sure it's the same as the original post... this is what happens when I try to upgrade outdated. -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure due to gawk not loading libiconv ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ncursesw ------------------------------------+--------------------------------------- Changes (by jmr@…): * cc: mschamschula@…, jmr@… (added) * status: assigned => new * owner: jmr@… => ryandesign@… Comment: That's still not a complete log, and it shows a different error. Handing off to libiconv and gawk maintainers since that's what's failing. -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure due to gawk not loading libiconv ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: gawk libiconv ncursesw ------------------------------------+--------------------------------------- Changes (by jmr@…): * port: ncursesw => gawk libiconv ncursesw -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure due to gawk not loading libiconv ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: gawk libiconv ncursesw ------------------------------------+--------------------------------------- Comment(by ryandesign@…): That log shows: {{{ :info:build dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib :info:build Referenced from: /opt/local/bin/gawk :info:build Reason: Incompatible library version: gawk requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 }}} That means you have the gawk port installed, and the gawk program is linked with version 8 of the libiconv library (this is expected) but that it could only find version 7 (this is unexpected). Mac OS X provides version 7 of the libiconv library, so often this error occurs when gawk finds the MacPorts version of the library but it is unsuitable for some reason (often it is the wrong architecture) and it instead tries to use the Mac OS X version (which is unsuitable because its library version is too old). What is the architecture of your MacPorts-provided libiconv library? Find out with: {{{ lipo -info /opt/local/lib/libiconv.dylib }}} I see you are running Mac OS X 10.6; did you recently upgrade from an earlier OS? If so, did you follow the [wiki:Migration Migration procedure]? On Mac OS X, programs are built for the x86_64 architecture. If your libiconv library turns out to instead be of a different architecture, the Migration procedure is likely what you need to follow. -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure due to gawk not loading libiconv ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: gawk libiconv ncursesw ------------------------------------+--------------------------------------- Comment(by ryandesign@…): Replying to [comment:8 ryandesign@…]:
On Mac OS X, programs are built for the x86_64 architecture.
Make that: On Mac OS X 10.6 and up -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure due to gawk not loading libiconv ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: gawk libiconv ncursesw ------------------------------------+--------------------------------------- Comment(by ossumguywill@…):
Non-fat file: /opt/local/lib/libiconv.dylib is architecture: x86_64
I don't think that's the problem (although I did upgrade recently). How would I go about updating libiconv? Also, I didn't manually reinstall all of the ports like in the migration procedure, if that could cause this kind of problem. Do you think that's the cause? -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure due to gawk not loading libiconv ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: gawk libiconv ncursesw ------------------------------------+--------------------------------------- Comment(by ryandesign@…): If you had MacPorts installed on Leopard, and then you upgraded to Snow Leopard, you definitely need to rebuild all ports on Snow Leopard as per the Migration document. -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure due to gawk not loading libiconv ------------------------------------+--------------------------------------- Reporter: ossumguywill@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: gawk libiconv ncursesw ------------------------------------+--------------------------------------- Comment(by ossumguywill@…): Hey, thanks for the help! It looks like it's moving along smoothly, it went over ncursesw without a hitch after erasing everything. Thanks for being patient with me. Now I just have to be patient with the installation, this is certainly not a quick process! -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27004: ncursesw @5.7_0 build failure due to gawk not loading libiconv -------------------------------------+-------------------------------------- Reporter: ossumguywill@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: invalid | Keywords: Port: gawk libiconv ncursesw | -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Ok, glad it's working. We'll close this since it seems to have been due to using old ports on a new OS. -- Ticket URL: <https://trac.macports.org/ticket/27004#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts