Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#30583 closed defect (fixed)

ncurses, libpixman: build error with nawk

Reported by: phil@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: ryandesign (Ryan Schmidt), tobypeterson
Port: ncurses nawk libpixman


I'm trying to upgrade my outdated ports after selfupdating to Macports 2.0.1. It fails on both ncurses and libpixman, which my remaining upgrades depend on. (grails-devel worked just fine.)

Specific error:

--->  Configuring ncurses
--->  Building ncurses
Error: Target returned: shell command failed (see log for details)
Log for ncurses is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/main.log
Error: Unable to upgrade port: 1
To report a bug, see <>

Steps I've tried:

  • port clean ncurses
  • port clean --all ncurses
  • port clean --all outdated
  • Rebooting

Uninstalling would remove a lot of dependencies, and I don't believe that is the issue. All of the MacPorts issues I've found that sound even similar (ex: #29921, #26791) are closed as duplicates or as "WorksForMe". None have workarounds.

System info:

  • Snow Leopard: 10.6.8
  • XCode:
    Xcode 3.2.6
    Component versions: DevToolsCore-1809.0; DevToolsSupport-1806.0
    BuildVersion: 10M2518
  • MacPorts: 2.0.1

I'm not planning on upgrading XCode to version 4, and the manual doesn't list it as a requirement.

The full log is attached. I wasn't sure what was relevant.

Attachments (1)

main.log (47.1 KB) - added by phil@… 7 years ago.
main.log for ncurses

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by phil@…

Attachment: main.log added

main.log for ncurses

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

Keywords: ncurses error upgrade removed
Owner: changed from macports-tickets@… to jmr@…
Summary: ncurses - Error: Unable to upgrade port: 1ncurses: build error with nawk

You appear to have nawk installed. Try uninstalling or at least deactivating nawk while trying to build ncurses. nawk has been implicated in other port failures like #30239.

sudo port clean ncurses
sudo port -f deactivate nawk
sudo port install ncurses

And then if desired:

sudo port activate nawk

comment:2 Changed 7 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… added

Let us know if libpixman then also succeeds; if not attach that main.log.

comment:3 Changed 7 years ago by phil@…

OK, I went one further - I completely removed nawk. (I don't know how it got installed, because I don't even know what it is!). That seems to have fixed it. It didn't even occur to me that having it installed was the issue - it looked like it was part of the build process.

Thank you - that was incredibly frustrating.

libpixman seems to have worked as well. All my ports are now updated.

Thanks again.

comment:4 Changed 7 years ago by jmroot (Joshua Root)

Cc: toby@… added
Port: nawk added

comment:5 Changed 7 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:6 Changed 7 years ago by ryandesign (Ryan Schmidt)

Port: libpixman added
Summary: ncurses: build error with nawkncurses, libpixman: build error with nawk

Perhaps it would be appropriate for us to modify ncurses and libpixman{,-devel} to force the use of /usr/bin/awk? We've done that in other ports for other reasons (#30308).

comment:7 Changed 7 years ago by ryandesign (Ryan Schmidt)

I've done this for libpixman{,-devel} in r81677.

Note: See TracTickets for help on using tickets.