Opened 8 years ago

Closed 6 years ago

#49748 closed defect (fixed)

boost @1.59.0_2 (devel) +mpich ld: file not found -- build failure

Reported by: artur.palha@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), michaelld (Michael Dickens), seanfarley (Sean Farley), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: boost

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

Hello!

I have tried to install boost @1.59.0_2 using:

sudo port -v install boost +mpich

This fails reporting:

ld: file not found: /opt/local/lib/libboost_chrono-mt.dylib for architecture x86_64

Yesterday I installed boost exactly in the same way without any issues (starting from a clean macports install). I uninstalled macports and repeated the process again today and it failed with this error.

Was there any change made to the port since yesterday?

I am on OSX 10.9.5 with XCode 6.2.

Attachments (2)

main.log (517.7 KB) - added by artur.palha@… 8 years ago.
Log file
main.2.log (544.0 KB) - added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) 6 years ago.

Download all attachments as: .zip

Change History (11)

Changed 8 years ago by artur.palha@…

Attachment: main.log added

Log file

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

Cc: sean@… added; artur.palha@… openmaintainer@… removed
Description: modified (diff)
Keywords: boost removed

No changes have been made to the boost port since last month.

Sean, mpich is your thing... any ideas? I don't recognize this error. Don't know why the build of boost would be looking for an already-installed boost library.

comment:2 Changed 8 years ago by gideonsimpson

I'm having a similar problem. When I look at the log file it says:

:info:build     "/opt/local/bin/mpicxx-mpich-mp" -dynamiclib -Wl,-single_module -install_name "/opt/local/lib/libboost_unit_test_framework-mt.dylib"  -o "stage/lib/libboost_unit_test_framework-mt.dylib" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/compiler_log_formatter.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/debug.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/decorator.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/execution_monitor.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/framework.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/plain_report_formatter.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/progress_monitor.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/results_collector.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/results_reporter.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/test_tools.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/test_tree.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/unit_test_log.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/unit_test_main.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/unit_test_monitor.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/unit_test_parameters.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/xml_log_formatter.o" "bin.v2/libs/test/build/darwin-4.2.1/release/threading-multi/xml_report_formatter.o" "bin.v2/libs/timer/build/darwin-4.2.1/release/threading-multi/libboost_timer-mt.dylib" "bin.v2/libs/system/build/darwin-4.2.1/release/threading-multi/libboost_system-mt.dylib"      -headerpad_max_install_names -Wl,-dead_strip -no_dead_strip_inits_and_terms -L/opt/local/lib -Wl,-headerpad_max_install_names  -arch x86_64 -pipe -arch x86_64 -stdlib=libc++ -Wl,-headerpad_max_install_names -arch x86_64 -Wl,-flat_namespace -Wl,-commons,use_dylibs -undefined dynamic_lookup
:info:build 
:info:build ld: file not found: /opt/local/lib/libboost_chrono-mt.dylib for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build ...failed darwin.link.dll stage/lib/libboost_unit_test_framework-mt.dylib...
:info:build ...failed updating 2 targets...
:info:build ...updated 641 targets...
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_boost/boost/work/boost_1_59_0" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_boost/boost/work/boost_1_59_0/b2 -d2 --layout=tagged --debug-configuration --user-config=user-config.jam -sBZIP2_INCLUDE=/opt/local/include -sBZIP2_LIBPATH=/opt/local/lib -sEXPAT_INCLUDE=/opt/local/include -sEXPAT_LIBPATH=/opt/local/lib -sZLIB_INCLUDE=/opt/local/include -sZLIB_LIBPATH=/opt/local/lib -sICU_PATH=/opt/local variant=release -j12 architecture=x86 address-model=64 link=shared threading=multi 
:info:build Exit code: 1
:error:build org.macports.build for port boost returned: command execution failed
:debug:build Error code: CHILDSTATUS 19528 1
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for boost: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install boost
:debug:build Registry error: mpich not registered as installed & active.
    while executing
"registry::active $portname"
:notice:build Please see the log file for port boost for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_boost/boost/main.log

This showed up when I began rebuilding my macports installation after upgrading to el capitan.

comment:3 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added

comment:4 Changed 6 years ago by michaelld (Michael Dickens)

Can someone verify or refute that this ticket's issue is still relevant? I can't replicate it on the current MacPorts boost (1.66.0) on 10.9, 10.12, or 10.13 -- all latest updates & MacPorts at latest GIT master branches (port and base).

Cross Reference: https://github.com/macports/macports-ports/pull/2165

comment:5 in reply to:  4 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Replying to michaelld:

Can someone verify or refute that this ticket's issue is still relevant? I can't replicate it on the current MacPorts boost (1.66.0) on 10.9, 10.12, or 10.13 -- all latest updates & MacPorts at latest GIT master branches (port and base).

I still get the error without the fix.

macOS 10.13.6
Xcode 9.4.1
MacPorts 2.5.3
port install boost +mpich

comment:6 Changed 6 years ago by michaelld (Michael Dickens)

OK thx. Can you attach your build log, just so I can compare / contrast with mine? Wondering what the difference(s) is/are ...

Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attachment: main.2.log added

comment:7 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attached is the build log.

comment:8 Changed 6 years ago by michaelld (Michael Dickens)

got it thx. I'll review tomorrow.

comment:9 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

In 6e6a61d7f53a5d27b885a9980f999d00b8598166/macports-ports (master):

boost: find library when using -flat_namespace

Fixes #49748

Note: See TracTickets for help on using tickets.