Opened 6 years ago

Closed 4 years ago

#55227 closed defect (fixed)

ledger failed to install

Reported by: arademaker (Alexandre Rademaker) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: kurthindenburg (Kurt Hindenburg), ctreleaven (Craig Treleaven)
Port: ledger

Description (last modified by ryandesign (Ryan Carsten Schmidt))

--->  Building ledger
Error: Failed to build ledger: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_finance_ledger/ledger/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port ledger failed
urca:data arademaker$ less /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_finance_ledger/ledger/main.log

the end of the log:

:info:build [ 77%] Building CXX object src/CMakeFiles/libledger.dir/utils.cc.o
:info:build make[2]: *** No rule to make target `/usr/local/lib/libboost_date_time-mt.dylib', needed by `libledger.3.dylib'.  Stop.
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build [ 79%] Building CXX object src/CMakeFiles/libledger.dir/wcwidth.cc.o
:info:build make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
:info:build make: *** [all] Error 2
:info:build acprep: ERROR: Execution failed: make all -j4
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_finance_ledger/ledger/work/ledger-3.1.1" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_finance_ledger/ledger/work/ledger-3.1.1/acprep opt make -j4 all
:info:build Exit code: 1
:error:build Failed to build ledger: command execution failed
:debug:build Error code: CHILDSTATUS 35853 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_finance_ledger/ledger/main.log for details.

Attachments (1)

main.log (1.3 MB) - added by arademaker (Alexandre Rademaker) 6 years ago.
complete log

Download all attachments as: .zip

Change History (12)

comment:1 Changed 6 years ago by Schamschula (Marius Schamschula)

Priority: HighNormal

comment:2 Changed 6 years ago by Schamschula (Marius Schamschula)

Description: modified (diff)

comment:3 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

Do you have anything installed into /usr/local/? That typically won't work w/ macports

Also attach the complete main.log - it builds here on High Sierra

Changed 6 years ago by arademaker (Alexandre Rademaker)

Attachment: main.log added

complete log

comment:4 Changed 6 years ago by arademaker (Alexandre Rademaker)

I do have some tools installed in the /usr/local, can you be more specific about what can be causing the error?

comment:5 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Just by your paste this doesn't look good: /usr/local/lib/libboost_date_time-mt.dylib', needed by `libledger.3.dylib'. Stop.

Do you have boost installed outside of macports?

comment:6 Changed 6 years ago by arademaker (Alexandre Rademaker)

The locate command (after the forced sudo /usr/libexec/locate.updatedb) gives me only:

/Applications/Kindle.app/Contents/Frameworks/libboost_atomic.dylib
/Applications/Kindle.app/Contents/Frameworks/libboost_date_time.dylib
/Applications/Kindle.app/Contents/Frameworks/libboost_filesystem.dylib
/Applications/Kindle.app/Contents/Frameworks/libboost_iostreams.dylib
/Applications/Kindle.app/Contents/Frameworks/libboost_regex.dylib
/Applications/Kindle.app/Contents/Frameworks/libboost_system.dylib
/Applications/Kindle.app/Contents/Frameworks/libboost_thread.dylib
/Applications/Kindle.app/Contents/Frameworks/libboost_zlib.dylib
/opt/cisco/anyconnect/lib/libboost_date_time.dylib
/opt/cisco/anyconnect/lib/libboost_filesystem.dylib
/opt/cisco/anyconnect/lib/libboost_signals.dylib
/opt/cisco/anyconnect/lib/libboost_system.dylib
/opt/cisco/anyconnect/lib/libboost_thread.dylib
/opt/local/lib/libboost_atomic-mt.dylib
/opt/local/lib/libboost_chrono-mt.a
/opt/local/lib/libboost_chrono-mt.dylib
/opt/local/lib/libboost_container-mt.dylib
/opt/local/lib/libboost_context-mt.dylib
/opt/local/lib/libboost_coroutine-mt.dylib
/opt/local/lib/libboost_date_time-mt.dylib
/opt/local/lib/libboost_exception-mt.a
/opt/local/lib/libboost_filesystem-mt.dylib
/opt/local/lib/libboost_graph-mt.dylib
/opt/local/lib/libboost_iostreams-mt.dylib
/opt/local/lib/libboost_locale-mt.dylib
/opt/local/lib/libboost_log-mt.dylib
/opt/local/lib/libboost_log_setup-mt.dylib
/opt/local/lib/libboost_math_c99-mt.dylib
/opt/local/lib/libboost_math_c99f-mt.dylib
/opt/local/lib/libboost_math_c99l-mt.dylib
/opt/local/lib/libboost_math_tr1-mt.dylib
/opt/local/lib/libboost_math_tr1f-mt.dylib
/opt/local/lib/libboost_math_tr1l-mt.dylib
/opt/local/lib/libboost_prg_exec_monitor-mt.dylib
/opt/local/lib/libboost_program_options-mt.dylib
/opt/local/lib/libboost_python-mt.dylib
/opt/local/lib/libboost_random-mt.dylib
/opt/local/lib/libboost_regex-mt.dylib
/opt/local/lib/libboost_serialization-mt.dylib
/opt/local/lib/libboost_signals-mt.dylib
/opt/local/lib/libboost_system-mt.a
/opt/local/lib/libboost_system-mt.dylib
/opt/local/lib/libboost_test_exec_monitor-mt.a
/opt/local/lib/libboost_thread-mt.dylib
/opt/local/lib/libboost_timer-mt.a
/opt/local/lib/libboost_timer-mt.dylib
/opt/local/lib/libboost_unit_test_framework-mt.dylib
/opt/local/lib/libboost_wave-mt.dylib
/opt/local/lib/libboost_wserialization-mt.dylib

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

Description: modified (diff)

We can't necessarily trust that error message No rule to make target `/usr/local/lib/libboost_date_time-mt.dylib', needed by `libledger.3.dylib' because it resulted from an unclean build attempt. The attached log contains an earlier clean build attempt which ends with these errors:

