Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#55801 closed defect (fixed)

ncurses @6.1 failing to build with non-default C++ stdlib

Reported by: letaage Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: jmr@…
Port: ncurses

Description

Trying to do a routine upgrade of ncurses,and it fails to build with error message "command execution failed"

Cleaned port and tried again, and still failed:

slim:~ tom$ sudo port clean --all ncurses                                          
Password:
--->  Cleaning ncurses                                                            
slim:~ tom$ sudo port upgrade ncurses
--->  Fetching distfiles for ncurses
--->  Attempting to fetch ncurses-6.1.tar.gz from http://mirror.internode.on.net/pub/gnu/ncurses                                                                        
--->  Verifying checksums for ncurses
--->  Extracting ncurses
--->  Applying patches to ncurses                                                  
--->  Configuring ncurses                                                          
--->  Building ncurses
Error: Failed to build ncurses: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncurses/ncurses/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
slim:~ tom$

This error is preventing lots of other ports from being upgraded.

Log file attached

Attachments (2)

main.log (81.3 KB) - added by letaage 3 years ago.
Log file of ncurses build error
main2.log (358.9 KB) - added by letaage 3 years ago.
Log file of ncurses build error, gawk deactivated

Download all attachments as: .zip

Change History (10)

Changed 3 years ago by letaage

Attachment: main.log added

Log file of ncurses build error

comment:1 Changed 3 years ago by jmroot (Joshua Root)

:info:configure dyld: Library not loaded: /opt/local/lib/libncurses.6.dylib
:info:configure   Referenced from: /opt/local/lib/libreadline.7.dylib
:info:configure   Reason: image not found
:info:configure ./config.status: line 1191: 61435 Trace/BPT trap: 5       $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >> $cf_dir/Makefile

Your gawk is crashing. Pretty much the same issue as ProblemHotlist#ncurses6 (though I'm not quite sure how you got into this state since the ABI didn't change from 6.0 to 6.1). Workaround is to deactivate gawk while building ncurses.

comment:2 Changed 3 years ago by letaage

Thanks for that suggestion, I am still having problems:

slim:webdl tom$ sudo port deactivate gawk
--->  Deactivating gawk @4.2.0_0                                  
--->  Cleaning gawk
slim:webdl tom$ sudo port clean --all ncurses
--->  Cleaning ncurses                                                              slim:webdl tom$ sudo port upgrade ncurses
--->  Fetching distfiles for ncurses                           
--->  Attempting to fetch ncurses-6.1.tar.gz from http://mirror.internode.on.net/pub/gnu/ncurses
--->  Verifying checksums for ncurses
--->  Extracting ncurses
--->  Applying patches to ncurses
--->  Configuring ncurses
--->  Building ncurses
Error: Failed to build ncurses: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncurses/ncurses/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
slim:webdl tom$

I searched for the gawk/dyld error you referenced in your reply and couldn't find it in the log file:

slim:webdl tom$ grep -in "dyld" /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncurses/ncurses/main.log
slim:webdl tom$ 

New log file attached main2.log

Changed 3 years ago by letaage

Attachment: main2.log added

Log file of ncurses build error, gawk deactivated

comment:3 Changed 3 years ago by jmroot (Joshua Root)

Summary: ncurses @6.1 universal : Failed to build ncurses: command execution failedncurses @6.1 failing to build with non-default C++ stdlib

So you're using libc++ on 10.8. Seems to be missing a -stdlib argument when linking.

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

In cae5b7b72a400248b786f5d6288f7006f951f37d/macports-ports:

ncurses: restore explicit setting of CXXLIBS

See: #55801

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

Has that change helped?

comment:6 Changed 3 years ago by letaage

Yes, ncurses builds now. I still had gawk deactivated at the time, but it built.

Many thanks!

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

Resolution: fixed
Status: newclosed

comment:8 Changed 3 years ago by mf2k (Frank Schima)

Keywords: ncurses removed
Note: See TracTickets for help on using tickets.