:info:build Undefined symbols for architecture x86_64:
:info:build   "boost::filesystem::path::m_normalize()", referenced from:
:info:build       ledger::resolve_path(boost::filesystem::path const&) in utils.cc.o
:info:build   "boost::re_detail::get_mem_block()", referenced from:
[snip]

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

In aeacff68572d3dc057bd085a039c336cffbf3e4b/macports-ports (master):

ledger: Enable python support, and other fixes

Use cmake directly, via the cmake 1.1 portgroup, instead of running the
custom acprep script. This enables verbose building, builds outside of
the source tree, and fixes the universal variant.

Closes: #55234

Link with MacPorts libedit instead of macOS libedit.

Specify path to boost, gmp, mpfr. This may help build the port if the
user has other copies of those libraries installed outside of MacPorts.

See: #55227

Use a distfile instead of fetching from git, which is no longer
necessary now that upstream no longer uses a git submodule for utfcpp.

Remove unused autoconf, automake, libtool dependencies. This project
uses cmake, not autotools.

Remove unused doxygen, graphviz, texlive-xetex, texinfo dependencies.
Building the documentation does not work.

Remove unused pcre and expat dependencies. These were used for previous
versions of this software, but not anymore.

Remove unused libiconv, ncurses, zlib dependencies. The documentation
says they are required but I can find no evidence of this.

comment:9 Changed 6 years ago by ctreleaven (Craig Treleaven)

@ryandesign, I noticed you also enabled tests. On my system, 4 of 352 tests fail:

99% tests passed, 4 tests failed out of 352

Total Test time (real) =  43.68 sec

The following tests FAILED:
	 47 - BaselineTest_dir-import_py (Failed)
	 49 - BaselineTest_dir-python_py (Failed)
	 59 - BaselineTest_feat-import_py (Failed)
	104 - BaselineTest_opt-datetime-format (Failed)
Errors while running CTest
make: *** [test] Error 8
Command failed:  cd "/opt/local/var/macports/build/_Users_craigtreleaven_mp_macports-ports_finance_ledger/ledger/work/build" && /usr/bin/make test 
Exit code: 2
Error: Failed to test ledger: command execution failed

This is on OS X 10.10. Not sure if the failures are significant or not.

comment:10 Changed 6 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven added

comment:11 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

We have successful builds of ledger 3.1.3 on Mac OS X 10.7 and later so I'm going to call this fixed.

Regarding test failures, please discuss them with the developers of ledger.

Note: See TracTickets for help on using tickets.